diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-09 10:59:06 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-09 10:59:49 +0100 |
commit | 5da95ade3824aa45275b3457899ba8056b7c198f (patch) | |
tree | de4fa3861c617757e0e876d25fc51aa2ed717f1f /main/openvpn | |
parent | 3911cf1a05e9b9172b375ee21e1073cea66763d4 (diff) | |
download | aports-5da95ade3824aa45275b3457899ba8056b7c198f.tar.bz2 aports-5da95ade3824aa45275b3457899ba8056b7c198f.tar.xz |
main/openvpn: add pre-install script that creates user
Diffstat (limited to 'main/openvpn')
-rw-r--r-- | main/openvpn/APKBUILD | 4 | ||||
-rw-r--r-- | main/openvpn/openvpn.pre-install | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/main/openvpn/APKBUILD b/main/openvpn/APKBUILD index 466628b6d8..7f96559a13 100644 --- a/main/openvpn/APKBUILD +++ b/main/openvpn/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=openvpn pkgver=2.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="A robust, and highly configurable VPN (Virtual Private Network)" url="http://openvpn.sourceforge.net/" arch="all" @@ -9,7 +9,7 @@ license="custom" subpackages="$pkgname-doc $pkgname-easy-rsa:easy_rsa" depends="iproute2" makedepends="openssl-dev lzo-dev" -install= +install="$pkgname.pre-install" source="http://swupdate.openvpn.net/community/releases/$pkgname-$pkgver.tar.gz openvpn.initd openvpn.confd diff --git a/main/openvpn/openvpn.pre-install b/main/openvpn/openvpn.pre-install new file mode 100644 index 0000000000..e9c6a0d1ef --- /dev/null +++ b/main/openvpn/openvpn.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +addgroup -S openvpn 2>/dev/null +adduser -S -H -h /dev/null -s /bin/false -D -G openvpn openvpn 2>/dev/null +exit 0 |