aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tsocks/APKBUILD
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@me.com>2015-03-26 18:46:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-06 11:53:09 +0000
commita244e7b6f4190c4e76c5b391dd493ae7db50c887 (patch)
treed7a6a2162dda680981f552b3fa9742636700b476 /testing/tsocks/APKBUILD
parente777c7f614d7bb885772c0f24a76a6bafbe81180 (diff)
downloadaports-a244e7b6f4190c4e76c5b391dd493ae7db50c887.tar.bz2
aports-a244e7b6f4190c4e76c5b391dd493ae7db50c887.tar.xz
testing/tsocks new aports
A transparent SOCKS proxying library http://tsocks.sourceforge.net/
Diffstat (limited to 'testing/tsocks/APKBUILD')
-rw-r--r--testing/tsocks/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/tsocks/APKBUILD b/testing/tsocks/APKBUILD
new file mode 100644
index 0000000000..c91482bb8d
--- /dev/null
+++ b/testing/tsocks/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer:
+pkgname=tsocks
+pkgver=1.8_beta5
+_ver=${pkgver/_beta/beta}
+pkgrel=0
+pkgdesc="A transparent SOCKS proxying library"
+url="http://tsocks.sourceforge.net/"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends=""
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_ver}.tar.gz
+ configure.patch"
+
+_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 \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --libdir=/usr/lib \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install || return 1
+}
+
+md5sums="51caefd77e5d440d0bbd6443db4fc0f8 tsocks-1.8beta5.tar.gz
+644111485855c4d436fe89b9de9426d6 configure.patch"
+sha256sums="849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347 tsocks-1.8beta5.tar.gz
+264628c26991c8c380dd6b2e0ced1cacfd52d33743477dac245360ef730474c4 configure.patch"
+sha512sums="b41636ea6b77abf0d1e3cda7bbca4e7ee96f3cdb1843f3a2c530650931e5567f67921de67b28ba9bab0f51df39770a3f7fb458cf7ac78aad7aa861923df2c4a9 tsocks-1.8beta5.tar.gz
+919479e359cafe4b331f5e5b058e0f07d1e6a37aa614891f9b16b4ea12a2358f8f42bb75c8cf9ebbecb223f88b1326e35f490c166247bd00d58e1eee57955800 configure.patch"