diff options
Diffstat (limited to 'community/ucspi-tcp6/APKBUILD')
-rw-r--r-- | community/ucspi-tcp6/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/ucspi-tcp6/APKBUILD b/community/ucspi-tcp6/APKBUILD new file mode 100644 index 0000000000..a3e487e09f --- /dev/null +++ b/community/ucspi-tcp6/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Jesse Young <jlyo@jlyo.org> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=ucspi-tcp6 +pkgver=1.03 +pkgrel=0 +pkgdesc="IPv6 enabled ucspi-tcp superserver" +url="http://www.fehcom.de/ipnet/ucspi-tcp6.html" +arch="all" +license="public-domain" +depends="" +depends_dev="" +makedepends="$depends_dev" +subpackages="$pkgname-doc" +conflicts="ucspi-tcp" +provides="ucspi-tcp" +source="http://www.fehcom.de/ipnet/$pkgname/$pkgname-$pkgver.tgz" +builddir="$srcdir"/host/$pkgname-${pkgver%%[a-zA-Z]} + +build() { + cd "$builddir/src" + + echo "${CC:-"gcc"} $CFLAGS" > conf-cc + echo "${CC:-"gcc"} $LDFLAGS" > conf-ld + echo "/usr" > home + + make || return 1 +} + +package() { + local f + cd "$builddir" + mkdir -p "$pkgdir"/usr/bin + for f in $(cat package/commands-base); do + cp "src/$f" "$pkgdir/usr/bin/$f" + done + + for f in $(cd man && echo *.[0-9] ); do + mkdir -p "$pkgdir/usr/share/man/man${f##*[a-zA-Z.]}" + cp "man/$f" "$pkgdir/usr/share/man/man${f##*[a-zA-Z.]}/$f" + done + mkdir -p "$pkgdir/usr/share/licenses/$pkgname" + cp doc/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +md5sums="07be66a804336454e2400fa316a59c34 ucspi-tcp6-1.03.tgz" +sha256sums="3436c0616ab40e2c7f39a761c334a5b73f0e6f219cc474a198d23a8061bc935b ucspi-tcp6-1.03.tgz" +sha512sums="7a4e9fc88a8f00e72895a3f7dc1c07ff8a4d210ae17f4ea84a247095605a2da802464b8f0e690024fdee82913c640b5cf4d8c55551356d047d275d7b4cae951b ucspi-tcp6-1.03.tgz" |