summaryrefslogtreecommitdiffstats
path: root/testing/ucspi-tcp/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-17 07:45:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-17 07:52:12 +0000
commitddb3b2506b0fd1702e57d9be564f43e79033d1a5 (patch)
tree73108ca9d0076bf9c99ad0256ba2cfaccdeca8df /testing/ucspi-tcp/APKBUILD
parente73d1132a9cdf0ac21814a0fcfcd5890df23b049 (diff)
downloadaports-ddb3b2506b0fd1702e57d9be564f43e79033d1a5.tar.bz2
aports-ddb3b2506b0fd1702e57d9be564f43e79033d1a5.tar.xz
testing/ucspi-tcp: new aport
Easy-to-use command-line tools for building TCP client-server applications. http://cr.yp.to/ucspi-tcp.html
Diffstat (limited to 'testing/ucspi-tcp/APKBUILD')
-rw-r--r--testing/ucspi-tcp/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/ucspi-tcp/APKBUILD b/testing/ucspi-tcp/APKBUILD
new file mode 100644
index 00000000..9cdca875
--- /dev/null
+++ b/testing/ucspi-tcp/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+
+pkgname=ucspi-tcp
+pkgver=0.88
+pkgrel=0
+pkgdesc="Easy-to-use command-line tools for building TCP client-server applications."
+url="http://cr.yp.to/ucspi-tcp.html"
+license="public-domain"
+depends=""
+makedepends=""
+install=
+subpackages=""
+source="http://cr.yp.to/$pkgname/$pkgname-$pkgver.tar.gz
+ ucspi-tcp-0.88.a_record.patch
+ ucspi-tcp-0.88.errno.patch
+ "
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in ../*.patch;
+ do
+ msg "Applying $i"
+ patch -p1 -i $i || return 1
+ done
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ echo "${CC:-"gcc"} ${CFLAGS}" > conf-cc
+ echo "${CC:-"gcc"} ${LDFLAGS}" > conf-ld
+ echo "/usr" > conf-home
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ mkdir -p "$pkgdir"/usr/bin
+ for f in tcpserver tcprules tcprulescheck argv0 recordio tcpclient \
+ *\@ tcpcat mconnect mconnect-io addcr delcr fixcrio \
+ rblsmtpd; do
+ cp $f "$pkgdir"/usr/bin/$f
+ done
+}
+
+md5sums="39b619147db54687c4a583a7a94c9163 ucspi-tcp-0.88.tar.gz
+554ec0eb60f619667efde3fb5325310d ucspi-tcp-0.88.a_record.patch
+759a11fafff188d9580be6498a028095 ucspi-tcp-0.88.errno.patch"