summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Marien2015-10-01 11:04:35 +0200
committerFrank Marien2015-10-01 11:04:35 +0200
commit4ef831d4528f6ddc630cbbf8a9d58f4e650c2f03 (patch)
tree6dfaf0271f45bc8c171fd993daf3a8696932b63c
downloadaur-4ef831d4528f6ddc630cbbf8a9d58f4e650c2f03.tar.gz
initial checkin
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD33
-rw-r--r--geoipmarker.install10
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5de7b6e3285
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = geoipmarker
+ pkgdesc = Use iptables NFQUEUE to mark packets by country, using a MaxMind GeoIP2 Database
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/m4rienf/GeoIPMarker
+ install = geoipmarker.install
+ arch = i686
+ arch = x86_64
+ license = AGPL3
+ depends = libmaxminddb
+ depends = libnetfilter_queue
+ provides = geoipmarker
+ source = https://github.com/m4rienf/GeoIPMarker/releases/download/v1.0.0/geoipmarker-1.0.0.tar.bz2
+ source = geoipmarker.install
+ sha512sums = f3c5ccf3160773c05056b06d76b40b0c10e5493dbc75fb08cf072637cdae76f2991187d771203f34bad8cd625c998038f7ce1e932ed6331eb6093f9bcfff9ad3
+ sha512sums = 48cb041991cbf5aaacd7d9177eeaf5940897f271bc8fced7d02d4d315bd568dd7b17f9a446bfc3506b317a99efacc2e17fe6faaa3e1a6245c513c11425f66a46
+
+pkgname = geoipmarker
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..71fd56f3957
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: frank AT apsu DOT be
+pkgname=geoipmarker
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Use iptables NFQUEUE to mark packets by country, using a MaxMind GeoIP2 Database"
+license=('AGPL3')
+arch=(i686 x86_64)
+url="https://github.com/m4rienf/GeoIPMarker"
+
+depends=("libmaxminddb"
+ "libnetfilter_queue")
+
+provides=(geoipmarker)
+
+install=geoipmarker.install
+
+source=("https://github.com/m4rienf/GeoIPMarker/releases/download/v$pkgver/geoipmarker-$pkgver.tar.bz2"
+ "geoipmarker.install"
+)
+
+sha512sums=('f3c5ccf3160773c05056b06d76b40b0c10e5493dbc75fb08cf072637cdae76f2991187d771203f34bad8cd625c998038f7ce1e932ed6331eb6093f9bcfff9ad3'
+ '48cb041991cbf5aaacd7d9177eeaf5940897f271bc8fced7d02d4d315bd568dd7b17f9a446bfc3506b317a99efacc2e17fe6faaa3e1a6245c513c11425f66a46')
+
+build() {
+ cd "$srcdir/geoipmarker-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/geoipmarker-$pkgver"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
diff --git a/geoipmarker.install b/geoipmarker.install
new file mode 100644
index 00000000000..788b9b7e3ef
--- /dev/null
+++ b/geoipmarker.install
@@ -0,0 +1,10 @@
+post_install() {
+ cat <<EOF
+**** NOTICE ****
+*
+* To use the geoipmarker package, you need a GeoIP2 database file, and a
+* systemd Unit Instance Environment file. See
+* <https://github.com/m4rienf/GeoIPMarker/blob/master/README.md>
+*
+EOF
+}