diff options
author | root <root@rshg054.dnsready.net> | 2011-11-28 23:14:56 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-28 23:14:56 +0000 |
commit | 83c3c42a38bda36bdc56d594318958bc4cfd9b32 (patch) | |
tree | 7f61d219016bca3c90771ae5681a2ceeb149ed22 /community/ebtables/PKGBUILD | |
parent | 495674534c45d86d3ad9149cdba75ca0bbbe1a0e (diff) |
Mon Nov 28 23:14:56 UTC 2011
Diffstat (limited to 'community/ebtables/PKGBUILD')
-rw-r--r-- | community/ebtables/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community/ebtables/PKGBUILD b/community/ebtables/PKGBUILD new file mode 100644 index 000000000..5b1e406dd --- /dev/null +++ b/community/ebtables/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 59563 2011-11-28 03:11:50Z seblu $ +# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net> +# Contributor: Michal Soltys <soltys@ziu.info> + +pkgname=ebtables +pkgver='2.0.10_2' +pkgrel=2 +pkgdesc='Ethernet bridge filtering utilities' +arch=('i686' 'x86_64') +backup=('etc/conf.d/ebtables') +url='http://ebtables.sourceforge.net/' +license=('GPL2') +source=( + "http://downloads.sourceforge.net/${pkgname}/${pkgname}-v${pkgver/_/-}.tar.gz" + 'ebtables.rc' + 'ebtables.conf' + ) +md5sums=('c5ae7fb75810fd936a5445239e853fd8' + '368825c83a2b1180d2223e61b9f3bd07' + '86fc3622e6fc0a7a7920c90ff576cc38') + +build() { + cd ${pkgname}-v${pkgver/_/-} + make \ + CFLAGS='-Wunused -Wall -Werror -Wno-error=unused-but-set-variable' \ + LDFLAGS='' +} + +package() { + cd "${pkgname}-v${pkgver/_/-}" + make install \ + DESTDIR="${pkgdir}" \ + LIBDIR=/usr/lib \ + MANDIR=/usr/share/man \ + BINDIR=/usr/sbin \ + INITDIR=/etc/rc.d \ + SYSCONFIGDIR=/etc/ebtables + + # 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}/ebtables.rc" "${pkgdir}/etc/rc.d/ebtables" + install -D -m 0644 "${srcdir}/ebtables.conf" "${pkgdir}/etc/conf.d/ebtables" +} + +# vim:set ts=2 sw=2 ft=sh et: |