wok-next annotate bridge-utils/receipt @ rev 9912
slitaz-icon: sed only if file exist
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 18:16:21 2011 +0200 (2011-05-17) |
parents | a63c2567749b |
children | 0ddab69c0096 |
rev | line source |
---|---|
erjo@4484 | 1 # SliTaz package receipt. |
erjo@4484 | 2 |
erjo@4484 | 3 PACKAGE="bridge-utils" |
erjo@4484 | 4 VERSION="1.4" |
erjo@4484 | 5 CATEGORY="system-tools" |
jozee@4932 | 6 SHORT_DESC="IEEE 802.1d ethernet bridging" |
erjo@4484 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@4484 | 8 TARBALL="${PACKAGE}-${VERSION}.tar.gz" |
erjo@4484 | 9 WEB_SITE="http://www.linuxfoundation.org/en/Net:Bridge" |
pankso@9774 | 10 WGET_URL="$SF_MIRROR/bridge/bridge/${PACKAGE}-${VERSION}/${TARBALL}" |
jozee@4932 | 11 TAGS="ehternet bridge" |
erjo@4484 | 12 |
pankso@9774 | 13 BUILD_DEPENDS="autoconf automake" |
erjo@4484 | 14 |
erjo@4484 | 15 # Rules to configure and make the package. |
erjo@4484 | 16 compile_rules() |
erjo@4484 | 17 { |
erjo@4484 | 18 cd $src |
erjo@4484 | 19 autoconf |
pankso@9774 | 20 ./configure --prefix=/usr && |
pankso@9774 | 21 make && make DESTDIR=$DESTDIR install |
erjo@4484 | 22 } |
erjo@4484 | 23 |
erjo@4484 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4484 | 25 genpkg_rules() |
erjo@4484 | 26 { |
erjo@4484 | 27 mkdir -p $fs/usr |
erjo@4484 | 28 cp -a $_pkg/usr/sbin $fs/usr |
erjo@4484 | 29 } |
erjo@4484 | 30 |
pascal@8880 | 31 # Overlap busybox |
pascal@8880 | 32 pre_install() |
pascal@8880 | 33 { |
pascal@8880 | 34 rm -f $1/usr/sbin/brctl |
pascal@8880 | 35 } |
pascal@8880 | 36 |
pascal@8880 | 37 post_remove() |
pascal@8880 | 38 { |
pascal@8880 | 39 ln -s /bin/busybox /usr/sbin/brctl |
pascal@8880 | 40 } |