Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9b20fff933bf56dbcb4f798c581bc44a040787b1
commit 9b20fff933bf56dbcb4f798c581bc44a040787b1 Author: James Buren <[email protected]> Date: Mon Jul 30 08:12:40 2012 -0500 openvpn-2.1.3-5-x86_64 * convert to systemd schema diff --git a/source/network-extra/openvpn/FrugalBuild b/source/network-extra/openvpn/FrugalBuild index bb26c1f..4089f67 100644 --- a/source/network-extra/openvpn/FrugalBuild +++ b/source/network-extra/openvpn/FrugalBuild @@ -4,16 +4,20 @@ pkgname=openvpn pkgver=2.1.3 -pkgrel=4 +pkgrel=5 pkgdesc="A secure tunneling daemon" url="http://www.openvpn.org/" depends=('openssl>=1.0.0' 'lzo' 'pam') groups=('network-extra') archs=('i686' 'x86_64') up2date="lynx -dump 'http://openvpn.net/release/?C=M&O=D' |grep -v beta| grep '$pkgname.*.tar.\(gz\|bz2\)' | sed -ne 's|.*$pkgname-\(.*\).tar.*|\1|g;1 p'" -source=(http://www.openvpn.net/release/$pkgname-$pkgver.tar.gz rc.openvpn) +source=(http://www.openvpn.net/release/$pkgname-$pkgver.tar.gz rc.openvpn [email protected]) sha1sums=('91058e78c58c2e66298c7132bea1ddba52baaa82' \ - '4f0faa66f3562a6a76bdc6f6ed1db96b2ab974de') + '4f0faa66f3562a6a76bdc6f6ed1db96b2ab974de' \ + 'c79ce19443d14334600aaaa1caf072490a6e9da0') +_F_sysvinit_units=(openvpn) +_F_systemd_units=(openvpn@=) +Finclude systemd build() { @@ -32,6 +36,8 @@ build() cat > $Fdestdir/etc/tmpfiles.d/openvpn.conf << EOF d $Flocalstatedir/run/openvpn 0755 root root - EOF + Ffile /lib/systemd/system/[email protected] + Fgenscriptlet } # optimization OK diff --git a/source/network-extra/openvpn/[email protected] b/source/network-extra/openvpn/[email protected] new file mode 100644 index 0000000..210e749 --- /dev/null +++ b/source/network-extra/openvpn/[email protected] @@ -0,0 +1,11 @@ +[Unit] +Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/openvpn/%i.pid +ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf + +[Install] +WantedBy=multi-user.target _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
