summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-23 13:50:27 +0800
committerChocobo12017-08-23 14:20:24 +0800
commit74f085179f30cb107d9e0eb781210a956de3d116 (patch)
treed41ebf10c5c3630c998f155dacc0c4de95217add
downloadaur-74f085179f30cb107d9e0eb781210a956de3d116.tar.gz
newpkg: ipset-git 6.32.r6.g8fc8ad1-1
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD43
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..44306a7741a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = ipset-git
+ pkgdesc = Administration tool for IP sets
+ pkgver = 6.32.r6.g8fc8ad1
+ pkgrel = 1
+ url = http://ipset.netfilter.org/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ depends = glibc
+ depends = libmnl
+ provides = ipset
+ conflicts = ipset
+ options = staticlibs
+ backup = etc/ipset.conf
+ source = git://git.netfilter.org/ipset
+ source = ipset.service::https://git.archlinux.org/svntogit/packages.git/plain/trunk/ipset.service?h=packages/ipset
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = ipset-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5e6f5d567df
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=ipset-git
+pkgver=6.32.r6.g8fc8ad1
+pkgrel=1
+pkgdesc="Administration tool for IP sets"
+arch=('i686' 'x86_64')
+url="http://ipset.netfilter.org/"
+license=('GPL2')
+depends=('glibc' 'libmnl')
+makedepends=('git')
+provides=('ipset')
+conflicts=('ipset')
+backup=("etc/ipset.conf")
+options=('staticlibs')
+source=("git://git.netfilter.org/ipset"
+ "ipset.service::https://git.archlinux.org/svntogit/packages.git/plain/trunk/ipset.service?h=packages/ipset")
+sha256sums=('SKIP'
+ 'SKIP')
+
+
+pkgver() {
+ cd "ipset"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "ipset"
+
+ ./autogen.sh
+ ./configure --prefix="/usr" --sbindir="/usr/bin" --with-kmod=no
+ make
+}
+
+package() {
+ cd "ipset"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir/ipset.service" "$pkgdir/usr/lib/systemd/system/ipset.service"
+ install -Dm644 /dev/null "$pkgdir/etc/ipset.conf"
+}