Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=50b76a7892ce067269ed636b5140e5a2eb3f2174

commit 50b76a7892ce067269ed636b5140e5a2eb3f2174
Author: James Buren <[email protected]>
Date:   Thu Jun 7 01:55:05 2012 -0500

vtun-3.0.1-4-x86_64
* convert to use systemd schema

diff --git a/source/network-extra/vtun/FrugalBuild 
b/source/network-extra/vtun/FrugalBuild
index db307b4..7418481 100644
--- a/source/network-extra/vtun/FrugalBuild
+++ b/source/network-extra/vtun/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=vtun
pkgver=3.0.1
-pkgrel=3
+pkgrel=4
pkgdesc="The easiest way to create Virtual Tunnels over TCP/IP networks"
Finclude sourceforge
url="http://vtun.sourceforge.net/";
@@ -12,12 +12,17 @@ groups=('network-extra')
archs=('i686' 'x86_64')
depends=('openssl>=1.0.0' 'zlib' 'lzo')
backup=('etc/vtund.conf')
-source=($source rc.vtund lzo_fixes.diff)
+source=($source rc.vtund vtund.service lzo_fixes.diff)
up2date="lynx -dump $url|grep Released|sed -ne 's/.*n \(.*\)$/\1/;1 p'"
sha1sums=('b2081ee7238109beef09c1a2aaaf73c331e667e3' \
'42b02a5fea33c66ac64bbd478c63bdd7ce4c6af3' \
+          '4e8d8393216c06f816e08573bc2d5cb24e1045b4' \
'f72f1f70e4c23c5cba004192080d09049ac0f188')

+_F_sysvinit_units=(vtund)
+_F_systemd_units=(vtund=)
+Finclude systemd
+
build() {
Fbuild STAT_DIR=/var/log
Frcd vtund
@@ -26,6 +31,8 @@ build() {
cat > $Fdestdir/etc/tmpfiles.d/vtun.conf << EOF
d $Flocalstatedir/lock/vtund 0755 root root -
EOF
+       Ffile /lib/systemd/system/vtund.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/vtun/vtund.service 
b/source/network-extra/vtun/vtund.service
new file mode 100644
index 0000000..a1c1683
--- /dev/null
+++ b/source/network-extra/vtun/vtund.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Virtual Tunnel Daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/vtund -s
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to