-
Notifications
You must be signed in to change notification settings - Fork 18
/
PKGBUILD
29 lines (27 loc) · 1.09 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)"
}
# FIXME: move to /etc/openvpn/client and chown to root:network.
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"
for f in basic_firewall.sh block_ipv6.sh disable_ipv6.conf example.conf pkill_hup_openvpn vpnfailsafe_reset.sh; do
install -D -m644 "extras/$f" "${pkgdir}/usr/share/doc/${pkgname%-git}/"
done
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}