summaryrefslogtreecommitdiff
path: root/mail/pop3vscan
diff options
context:
space:
mode:
Diffstat (limited to 'mail/pop3vscan')
-rw-r--r--mail/pop3vscan/Makefile48
-rw-r--r--mail/pop3vscan/distinfo2
-rw-r--r--mail/pop3vscan/files/patch-Makefile27
-rw-r--r--mail/pop3vscan/files/patch-getline.h10
-rw-r--r--mail/pop3vscan/files/patch-pop3vscan.c57
-rw-r--r--mail/pop3vscan/files/patch-pop3vscan.h10
-rw-r--r--mail/pop3vscan/files/patch-scanner_avpd.c11
-rw-r--r--mail/pop3vscan/files/patch-scanner_trophie.c11
-rw-r--r--mail/pop3vscan/files/pkg-message.in20
-rw-r--r--mail/pop3vscan/files/pop3vscan.sh31
-rw-r--r--mail/pop3vscan/pkg-descr8
-rw-r--r--mail/pop3vscan/pkg-install15
12 files changed, 0 insertions, 250 deletions
diff --git a/mail/pop3vscan/Makefile b/mail/pop3vscan/Makefile
deleted file mode 100644
index f9b39fab9624..000000000000
--- a/mail/pop3vscan/Makefile
+++ /dev/null
@@ -1,48 +0,0 @@
-# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
-# $FreeBSD$
-
-PORTNAME= pop3vscan
-PORTVERSION= 0.4
-PORTREVISION= 10
-CATEGORIES= mail
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Transparent POP3-Proxy with virus-scanning capabilities
-
-DEPRECATED= Unmaintained upstream
-EXPIRATION_DATE= 2018-09-15
-
-LIB_DEPENDS= libpcre.so:devel/pcre
-
-USES= gmake
-USE_GCC= yes
-MAKE_ENV= _LDFLAGS="${LDFLAGS}"
-
-USERS= pop3vscan
-
-PLIST_FILES= etc/pop3vscan.conf.sample \
- etc/pop3vscan.mail.sample \
- etc/rc.d/pop3vscan.sh \
- sbin/pop3vscan
-
-SUB_FILES= pkg-message
-
-post-extract:
- @${RM} ${WRKSRC}/ripmime/ripmime.a
-
-post-patch:
- @${REINPLACE_CMD} -e "/CC/s,gcc,${CC},g" ${WRKSRC}/Makefile ${WRKSRC}/ripmime/Makefile ${WRKSRC}/ripmime/tnef/Makefile
- @${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,g' ${WRKSRC}/*.c
- @${REINPLACE_CMD} -e 's,#endif.*,#endif,g' ${WRKSRC}/*.h
- @${REINPLACE_CMD} -e 's,make,${MAKE_CMD},g' ${WRKSRC}/ripmime/build_tnef
- @${REINPLACE_CMD} -e 's,=4321,=_BYTE_ORDER -include /usr/include/machine/endian.h,g' \
- ${WRKSRC}/ripmime/tnef/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pop3vscan ${STAGEDIR}${PREFIX}/sbin/
- ${INSTALL_DATA} ${WRKSRC}/pop3vscan.conf ${STAGEDIR}${PREFIX}/etc/pop3vscan.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/pop3vscan.mail ${STAGEDIR}${PREFIX}/etc/pop3vscan.mail.sample
- ${INSTALL_SCRIPT} ${FILESDIR}/pop3vscan.sh ${STAGEDIR}${PREFIX}/etc/rc.d/
-
-.include <bsd.port.mk>
diff --git a/mail/pop3vscan/distinfo b/mail/pop3vscan/distinfo
deleted file mode 100644
index 6185d45ac614..000000000000
--- a/mail/pop3vscan/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (pop3vscan-0.4.tar.gz) = aa41c9374928bf11e06b13cf26d60e43bbc52f68b97773077274b0dccc6dd629
-SIZE (pop3vscan-0.4.tar.gz) = 134583
diff --git a/mail/pop3vscan/files/patch-Makefile b/mail/pop3vscan/files/patch-Makefile
deleted file mode 100644
index dcd479f75603..000000000000
--- a/mail/pop3vscan/files/patch-Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
---- Makefile.orig Wed Jun 12 08:19:05 2002
-+++ Makefile Tue Jun 3 03:23:37 2003
-@@ -21,11 +21,10 @@
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
-
--PREFIX=/usr
- CC=gcc
- #CFLAGS=-Wall -ggdb
--CFLAGS=-Wall -O2
--LDFLAGS=-L. -lmime -lpcre #-static
-+CFLAGS=-Wall -O2 -I$(LOCALBASE)/include -DPREFIX=\"${PREFIX}\"
-+LDFLAGS=-L. -lmime -lpcre -L$(LOCALBASE)/lib $(_LDFLAGS) #-static
-
- OBJECTS=getline.o parsefile.o pop3vscan.o \
- scanner_basic.o scanner_avpd.o scanner_trophie.o
-@@ -50,8 +49,8 @@
-
- dep depend .dep:
- @echo "creating depencies"
-- rm .tmp.dep -f
-- @find -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0rt $(CC) -M $(CFLAGS) >>.tmp.dep
-+ rm -f .tmp.dep
-+ @find . -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0t $(CC) -M $(CFLAGS) >>.tmp.dep
- mv .tmp.dep .dep
-
- install: pop3vscan
diff --git a/mail/pop3vscan/files/patch-getline.h b/mail/pop3vscan/files/patch-getline.h
deleted file mode 100644
index d94e3705d4b7..000000000000
--- a/mail/pop3vscan/files/patch-getline.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- getline.h.orig 2002-06-12 00:19:05 UTC
-+++ getline.h
-@@ -71,6 +71,7 @@ typedef struct linebuf {
- * You can call getline again, but it will return
- * the rest of that line and not the next one!
- */
-+#define getline folke_getline
- int getline(int fd, struct linebuf * l);
-
- /* writes line to fd
diff --git a/mail/pop3vscan/files/patch-pop3vscan.c b/mail/pop3vscan/files/patch-pop3vscan.c
deleted file mode 100644
index 80c2af892c8e..000000000000
--- a/mail/pop3vscan/files/patch-pop3vscan.c
+++ /dev/null
@@ -1,57 +0,0 @@
---- pop3vscan.c.orig Wed Jun 12 08:19:05 2002
-+++ pop3vscan.c Tue Jun 3 03:23:38 2003
-@@ -27,11 +27,12 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
--#include <arpa/inet.h>
-+#include <sys/types.h>
- #include <netinet/in.h>
-+#include <netinet/in_systm.h>
-+#include <arpa/inet.h>
- #include <netinet/ip.h>
- #include <sys/socket.h>
--#include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
-@@ -44,8 +45,8 @@
- #include <syslog.h>
- #include <sys/param.h>
- #include <ctype.h>
--#include <linux/netfilter_ipv4.h>
--#include <malloc.h>
-+//#include <linux/netfilter_ipv4.h>
-+#include <stdlib.h>
- #include <getopt.h>
- #include <netdb.h>
- #include <libgen.h>
-@@ -66,14 +67,14 @@
- /* default configuration, anything can be changed at runtime {{{1 */
- #define PORT_NUMBER 8110
- #define MAX_CHILDS 10
--#define RUNAS_USER "mail"
-+#define RUNAS_USER "pop3vscan"
- #define VIRUS_DIR "/var/spool/pop3vscan"
- #define VIRUS_SCANNER NULL
- #define VIRUS_SCANNER_VIRUSCODE 1
- #define PID_FILE "/var/run/pop3vscan.pid"
- #define SYSLOG_NAME "pop3vscan"
--#define CONFIGFILE "/etc/pop3vscan.conf"
--#define VIRUS_TEMPLATE "/etc/pop3vscan.mail"
-+#define CONFIGFILE PREFIX"/etc/pop3vscan.conf"
-+#define VIRUS_TEMPLATE PREFIX"/etc/pop3vscan.mail"
- #define DEBUG 0
- /* TOS: do not set, or use IPTOS_[LOWDELAY|THROUGHPUT|RELIABILITY|LOWCOST] */
- #define SET_TOS IPTOS_THROUGHPUT
-@@ -519,8 +520,8 @@
- inet_ntoa(p->client_addr.sin_addr), ntohs(p->client_addr.sin_port));
-
- p->server_addr.sin_family = AF_INET;
-- if (getsockopt(p->client_fd, SOL_IP, SO_ORIGINAL_DST, &p->server_addr, &p->socksize)){
-- do_log(LOG_CRIT, "No IP-Conntrack-data (getsockopt failed)");
-+ if (getsockname(p->client_fd, (struct sockaddr*)&p->server_addr, &p->socksize)){
-+ do_log(LOG_CRIT, "No IP-Conntrack-data (getsockname failed)");
- return 1;
- }
- do_log(LOG_NOTICE, "Real-server adress is %s:%i",
diff --git a/mail/pop3vscan/files/patch-pop3vscan.h b/mail/pop3vscan/files/patch-pop3vscan.h
deleted file mode 100644
index 22c75c3ed0fd..000000000000
--- a/mail/pop3vscan/files/patch-pop3vscan.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- pop3vscan.h.orig Wed Jun 12 08:19:05 2002
-+++ pop3vscan.h Tue Jun 3 03:23:38 2003
-@@ -28,6 +28,7 @@
- /* includes {{{1 */
- #include <syslog.h> /* do_log */
-+#include <netinet/in.h>
- #include <arpa/inet.h> /* config */
-
- /* definitions {{{1 */
- #define PROGNAME "POP3VScan"
diff --git a/mail/pop3vscan/files/patch-scanner_avpd.c b/mail/pop3vscan/files/patch-scanner_avpd.c
deleted file mode 100644
index 19194f96c743..000000000000
--- a/mail/pop3vscan/files/patch-scanner_avpd.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- scanner_avpd.c.orig Sun Jun 29 21:08:46 2003
-+++ scanner_avpd.c Sun Jun 29 21:10:12 2003
-@@ -74,7 +74,7 @@
- if (avp_fd!=-1 && connected==-1){
- do_log(LOG_DEBUG, "Trying to connect to socket");
- if (connect(avp_fd, (struct sockaddr *)(&avp_socket),
-- sizeof(avp_socket.sun_family) + strlen(NodeCtl)) >= 0){
-+ SUN_LEN(&avp_socket)) >= 0){
- connected=1;
- do_log(LOG_DEBUG, "avp_socket_connect connected to kavdaemon");
- return 0;
diff --git a/mail/pop3vscan/files/patch-scanner_trophie.c b/mail/pop3vscan/files/patch-scanner_trophie.c
deleted file mode 100644
index dfbe3708a59e..000000000000
--- a/mail/pop3vscan/files/patch-scanner_trophie.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- scanner_trophie.c.orig Sun Jun 29 21:08:53 2003
-+++ scanner_trophie.c Sun Jun 29 21:10:34 2003
-@@ -61,7 +61,7 @@
- if (trophie_fd!=-1 && connected==-1){
- do_log(LOG_DEBUG, "Trying to connect to socket");
- if (connect(trophie_fd, (struct sockaddr *)(&trophie_socket),
-- sizeof(trophie_socket.sun_family) + strlen(config->virusscanner)) >= 0){
-+ SUN_LEN(&trophie_socket)) >= 0){
- connected=1;
- do_log(LOG_DEBUG, "trophie_socket_connect connected");
- return 0;
diff --git a/mail/pop3vscan/files/pkg-message.in b/mail/pop3vscan/files/pkg-message.in
deleted file mode 100644
index 9e2bd3ab2199..000000000000
--- a/mail/pop3vscan/files/pkg-message.in
+++ /dev/null
@@ -1,20 +0,0 @@
-**********************************************************************
-
-By default, POP3VScan is configured to work with McAfee UVSCAN.
-Please copy %%PREFIX%%/etc/pop3vscan.conf.sample to pop3vscan.conf and modify
-%%PREFIX%%/etc/pop3vscan.conf and/or %%PREFIX%%/etc/rc.d/pop3vscan.sh to
-fit your environment.
-
-Don't forget to copy %%PREFIX%%/etc/pop3vscan.mail.sample to pop3vscan.mail
-and edit your own template for virus notifications.
-
-By the way, you need to enable the IPFIREWALL opion in kernel. Please note,
-that IPFIREWALL_FORWARD might be needed on older systems as well.
-Then add the following forwarding rule into your IPFW table,
-
-# ipfw add fwd 192.168.0.254,8110 tcp from 192.168.0.0/24 to any pop3
-
-where 192.168.0.254 is the IP of your internal interface, 8110 is the
-default port of POP3VScan, and 192.168.0.0/24 is the IP range of your LAN.
-
-**********************************************************************
diff --git a/mail/pop3vscan/files/pop3vscan.sh b/mail/pop3vscan/files/pop3vscan.sh
deleted file mode 100644
index 8bdbb9892de6..000000000000
--- a/mail/pop3vscan/files/pop3vscan.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 1
-fi
-
-user=pop3vscan
-scanner=${PREFIX}/bin/uvscan
-virusregexp="^[[:space:]]*Found( the|:)[[:space:]]*(.*)[[:space:]]*(|virus[^a-z.]*)$/2"
-template=${PREFIX}/etc/pop3vscan.mail
-viruscode=13
-
-case "$1" in
- start)
- echo -n "Starting POP3VScan"
- ${PREFIX}/sbin/pop3vscan --user=${user} --scanner=${scanner} --virusregexp="${virusregexp}" --template=${template} --viruscode=${viruscode} || exit 1
- ;;
- stop)
- echo -n "Shutting down POP3VScan"
- kill `cat /var/run/pop3vscan.pid 2>/dev/null` &>/dev/null || exit 1
- ;;
- reload|restart)
- $0 stop && sleep 1 && $0 start || exit 1
- ;;
- *)
- echo "Usage: $0 {start|stop|reload|restart}"
- exit 1
-esac
-
-exit 0
diff --git a/mail/pop3vscan/pkg-descr b/mail/pop3vscan/pkg-descr
deleted file mode 100644
index f201b98911b5..000000000000
--- a/mail/pop3vscan/pkg-descr
+++ /dev/null
@@ -1,8 +0,0 @@
-POP3VScan is a transparent POP3-Proxy with virus-scanning capabilities.
-This means that all your POP3-Clients in the Network can't fetch mails
-from the internet without that POP3VScan have scanned it. If a virus has
-been found the mail is replaced with a notification and the original
-(infeceted) version is stored on the harddisc. Transparent means, that
-neither the client nor any of the used POP3-servers has to be configured.
-
-WWW: http://pop3vscan.sourceforge.net/
diff --git a/mail/pop3vscan/pkg-install b/mail/pop3vscan/pkg-install
deleted file mode 100644
index c5dfa4bb2b5b..000000000000
--- a/mail/pop3vscan/pkg-install
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-case $2 in
-
-POST-INSTALL)
- user=pop3vscan
- group=mail
- spooldir=/var/spool/pop3vscan
-
- echo "Fixing ownerships and modes in \"${spooldir}\"."
- chown -R ${user}:${group} ${spooldir}
- chmod -R go= ${spooldir}
-
- ;;
-esac