summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0795437b18f43b49fa73311c063a85e5d7db763d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=ebtables-git
pkgver=2.0.10.4.r37.g46b6cf9
pkgrel=1
pkgdesc="A filtering tool for a Linux-based bridging firewall"
arch=('i686' 'x86_64')
url="http://ebtables.netfilter.org/"
license=('GPL2')
depends=('glibc' 'perl' 'iptables')
makedepends=('git')
provides=('ebtables')
conflicts=('ebtables')
backup=('etc/ebtables.conf')
source=("git://git.netfilter.org/ebtables"
        "ebtables.service::https://git.archlinux.org/svntogit/packages.git/plain/trunk/ebtables.service?h=packages/ebtables"
        "ebtables.systemd::https://git.archlinux.org/svntogit/packages.git/plain/trunk/ebtables.systemd?h=packages/ebtables")
sha256sums=('SKIP'
            'SKIP'
            'SKIP')


pkgver() {
  cd "ebtables"

  git describe --long --tags | sed 's/^ebtables-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "ebtables"

  ./autogen.sh
  ./configure \
    --prefix="/usr" \
    --sbindir="/usr/bin" \
    --sysconfdir="/etc"
  make
}

package() {
  cd "ebtables"

  make DESTDIR="$pkgdir" install

  install -Dm755 "$srcdir/ebtables.systemd" \
    "$pkgdir/usr/lib/systemd/scripts/ebtables"
  install -Dm644 "$srcdir/ebtables.service" \
    "$pkgdir/usr/lib/systemd/system/ebtables.service"
  install -Dm644 "/dev/null" "$pkgdir/etc/ebtables.conf"
}