summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Knapik2016-10-21 16:34:53 +0200
committerWojciech Knapik2016-10-21 16:34:53 +0200
commitd2357e0b13fadde3d1e9eb7ce64505c0f85742bd (patch)
treef932aca09d6d9fcfa62d6e667c40bfb7373db1b3
downloadaur-d2357e0b13fadde3d1e9eb7ce64505c0f85742bd.tar.gz
Initial commit.
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD26
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8dd6bc4cf86
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = vpnfailsafe-git
+ pkgdesc = IP leak prevention for OpenVPN
+ pkgver = r1.054da69
+ pkgrel = 1
+ url = https://github.com/wknapik/vpnfailsafe
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = bash
+ depends = coreutils
+ depends = grep
+ depends = iproute2
+ depends = iptables
+ depends = openresolv
+ depends = openvpn
+ depends = procps-ng
+ depends = sed
+ provides = vpnfailsafe
+ conflicts = vpnfailsafe
+ source = git+https://github.com/wknapik/vpnfailsafe.git
+ md5sums = SKIP
+
+pkgname = vpnfailsafe-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ae0c6e291ab
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+pkgname=vpnfailsafe-git
+pkgver=r1.054da69
+pkgrel=1
+pkgdesc="IP leak prevention for OpenVPN"
+arch=('any')
+url="https://github.com/wknapik/vpnfailsafe"
+license=('MIT')
+depends=('bash' 'coreutils' 'grep' 'iproute2' 'iptables' 'openresolv' 'openvpn' 'procps-ng' 'sed')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/wknapik/vpnfailsafe.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -D -m755 "${pkgname%-git}.sh" "${pkgdir}/etc/openvpn/${pkgname%-git}.sh"
+ install -D -m644 "README.md" "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
+ install -D -m644 "example.conf" "${pkgdir}/usr/share/doc/${pkgname%-git}/example.conf"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
+}