summaryrefslogtreecommitdiff
path: root/extra/ipset/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-25 04:03:32 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-25 04:03:32 +0000
commit29cefdccedfcb48822a8da80b259ed0bb0f73266 (patch)
treeeabeaf9a2ee1319f8cc0f3e05018588aa5a169c9 /extra/ipset/PKGBUILD
parentd256eaa80219eb28cbfb4f9474acc6fb41c63d3c (diff)
Fri Jul 25 03:59:36 UTC 2014
Diffstat (limited to 'extra/ipset/PKGBUILD')
-rw-r--r--extra/ipset/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/extra/ipset/PKGBUILD b/extra/ipset/PKGBUILD
new file mode 100644
index 000000000..8efe0fb53
--- /dev/null
+++ b/extra/ipset/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 217765 2014-07-23 22:38:00Z seblu $
+# Maintainer: Sébastien Luttringer
+
+pkgname=ipset
+pkgver=6.21.1
+pkgrel=2
+pkgdesc='Administration tool for IP sets'
+arch=('i686' 'x86_64')
+url='http://ipset.netfilter.org'
+license=('GPL2')
+depends=('libmnl')
+backup=("etc/$pkgname.conf")
+source=("http://ipset.netfilter.org/$pkgname-$pkgver.tar.bz2"
+ "$pkgname.service")
+md5sums=('9c136fd51694eb0ef259cda085145da0'
+ '60ebe10f071314fc9e8647440a02467c')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sbindir=/usr/bin --with-kmod=no
+ make
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ # install doc
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+ install -m644 README UPGRADE ChangeLog "$pkgdir/usr/share/doc/$pkgname"
+ # install pkgconfig file
+ install -Dm644 lib/libipset.pc "$pkgdir/usr/lib/pkgconfig/libipset.pc"
+ popd
+ # systemd
+ 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 et: