updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ebtables / PKGBUILD
blob7bde1446aa53548a7fd56cf6ec40b9c9ce709d9f
1 # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
2 # Contributor: Michal Soltys <soltys@ziu.info>
4 pkgname=ebtables
5 pkgver='2.0.10_2'
6 pkgrel=1
7 pkgdesc='Ethernet bridge filtering utilities'
8 arch=('i686' 'x86_64')
9 backup=('etc/conf.d/ebtables')
10 url='http://ebtables.sourceforge.net/'
11 license=('GPL2')
12 source=(
13   "http://downloads.sourceforge.net/${pkgname}/${pkgname}-v${pkgver/_/-}.tar.gz"
14   'ebtables.rc'
15   'ebtables.conf'
16   )
17 md5sums=('c5ae7fb75810fd936a5445239e853fd8'
18          '368825c83a2b1180d2223e61b9f3bd07'
19          '86fc3622e6fc0a7a7920c90ff576cc38')
21 build() {
22   cd ${pkgname}-v${pkgver/_/-}
23   make \
24     CFLAGS='-Wunused -Wall -Werror -Wno-error=unused-but-set-variable' \
25     LDFLAGS=''
28 package() {
29   cd "${pkgname}-v${pkgver/_/-}"
30   make install \
31     DESTDIR="${pkgdir}" \
32     LIBDIR=/usr/lib \
33     MANDIR=/usr/share/man \
34     BINDIR=/usr/sbin \
35     INITDIR=/etc/rc.d \
36     SYSCONFIGDIR=/etc/ebtables
38   # rm package ebtables rc.d scripts
39   rm "${pkgdir}/etc/rc.d/ebtables"
40   rm "${pkgdir}/etc/ebtables/ebtables-config"
42   # install custom ebtables rc.d scripts
43   install -D -m 0755 "${srcdir}/ebtables.rc" "${pkgdir}/etc/rc.d/ebtables"
44   install -D -m 0644 "${srcdir}/ebtables.conf" "${pkgdir}/etc/conf.d/ebtables"
47 # vim:set ts=2 sw=2 ft=sh et: