This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/bridge-utils/default.bash

52 lines
819 B
Bash
Raw Permalink Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2017-06-14 18:03:02 +01:00
'1.6'
2013-07-13 17:19:22 +01:00
)
url=\
(
2017-06-14 18:03:02 +01:00
"http://www.kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-$version.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2017-06-14 18:03:02 +01:00
'f369e90e85e4bb46baa26a7b9d66b578'
2013-07-13 17:19:22 +01:00
)
maintainer=\
(
2014-01-20 19:37:22 +00:00
'Ricardo Martins <rasm@fe.up.pt>'
2013-07-13 17:19:22 +01:00
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
2014-01-20 19:37:22 +00:00
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi &&
autoreconf
2013-07-13 17:19:22 +01:00
}
configure()
{
cd ../bridge-utils-$version &&
./configure \
--prefix="$cfg_dir_rootfs/usr" \
--target=$cfg_target_canonical \
--host=$cfg_target_canonical \
--build=$cfg_host_canonical
}
build()
{
cd ../bridge-utils-$version &&
$cmd_make
}
target_install()
{
cd ../bridge-utils-$version &&
$cmd_target_strip brctl/brctl -o $cfg_dir_rootfs/usr/bin/brctl
}