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/packages/bridge-utils/default.bash

52 lines
832 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2014-01-20 19:37:22 +00:00
'1.5'
2013-07-13 17:19:22 +01:00
)
url=\
(
2014-01-20 19:37:22 +00:00
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2014-01-20 19:37:22 +00:00
'ec7b381160b340648dede58c31bb2238'
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()
{
2014-01-20 19:37:22 +00:00
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null)
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
}