diff -Naupr tinc.old/PKGBUILD tinc/PKGBUILD --- tinc.old/PKGBUILD 2012-09-07 16:58:17.604379178 +0200 +++ tinc/PKGBUILD 2012-09-07 17:05:27.088719129 +0200 @@ -2,10 +2,11 @@ # Maintainer: Timothy Redaelli # Contributor: helios # Contributor: Lothar Gesslein +# Contributor: Dominik George pkgname=tinc pkgver=1.0.19 -pkgrel=1 +pkgrel=2 pkgdesc="VPN (Virtual Private Network) daemon" arch=('i686' 'x86_64') url="http://www.tinc-vpn.org/" @@ -14,11 +15,12 @@ depends=('lzo2' 'openssl') backup=(etc/conf.d/tincd.conf) install=tinc.install source=(http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz{,.sig} - tincd.rc tincd.conf) + tincd.rc tincd.conf tincd@.service) md5sums=('5d97ee0f1ccf8fea5b492f6b54d5ac32' 'af4a88d89a17c216e38b93630389181a' '64bb53748d9051255f243003f0d511f5' - '7c0276d4812cc5d3cc18142562a3aa82') + '7c0276d4812cc5d3cc18142562a3aa82' + '035b0e549b08da55d19a8df5b8306e4d') build() { cd "$srcdir/$pkgname-$pkgver" @@ -38,4 +40,5 @@ package() { install -Dm755 "$srcdir/tincd.rc" "$pkgdir/etc/rc.d/tincd" install -Dm644 "$srcdir/tincd.conf" "$pkgdir/etc/conf.d/tincd.conf" + install -Dm644 "$srcdir/tincd@.service" "$pkgdir/usr/lib/systemd/system/tincd@.service" } diff -Naupr tinc.old/tincd@.service tinc/tincd@.service --- tinc.old/tincd@.service 1970-01-01 01:00:00.000000000 +0100 +++ tinc/tincd@.service 2012-09-07 17:00:56.040187525 +0200 @@ -0,0 +1,10 @@ +[Unit] +Description=Tinc daemon for net %i +After=network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/tincd -n %i + +[Install] +WantedBy=multi-user.target