summaryrefslogtreecommitdiff
path: root/security/proxycheck
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2003-06-13 08:41:25 +0000
committerErwin Lansing <erwin@FreeBSD.org>2003-06-13 08:41:25 +0000
commit1f1024a98148e84827d0cf2326a8a484d02742f3 (patch)
tree1065ebcda0d83e3e030ee26214ccac4e20305fe1 /security/proxycheck
parentDon't try to install files to ${PREFIX} during the build. (diff)
Add proxycheck 0.45, check for open proxy servers.
PR: 53269 Submitted by: Paul Chvostek <paul@it.ca>
Notes
Notes: svn path=/head/; revision=82918
Diffstat (limited to 'security/proxycheck')
-rw-r--r--security/proxycheck/Makefile36
-rw-r--r--security/proxycheck/distinfo2
-rw-r--r--security/proxycheck/files/patch-aa22
-rw-r--r--security/proxycheck/files/patch-ab20
-rw-r--r--security/proxycheck/files/patch-ac11
-rw-r--r--security/proxycheck/pkg-descr11
-rw-r--r--security/proxycheck/pkg-plist4
7 files changed, 106 insertions, 0 deletions
diff --git a/security/proxycheck/Makefile b/security/proxycheck/Makefile
new file mode 100644
index 000000000000..e8e0b130dfd5
--- /dev/null
+++ b/security/proxycheck/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: proxycheck
+# Date created: Fri Jun 13 02:26:04 EDT 2003
+# Whom: Paul Chvostek <paul@it.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= proxycheck
+PORTVERSION= 0.45
+CATEGORIES= security
+MASTER_SITES= http://www.corpit.ru/mjt/proxycheck/:0 \
+ http://www.it.ca/~paul/src/:0
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:0
+
+.if !defined(NOPORTDOCS)
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
+MASTER_SITES+= http://www.corpit.ru/mjt/:1 \
+ http://www.it.ca/~paul/src/:1
+DISTFILES+= proxycheck.html:1
+.endif
+
+MAINTAINER= paul+ports@it.ca
+COMMENT= Check for open proxy servers
+
+MAN1= proxycheck.1
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/proxycheck ${PREFIX}/sbin/
+ @${INSTALL_MAN} ${WRKSRC}//proxycheck.1 ${PREFIX}/man/man1/
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
+ @${INSTALL_DATA} ${DISTDIR}/proxycheck.html ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/proxycheck/distinfo b/security/proxycheck/distinfo
new file mode 100644
index 000000000000..a2f1321280ca
--- /dev/null
+++ b/security/proxycheck/distinfo
@@ -0,0 +1,2 @@
+MD5 (proxycheck-0.45.tar.gz) = 281eebe5ac6727dcdabf1cefcb2424cf
+MD5 (proxycheck.html) = 3d393ad5c49e58f20fe9f1d43c359395
diff --git a/security/proxycheck/files/patch-aa b/security/proxycheck/files/patch-aa
new file mode 100644
index 000000000000..a23ab13cf9db
--- /dev/null
+++ b/security/proxycheck/files/patch-aa
@@ -0,0 +1,22 @@
+--- Makefile.orig Sun May 11 10:47:38 2003
++++ Makefile Fri Jun 13 03:01:04 2003
+@@ -2,15 +2,15 @@
+ # Makefile for proxycheck. GPL
+
+-CC = cc
+-CFLAGS = -O
++CC ?= cc
++CFLAGS += -O
+ DEFS = -D_GNU_SOURCE
+ LD = $(CC)
+-LDFLAGS =
++# LDFLAGS =
+
+ # For Solaris, we need -lsocket -lnsl and -lresolv for inet_aton
+-RSOCKLIBS = `[ -f /usr/lib/libsocket.so ] && echo -lresolv -lsocket -lnsl || :`
+-SOCKLIBS = `[ -f /usr/lib/libsocket.so ] && echo -lsocket -lnsl || :`
++# RSOCKLIBS = `[ -f /usr/lib/libsocket.so ] && echo -lresolv -lsocket -lnsl || :`
++# SOCKLIBS = `[ -f /usr/lib/libsocket.so ] && echo -lsocket -lnsl || :`
+
+ USE_CFLAGS = $(CFLAGS) $(DEFS)
+
diff --git a/security/proxycheck/files/patch-ab b/security/proxycheck/files/patch-ab
new file mode 100644
index 000000000000..50002060e30e
--- /dev/null
+++ b/security/proxycheck/files/patch-ab
@@ -0,0 +1,20 @@
+--- proxycheck.c.orig Fri Jun 13 03:07:12 2003
++++ proxycheck.c Fri Jun 13 03:07:53 2003
+@@ -974,7 +974,7 @@
+ dstspec = strdup(pxybuf);
+ }
+
+- dsbluser = egetenv("DSBL_USER", "anonimous");
++ dsbluser = egetenv("DSBL_USER", "anonymous");
+ dsblpass = egetenv("DSBL_PASS", "");
+ dsblfrom = egetenv("DSBL_FROM", dsbluser);
+ dsblrcpt = egetenv("DSBL_RCPT", "listme@listme.dsbl.org");
+@@ -1015,7 +1015,7 @@
+ { "dsbl", dsblh, dsbld, dsble, dsbli, "[:smtpserver[:port]]",
+ "attempt to submit proxy to DSBL-like system\n"
+ " DSBL settings are expected to be in environment:\n"
+- "\t$DSBL_USER - username (anonimous)\n"
++ "\t$DSBL_USER - username (anonymous)\n"
+ "\t$DSBL_PASS - password (default is empty)\n"
+ "\t$DSBL_COOKIE_HOST - cookie server (cookie.dsbl.org)\n"
+ "\t$DSBL_COOKIE - already obtained DSBL cookie\n"
diff --git a/security/proxycheck/files/patch-ac b/security/proxycheck/files/patch-ac
new file mode 100644
index 000000000000..97751a5725c3
--- /dev/null
+++ b/security/proxycheck/files/patch-ac
@@ -0,0 +1,11 @@
+--- proxycheck.1.orig Fri Jun 13 03:07:05 2003
++++ proxycheck.1 Fri Jun 13 03:07:42 2003
+@@ -72,7 +72,7 @@
+ (username, password, recipient address, cookie server, ...) are
+ expected to be found in environment variables. Run \fBproxycheck\fR
+ with \fB\-h\fR option to see a list of recognized variables and
+-their default values. By default, \fBproxycheck\fR will anonimously
++their default values. By default, \fBproxycheck\fR will anonymously
+ submit all found proxies to unconfirmed.dsbl.org (which isn't very
+ useful). For trusted DSBL user, at least DSBL_USER and DSBL_PASS
+ variables should be set properly.
diff --git a/security/proxycheck/pkg-descr b/security/proxycheck/pkg-descr
new file mode 100644
index 000000000000..80f7c7ab3cfc
--- /dev/null
+++ b/security/proxycheck/pkg-descr
@@ -0,0 +1,11 @@
+proxycheck is a simple tool that may be used to check whether a given
+host or set of hosts has open proxy server running.
+
+See http://www.corpit.ru/mjt/proxycheck.html for more information.
+
+proxycheck was written by Michael Tokarev and comes ready to contribute
+results to DSBL.org.
+
+WWW: http://www.corpit.ru/mjt/proxycheck.html
+
+- Paul Chvostek <paul+ports@it.ca>
diff --git a/security/proxycheck/pkg-plist b/security/proxycheck/pkg-plist
new file mode 100644
index 000000000000..aee78d54e8d0
--- /dev/null
+++ b/security/proxycheck/pkg-plist
@@ -0,0 +1,4 @@
+sbin/proxycheck
+%%PORTDOCS%%share/doc/proxycheck/CHANGES
+%%PORTDOCS%%share/doc/proxycheck/proxycheck.html
+%%PORTDOCS%%@dirrm share/doc/proxycheck