From 9e3985ed7c9851da65023a0ab3d0739cce1858e2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Oct 2012 01:24:49 -0700 Subject: Thu Oct 18 01:23:58 PDT 2012 --- community/dante/PKGBUILD | 11 +++++++---- community/dante/sockd.service | 11 +++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 community/dante/sockd.service (limited to 'community/dante') diff --git a/community/dante/PKGBUILD b/community/dante/PKGBUILD index a2cecbd7b..41f9b7551 100644 --- a/community/dante/PKGBUILD +++ b/community/dante/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 55000 2011-08-30 09:22:57Z spupykin $ +# $Id: PKGBUILD 78352 2012-10-17 15:16:38Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Guillem Rieu pkgname=dante pkgver=1.3.2 -pkgrel=1 +pkgrel=2 pkgdesc="SOCKS v4 and v5 compatible proxy server and client" url="http://www.inet.no/dante" arch=(i686 x86_64) @@ -14,9 +14,11 @@ backup=('etc/socks.conf' 'etc/sockd.conf') options=('!libtool') source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz - sockd.rc) + sockd.rc + sockd.service) md5sums=('250c6456cd3fefa17f07fa80c9ccf6bd' - '5110dfd78a2b38fff27a886ee88b58a6') + '5110dfd78a2b38fff27a886ee88b58a6' + '41f1ca885e2383d9db0c29bb7904de65') build() { cd ${srcdir}/${pkgname}-${pkgver} @@ -36,4 +38,5 @@ package() { # rc-script install -D -m755 ${srcdir}/sockd.rc ${pkgdir}/etc/rc.d/sockd echo 'SOCKD_OPTS="-D"' >${pkgdir}/etc/conf.d/sockd.conf + install -Dm0644 $srcdir/sockd.service $pkgdir/usr/lib/systemd/system/sockd.service } diff --git a/community/dante/sockd.service b/community/dante/sockd.service new file mode 100644 index 000000000..6a18a8b0a --- /dev/null +++ b/community/dante/sockd.service @@ -0,0 +1,11 @@ +[Unit] +Description=SOCKS v4 and v5 compatible proxy server and client + +[Service] +Type=forking +EnvironmentFile=/etc/conf.d/sockd.conf +PIDFile=/var/run/sockd.pid +ExecStart=sockd $SOCKD_OPTS + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf