summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d0e3fbb009ab7e66454421df90a8962e9af8403 (plain)
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
30
31
32
33
34
35
36
# Maintainer: Nadir Boussoukaia <boussou@gmail.com>

pkgname=ivpn-openrc
pkgver=1.0
pkgrel=1
pkgdesc="OpenRC service for ivpn VPN service"
arch=('any')
url='https://aur.archlinux.org/packages/ivpn-vpn-openrc'
license=('GPL')
depends=('openrc' 'ivpn')

build()
{
	#cd "$srcdir/$pkgname"
    cat > ivpn << EOF
#!/usr/bin/openrc-run

supervisor="supervise-daemon"
description="The IVPN daemon"
command="/usr/bin/ivpn-service"
command_args=""

depend() {
	need localmount
	use dns
	provide vpn 
}

EOF

}


package() {
  install -Dm755 ${srcdir}/ivpn "$pkgdir"/etc/init.d/ivpn  
}