summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoradisbladis2017-05-03 22:16:11 +0800
committeradisbladis2017-05-03 22:16:11 +0800
commitcee920499c5e3d152d1bb89b01d6669567584ed1 (patch)
tree434f70f2d174533f26fe112962d14020c5079a33
downloadaur-cee920499c5e3d152d1bb89b01d6669567584ed1.tar.gz
Initial commit of opensnitch AUR git package
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD31
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2618c9b0ff3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = opensnitch-git
+ pkgdesc = OpenSnitch is a GNU/Linux port of the Little Snitch application firewall.
+ pkgver = r90.b594e90
+ pkgrel = 1
+ url = https://github.com/evilsocket/opensnitch
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = python2-setuptools
+ depends = python2
+ depends = python2-pyqt5
+ depends = python2-netfilterqueue-git
+ depends = libnetfilter_queue
+ depends = scapy
+ provides = opensnitch
+ conflicts = opensnitch
+ source = opensnitch-git::git+https://github.com/evilsocket/opensnitch.git
+ sha256sums = SKIP
+
+pkgname = opensnitch-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6d95060869f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Adam Hose <adis@blad.is>
+
+pkgbase=opensnitch-git
+pkgname=(opensnitch-git)
+pkgver=r90.b594e90
+pkgrel=1
+pkgdesc="OpenSnitch is a GNU/Linux port of the Little Snitch application firewall."
+arch=(any)
+url=https://github.com/evilsocket/${pkgname%-git}
+license=(GPL3)
+depends=(python2 python2-pyqt5 python2-netfilterqueue-git libnetfilter_queue scapy)
+makedepends=(git python2-setuptools)
+provides=(${pkgname%-git})
+conflicts=(${pkgname%-git})
+source=($pkgname::git+https://github.com/evilsocket/${pkgname%-git}.git)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
+}
+
+build() {
+ cd $pkgname
+ python2 setup.py build
+}
+
+package() {
+ cd $pkgname
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}