updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ucspi-tcp / PKGBUILD
blob3e0547d91dd00d87619eb4b49c4f525ae8a7e9ca
1 # Based on PKGBUILD by:
2 # Maintainer: eric <eric@archlinux.org>
3 # Contributor: Manolis Tzanidakis
5 pkgname=ucspi-tcp
6 pkgver=0.88
7 pkgrel=3
8 pkgdesc="Easy-to-use command-line tools for building TCP client-server applications."
9 arch=('i686' 'x86_64')
10 url="http://cr.yp.to/ucspi-tcp.html"
11 license=('public-domain')
12 depends=('glibc')
13 source=("http://cr.yp.to/$pkgname/$pkgname-$pkgver.tar.gz"
14         "http://www.bltweb.net/qmail/ucspi-tcp-$pkgver-ipv6.patch"
15         "head-1.patch"
16         "ucspi-rss.diff")
17 md5sums=('39b619147db54687c4a583a7a94c9163'
18          'b6567a9114cc4d848082f0787b513ccd'
19          'b36e99b422384451ac68b3a9b31b7ed6'
20          '554ec0eb60f619667efde3fb5325310d')
22 build() {
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' \
31         rblsmtpd.c
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
37     done
39 # vim: ts=4: ft=sh