tinc: added runit service.

This commit is contained in:
Juan RP 2014-10-13 15:59:14 +02:00
parent a947176cc3
commit cbd20f9438
2 changed files with 9 additions and 2 deletions

2
srcpkgs/tinc/files/tincd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec tincd -D

View File

@ -1,8 +1,10 @@
# Template file for 'tinc'
pkgname=tinc
version=1.0.24
revision=2
revision=3
build_style=gnu-configure
build_options="systemd"
replaces="runit-void<20141013_2"
makedepends="zlib-devel lzo-devel libressl-devel"
short_desc="VPN (Virtual Private Network) daemon"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -12,5 +14,8 @@ distfiles="${homepage}/packages/${pkgname}-${version}.tar.gz"
checksum=498e58f9f39e3922030a63cf62baf4b46a40fbda8d90b23ec0f084f4a9f9b687
post_install() {
vsv tincd
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/tincd@.service 644 usr/lib/systemd/system
fi
}