aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dante/APKBUILD
diff options
context:
space:
mode:
authorPaul Kilar <pkilar@gmail.com>2014-07-14 12:14:16 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-15 14:11:03 +0000
commit0e54ff14a89ae38646c1cf6db90f5fa882420086 (patch)
tree02c3750cafcc55e2168b02899057ee819e5b0e38 /testing/dante/APKBUILD
parent86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8 (diff)
downloadaports-0e54ff14a89ae38646c1cf6db90f5fa882420086.tar.bz2
aports-0e54ff14a89ae38646c1cf6db90f5fa882420086.tar.xz
testing/dante: new aport https://www.inet.no/dante/ Dante - A free SOCKS server
Diffstat (limited to 'testing/dante/APKBUILD')
-rw-r--r--testing/dante/APKBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/testing/dante/APKBUILD b/testing/dante/APKBUILD
new file mode 100644
index 0000000000..f3bcfa90cc
--- /dev/null
+++ b/testing/dante/APKBUILD
@@ -0,0 +1,64 @@
+# Contributor: Paul Kilar <pkilar@gmail.com>
+# Maintainer: Paul Kilar <pkilar@gmail.com>
+pkgname=dante
+pkgver='1.4.0'
+pkgrel=0
+pkgdesc="Dante is SOCKS server and a SOCKS client"
+url="http://www.inet.no/dante/index.html"
+arch="all"
+license="BSD/CMU"
+depends=""
+depends_dev=""
+makedepends="bison flex"
+install="$pkgname-server.pre-install"
+options="libtool"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
+source="http://www.inet.no/dante/files/$pkgname-$pkgver.tar.gz
+sockd.initd
+sockd.confd"
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install DESTDIR=$pkgdir || return 1
+}
+
+server() {
+ depends=
+ cd "$_builddir"
+ install -D -m644 "example/sockd.conf" \
+ "$subpkgdir/etc/sockd.conf" || return 1
+ install -D -m644 "$srcdir"/sockd.confd \
+ "$subpkgdir"/etc/conf.d/sockd || return 1
+ install -D -m755 "$srcdir"/sockd.initd \
+ "$subpkgdir"/etc/init.d/sockd || return 1
+
+ install -d "$subpkgdir/usr/sbin"
+ mv "$pkgdir/usr/sbin/sockd" "$subpkgdir/usr/sbin/sockd"
+}
+
+md5sums="c117a3ce25afb936f13b76f1d2524879 dante-1.4.0.tar.gz
+2e947985f21a3b0121ac4af8adb16e0c sockd.initd
+cb49c2fc52c777cc313b089f9d333160 sockd.confd"
+sha256sums="55d448f2d523e69b5637ef12c05556f39201a2c397b4671a2aaaa914ba65684b dante-1.4.0.tar.gz
+40792a170047097164aef164b26f3df00c75b39ca3f6d6a346322f8d286a4b16 sockd.initd
+0b25fe45b5b4315ef3958b89d6b63fd77004ea26d9f5160380c34bbc6e7bbd9f sockd.confd"
+sha512sums="978a70eb789dd2d00a9ac4a7671d13450f9ac96344ae41382c38de7a12e98c2e24159c2e140c95caff0cc9119f7cf409a8716130b34957020706a17c0f96de38 dante-1.4.0.tar.gz
+3859b2ccd5c4987fb1221697cba87163d23b53de29fb8b6dd3a6b5560288c2a21c1528f2d7f54fea33644dc50361d594c6fca3364e89a58d01c3de5d6b2d4ebf sockd.initd
+09b744340c03369983a9b07e50215288e5a43d15497db479867132bee46f34a7a8e451c980e064f751ad50e5231d77fa5ae9fd5cf2efe3274ae50168bfceaa67 sockd.confd"