summaryrefslogtreecommitdiff
path: root/community/ebtables/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ebtables/PKGBUILD')
-rw-r--r--community/ebtables/PKGBUILD52
1 files changed, 30 insertions, 22 deletions
diff --git a/community/ebtables/PKGBUILD b/community/ebtables/PKGBUILD
index f3400453c..ffc3b451b 100644
--- a/community/ebtables/PKGBUILD
+++ b/community/ebtables/PKGBUILD
@@ -1,48 +1,56 @@
-# $Id: PKGBUILD 60674 2011-12-16 19:18:54Z seblu $
-# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
+# $Id: PKGBUILD 71322 2012-05-26 15:04:32Z seblu $
+# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Michal Soltys <soltys@ziu.info>
pkgname=ebtables
pkgver=2.0.10_4
-pkgrel=1
+pkgrel=2
pkgdesc='Ethernet bridge filtering utilities'
arch=('i686' 'x86_64')
-backup=('etc/conf.d/ebtables')
url='http://ebtables.sourceforge.net/'
license=('GPL2')
+backup=("etc/$pkgname.conf" "etc/conf.d/$pkgname")
# ebtables segfault with --as-needed
options=('!buildflags')
-source=(
- "http://downloads.sourceforge.net/${pkgname}/${pkgname}-v${pkgver/_/-}.tar.gz"
- 'ebtables.rc'
- 'ebtables.conf'
- )
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-v${pkgver/_/-}.tar.gz"
+ "$pkgname.conf"
+ "$pkgname.rc"
+ "$pkgname.systemd"
+ "$pkgname.service")
md5sums=('506742a3d44b9925955425a659c1a8d0'
- '368825c83a2b1180d2223e61b9f3bd07'
- '86fc3622e6fc0a7a7920c90ff576cc38')
+ 'c6f0838de4429af68d21b4d61f00db59'
+ 'd0e340f2cefe91b1569c0e87c2a1288f'
+ '5a49ea09af202cb438c8a1b15abf9147'
+ 'baf923443c3b16277e50d60d2e68f534')
build() {
- cd ${pkgname}-v${pkgver/_/-}
+ cd $pkgname-v${pkgver/_/-}
make CFLAGS='-Wunused -Wall -Werror -Wno-error=unused-but-set-variable'
}
package() {
- cd "${pkgname}-v${pkgver/_/-}"
+ pushd $pkgname-v${pkgver/_/-}
make install \
- DESTDIR="${pkgdir}" \
+ DESTDIR="$pkgdir" \
LIBDIR=/usr/lib \
MANDIR=/usr/share/man \
BINDIR=/usr/sbin \
INITDIR=/etc/rc.d \
- SYSCONFIGDIR=/etc/ebtables
-
+ SYSCONFIGDIR=/etc
+ popd
# rm package ebtables rc.d scripts
- rm "${pkgdir}/etc/rc.d/ebtables"
- rm "${pkgdir}/etc/ebtables/ebtables-config"
-
- # install custom ebtables rc.d scripts
- install -D -m 0755 "${srcdir}/$pkgname.rc" "${pkgdir}/etc/rc.d/$pkgname"
- install -D -m 0644 "${srcdir}/$pkgname.conf" "${pkgdir}/etc/conf.d/$pkgname"
+ rm "$pkgdir/etc/ebtables-config"
+ # install initscripts
+ install -Dm 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
+ install -Dm 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
+ # install systemd service
+ install -Dm 755 $pkgname.systemd \
+ "$pkgdir/usr/lib/systemd/scripts/$pkgname"
+ install -Dm 644 $pkgname.service \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ # default config file
+ install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
}
# vim:set ts=2 sw=2 ft=sh et: