# $Id: PKGBUILD 90649 2013-05-13 14:18:47Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Guillem Rieu pkgname=dante pkgver=1.3.2 pkgrel=4 pkgdesc="SOCKS v4 and v5 compatible proxy server and client" url="http://www.inet.no/dante" arch=(i686 x86_64 'mips64el') 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' 'ceb86b5bd97f7e3ceff28c6e6172a25b') build() { cd ${srcdir}/${pkgname}-${pkgver} [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc \ --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 }