aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ucspi-tcp
diff options
context:
space:
mode:
authorJohannes Findeisen <you@hanez.org>2016-12-05 23:55:56 +0100
committerTimo Teräs <timo.teras@iki.fi>2017-02-08 07:39:15 +0000
commit32de6d31c2975d3bafb90dfaeab91da13b0011e1 (patch)
treee714d9298bf862c0fb9ec36b003c4e5a98a0aa90 /unmaintained/ucspi-tcp
parent3096d153c636ee75f5bb3e32cd0e4cf4adfc69c4 (diff)
downloadaports-32de6d31c2975d3bafb90dfaeab91da13b0011e1.tar.bz2
aports-32de6d31c2975d3bafb90dfaeab91da13b0011e1.tar.xz
testing/ucspi-tcp: moved from unmaintaned
made APKBUILD more consistent
Diffstat (limited to 'unmaintained/ucspi-tcp')
-rw-r--r--unmaintained/ucspi-tcp/APKBUILD50
-rw-r--r--unmaintained/ucspi-tcp/ucspi-tcp-0.88.a_record.patch64
-rw-r--r--unmaintained/ucspi-tcp/ucspi-tcp-0.88.errno.patch12
3 files changed, 0 insertions, 126 deletions
diff --git a/unmaintained/ucspi-tcp/APKBUILD b/unmaintained/ucspi-tcp/APKBUILD
deleted file mode 100644
index 98e84685a6..0000000000
--- a/unmaintained/ucspi-tcp/APKBUILD
+++ /dev/null
@@ -1,50 +0,0 @@
-# Contributor: Francesco Colista <francesco.colista@gmail.com>
-# Maintainer: Francesco Colista <francesco.colista@gmail.com>
-
-pkgname=ucspi-tcp
-pkgver=0.88
-pkgrel=1
-pkgdesc="Easy-to-use command-line tools for building TCP client-server applications."
-url="http://cr.yp.to/ucspi-tcp.html"
-arch="all"
-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() {
- local f
- 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"
diff --git a/unmaintained/ucspi-tcp/ucspi-tcp-0.88.a_record.patch b/unmaintained/ucspi-tcp/ucspi-tcp-0.88.a_record.patch
deleted file mode 100644
index 903125eaae..0000000000
--- a/unmaintained/ucspi-tcp/ucspi-tcp-0.88.a_record.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-diff -ruN --exclude conf-* ucspi-tcp-0.88/rblsmtpd.c ucspi-tcp-0.88.fix/rblsmtpd.c
---- ucspi-tcp-0.88/rblsmtpd.c Sat Mar 18 10:18:42 2000
-+++ ucspi-tcp-0.88.fix/rblsmtpd.c Wed Aug 9 16:42:33 2000
-@@ -60,16 +60,54 @@
-
- void rbl(char *base)
- {
-+ int i;
-+ char *altreply = 0;
- if (decision) return;
- if (!stralloc_copy(&tmp,&ip_reverse)) nomem();
-+ i = str_chr(base, ':');
-+ if (base[i]) {
-+ base[i] = 0;
-+ altreply = base+i+1;
-+ }
- if (!stralloc_cats(&tmp,base)) nomem();
-- if (dns_txt(&text,&tmp) == -1) {
-- flagmustnotbounce = 1;
-- if (flagfailclosed) {
-- if (!stralloc_copys(&text,"temporary RBL lookup error")) nomem();
-- decision = 2;
-+ if (altreply) {
-+ if (dns_ip4(&text,&tmp) == -1) {
-+ flagmustnotbounce = 1;
-+ if (flagfailclosed) {
-+ if (!stralloc_copys(&text,"temporary RBL lookup error")) nomem();
-+ decision = 2;
-+ }
-+ return;
-+ }
-+ if (text.len) {
-+ if(!stralloc_copys(&text, "")) nomem();
-+ while(*altreply) {
-+ char *x;
-+ i = str_chr(altreply, '%');
-+ if(!stralloc_catb(&text, altreply, i)) nomem();
-+ if(altreply[i] &&
-+ altreply[i+1]=='I' &&
-+ altreply[i+2]=='P' &&
-+ altreply[i+3]=='%') {
-+ if(!stralloc_catb(&text, ip_env, str_len(ip_env))) nomem();
-+ altreply+=i+4;
-+ } else if(altreply[i]) {
-+ if(!stralloc_cats(&text, "%")) nomem();
-+ altreply+=i+1;
-+ } else {
-+ altreply+=i;
-+ }
-+ }
-+ }
-+ } else {
-+ if (dns_txt(&text,&tmp) == -1) {
-+ flagmustnotbounce = 1;
-+ if (flagfailclosed) {
-+ if (!stralloc_copys(&text,"temporary RBL lookup error")) nomem();
-+ decision = 2;
-+ }
-+ return;
- }
-- return;
- }
- if (text.len)
- if (flagrblbounce)
diff --git a/unmaintained/ucspi-tcp/ucspi-tcp-0.88.errno.patch b/unmaintained/ucspi-tcp/ucspi-tcp-0.88.errno.patch
deleted file mode 100644
index 7654c783a6..0000000000
--- a/unmaintained/ucspi-tcp/ucspi-tcp-0.88.errno.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -u ucspi-tcp-0.88.old/error.h ucspi-tcp-0.88/error.h
---- ucspi-tcp-0.88.old/error.h 2000-03-18 09:18:20.000000000 -0600
-+++ ucspi-tcp-0.88/error.h 2003-01-08 13:39:12.000000000 -0600
-@@ -1,7 +1,7 @@
- #ifndef ERROR_H
- #define ERROR_H
-
--extern int errno;
-+#include <errno.h>
-
- extern int error_intr;
- extern int error_nomem;