diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-29 08:33:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-29 08:43:43 +0000 |
commit | c7e9784ab459db0cad070b3bc80d4b093db14b50 (patch) | |
tree | ffb19daee4c160ef1effa4eee68d21bde46bbd08 /testing/ebtables/APKBUILD | |
parent | cd1952c78af134fcbbe24c53c966c2b762c29936 (diff) | |
download | aports-c7e9784ab459db0cad070b3bc80d4b093db14b50.tar.bz2 aports-c7e9784ab459db0cad070b3bc80d4b093db14b50.tar.xz |
testing/ebtables: install docs and bins in proper places
also add gentoo's init.d/conf.d scripts
Diffstat (limited to 'testing/ebtables/APKBUILD')
-rw-r--r-- | testing/ebtables/APKBUILD | 54 |
1 files changed, 37 insertions, 17 deletions
diff --git a/testing/ebtables/APKBUILD b/testing/ebtables/APKBUILD index c538f76639..4bdc882e5e 100644 --- a/testing/ebtables/APKBUILD +++ b/testing/ebtables/APKBUILD @@ -1,5 +1,5 @@ -# Contributor: -# Maintainer: +# Contributor: Andrew Manison <amanison@anselsystems.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ebtables pkgver=2.0.9.1 _realver=v2.0.9-1 @@ -7,23 +7,19 @@ pkgrel=0 pkgdesc="Ethernet bridge tables - Linux Ethernet filter for the Linux bridge." url="http://ebtables.sourceforge.net/" license="GPL" -depends="" -makedepends="uclibc-dev" +depends= +makedepends= install= -#subpackages="$pkgname-dev $pkgname-doc" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz + 0001-link-with-gcc.patch + ebtables.initd + ebtables.confd" -# 0001-add-gcc-no-stack-protector-flag-to-makefile.patch" - -# append extra dependencies to -dev subpackage -# remove if not used. -# depends_dev="somepackage-dev" - -build() { +prepare() { cd "$srcdir"/$pkgname-$_realver - - patches - for i in ../../*.patch; do + # patches + for i in ../*.patch; do msg "Applying $i" if ! patch --verbose -p1 -i $i; then error "$i failed" @@ -31,8 +27,32 @@ build() { fi done + sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \ + -e "s,^BINDIR:=.*,BINDIR:=/sbin," \ + -e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/ebtables," \ + -e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/ebtables,"\ + -e "s,^LIBDIR:=.*,LIBDIR:=/usr/lib/\$(PROGNAME)," \ + -e "s/^CFLAGS:=/CFLAGS+=/" \ + -e "s,^CC:=,CC?=," Makefile +} + +build() { + cd "$srcdir"/$pkgname-$_realver + + # This package uses _init functions to initialise extensions. With + # --as-needed this will not work. + export LDFLAGS="$LDFLAGS -Wl,--no-as-needed" make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$_realver make DESTDIR="$pkgdir" install + install -D -m755 ../ebtables.initd "$pkgdir"/etc/init.d/ebtables + install -D -m644 ../ebtables.initd "$pkgdir"/etc/conf.d/ebtables } -md5sums="0e0c20adf2bba6d91dbd0b74a1a38c33 ebtables-v2.0.9-1.tar.gz" +md5sums="0e0c20adf2bba6d91dbd0b74a1a38c33 ebtables-v2.0.9-1.tar.gz +91a565a5906dc1fd4103f03c6a88e0e1 0001-link-with-gcc.patch +92e13b3bc1d47d7c00636ebb78c905d5 ebtables.initd +285089ba2d846e72e321a12e3da3cc96 ebtables.confd" |