[arch-commits] Commit in (5 files)
Sébastien Luttringer
seblu at archlinux.org
Wed Jul 23 22:37:42 UTC 2014
Date: Thursday, July 24, 2014 @ 00:37:42
Author: seblu
Revision: 217764
community2extra: Moving ipset from community to extra
Added:
ipset/
ipset/repos/
ipset/trunk/
ipset/trunk/PKGBUILD
ipset/trunk/ipset.service
---------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
ipset.service | 13 +++++++++++++
2 files changed, 53 insertions(+)
Added: ipset/trunk/PKGBUILD
===================================================================
--- ipset/trunk/PKGBUILD (rev 0)
+++ ipset/trunk/PKGBUILD 2014-07-23 22:37:42 UTC (rev 217764)
@@ -0,0 +1,40 @@
+# $Id$
+# 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:
Property changes on: ipset/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: ipset/trunk/ipset.service
===================================================================
--- ipset/trunk/ipset.service (rev 0)
+++ ipset/trunk/ipset.service 2014-07-23 22:37:42 UTC (rev 217764)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Loading IP Sets
+Before=iptables.service ip6tables.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/ipset -f /etc/ipset.conf restore
+ExecReload=/usr/bin/ipset -f /etc/ipset.conf restore
+ExecStop=/usr/bin/ipset destroy
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list