summaryrefslogtreecommitdiff
path: root/community/dante
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/dante
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/dante')
-rw-r--r--community/dante/PKGBUILD37
-rw-r--r--community/dante/sockd.service12
2 files changed, 49 insertions, 0 deletions
diff --git a/community/dante/PKGBUILD b/community/dante/PKGBUILD
new file mode 100644
index 000000000..094e95b38
--- /dev/null
+++ b/community/dante/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 91850 2013-05-28 17:25:33Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Guillem Rieu <guillemr@gmx.net>
+
+pkgname=dante
+pkgver=1.3.2
+pkgrel=5
+pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
+url="http://www.inet.no/dante"
+arch=(i686 x86_64)
+license=('custom')
+depends=('pam' 'krb5')
+backup=('etc/socks.conf'
+ 'etc/sockd.conf')
+options=('!libtool')
+source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
+ sockd.service)
+md5sums=('250c6456cd3fefa17f07fa80c9ccf6bd'
+ '9bb18a0165764092bd01da0ff6303fbf')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --disable-libwrap
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+ mkdir -p ${pkgdir}/etc/conf.d
+ cp example/{socks,sockd}.conf ${pkgdir}/etc
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ 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..68201577a
--- /dev/null
+++ b/community/dante/sockd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=SOCKS v4 and v5 compatible proxy server and client
+After=network.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/sockd.conf
+PIDFile=/run/sockd.pid
+ExecStart=/usr/bin/sockd $SOCKD_OPTS
+
+[Install]
+WantedBy=multi-user.target