From 5da95ade3824aa45275b3457899ba8056b7c198f Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 9 Dec 2011 10:59:06 +0100 Subject: main/openvpn: add pre-install script that creates user --- main/openvpn/APKBUILD | 4 ++-- main/openvpn/openvpn.pre-install | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 main/openvpn/openvpn.pre-install (limited to 'main/openvpn') 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 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 -- cgit v1.2.3