Merge pull request #624 from devane/master

ucspi-tcp package template
This commit is contained in:
Juan RP 2014-11-07 16:54:17 +01:00
commit 9412829c9b
5 changed files with 4906 additions and 0 deletions

View File

@ -0,0 +1,43 @@
From d0327e3325837b4aa22198ac090530a3060952ef Mon Sep 17 00:00:00 2001
From: Gerrit Pape <pape@smarden.org>
Date: Wed, 9 Jan 2008 07:16:42 +0000
Subject: [PATCH] rblsmtpd.c: don't use a the default rbl.maps.vix.com if run without -r switch.
rbl.maps.vix.com is obsolete, so don't use it as default rbl if run
without the -r switch; default to no rbl instead.
---
rblsmtpd.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/rblsmtpd.c b/rblsmtpd.c
index cc8ba2e..9695d9e 100644
--- a/rblsmtpd.c
+++ b/rblsmtpd.c
@@ -155,7 +155,6 @@ void rblsmtpd(void)
main(int argc,char **argv,char **envp)
{
- int flagwantdefaultrbl = 1;
char *x;
int opt;
@@ -182,7 +181,7 @@ main(int argc,char **argv,char **envp)
case 'c': flagfailclosed = 1; break;
case 'C': flagfailclosed = 0; break;
case 't': scan_ulong(optarg,&timeout); break;
- case 'r': rbl(optarg); flagwantdefaultrbl = 0; break;
+ case 'r': rbl(optarg); break;
case 'a': antirbl(optarg); break;
default: usage();
}
@@ -190,7 +189,6 @@ main(int argc,char **argv,char **envp)
argv += optind;
if (!*argv) usage();
- if (flagwantdefaultrbl) rbl("rbl.maps.vix.com");
if (decision >= 2) rblsmtpd();
pathexec_run(*argv,argv,envp);
--
1.6.0.3

View File

@ -0,0 +1,27 @@
From 3be7db918230dde2ce4937f7329d6461b0702d6d Mon Sep 17 00:00:00 2001
From: Gerrit Pape <pape@smarden.org>
Date: Wed, 16 Apr 2008 20:56:00 +0000
Subject: [PATCH] Makefile: target choose: do not depend on conf-home
---
Makefile | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index a67b0cb..bcf5bd5 100644
--- a/Makefile
+++ b/Makefile
@@ -145,9 +145,8 @@ compile chkshsgr.c exit.h
./compile chkshsgr.c
choose: \
-warn-auto.sh choose.sh conf-home
+warn-auto.sh choose.sh
cat warn-auto.sh choose.sh \
- | sed s}HOME}"`head -1 conf-home`"}g \
> choose
chmod 755 choose
--
1.6.0.3

View File

@ -0,0 +1,9 @@
diff --git a/conf-home b/conf-home
--- a/conf-home 2014-11-07 13:55:54.238896295 +0200
+++ b/conf-home 2014-11-07 13:55:39.306591215 +0200
@@ -1,4 +1,4 @@
-/usr/local
+/usr
This is the ucspi-tcp home directory. Programs will be installed in
.../bin.

View File

@ -0,0 +1,49 @@
# Template file for 'ucspi-tcp'
pkgname=ucspi-tcp
patch_args="-Np1"
version=0.88
revision=1
short_desc="Command-line tools for building TCP client-server applications"
maintainer="Nikolay Hristov <geroy@horizon9.org>"
license="public domain"
build_style=gnu-makefile
homepage="http://cr.yp.to/ucspi-tcp.html"
distfiles="http://cr.yp.to/ucspi-tcp/ucspi-tcp-${version}.tar.gz"
checksum=4a0615cab74886f5b4f7e8fd32933a07b955536a3476d74ea087a3ea66a23e9c
do_install() {
vbin addcr
vbin date@
vbin finger@
vbin http@
vbin recordio
vbin tcpclient
vbin recordio
vbin tcprulescheck
vbin who@
vbin argv0
vbin delcr
vbin fixcrio
vbin mconnect
vbin mconnect-io
vbin tcpcat
vbin tcprules
vbin tcpserver
vbin rblsmtpd
vman addcr.1
vman date@.1
vman finger@.1
vman http@.1
vman recordio.1
vman tcpclient.1
vman tcprulescheck.1
vman who@.1
vman argv0.1
vman delcr.1
vman fixcr.1 fixcrio.1
vman mconnect.1
vman tcpcat.1
vman tcprules.1
vman tcpserver.1
vdoc README
}