1 # Based on PKGBUILD by:
2 # Maintainer: eric <eric@archlinux.org>
3 # Contributor: Manolis Tzanidakis
8 pkgdesc="Easy-to-use command-line tools for building TCP client-server applications."
10 url="http://cr.yp.to/ucspi-tcp.html"
11 license=('public-domain')
13 source=("http://cr.yp.to/$pkgname/$pkgname-$pkgver.tar.gz"
14 "http://www.bltweb.net/qmail/ucspi-tcp-$pkgver-ipv6.patch"
17 md5sums=('39b619147db54687c4a583a7a94c9163'
18 'b6567a9114cc4d848082f0787b513ccd'
19 'b36e99b422384451ac68b3a9b31b7ed6'
20 '554ec0eb60f619667efde3fb5325310d')
23 cd $srcdir/$pkgname-$pkgver
24 /usr/bin/patch -p1 < $srcdir/ucspi-rss.diff || return 1
25 /usr/bin/patch -p0 < $srcdir/head-1.patch || return 1
26 /usr/bin/patch -p1 < $srcdir/ucspi-tcp-$pkgver-ipv6.patch || return 1
27 /bin/echo "gcc ${CFLAGS}" > conf-cc
28 /bin/echo "/usr" > conf-home
29 # allow larger responses
30 /bin/sed -i 's|if (text.len > 200) text.len = 200;|if (text.len > 500) text.len = 500;|g' \
32 /usr/bin/make || return 1
33 for bin in tcpserver tcprules tcprulescheck argv0 recordio \
34 tcpclient *\@ tcpcat mconnect mconnect-io addcr \
35 delcr fixcrio rblsmtpd; do
36 /bin/install -m 755 -D $bin $pkgdir/usr/bin/$bin