summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2021-04-21 09:15:08 +0000
committerwiz <wiz@pkgsrc.org>2021-04-21 09:15:08 +0000
commitc1581227599864b8dd3a74ed6f7174ad18d3b204 (patch)
tree88663f2a382f9c442208118b7e7d60a844937f55 /security
parent1dd2169bbdb4b1b0b517ac7ca8c3f33a14f3a83e (diff)
downloadpkgsrc-c1581227599864b8dd3a74ed6f7174ad18d3b204.tar.gz
smtpd: remove
Mail-related security software that hasn't been touched since 1997 should not be used.
Diffstat (limited to 'security')
-rw-r--r--security/Makefile3
-rw-r--r--security/smtpd/DESCR3
-rw-r--r--security/smtpd/MESSAGE15
-rw-r--r--security/smtpd/Makefile47
-rw-r--r--security/smtpd/PLIST8
-rw-r--r--security/smtpd/distinfo12
-rw-r--r--security/smtpd/files/smtpfwdd.sh30
-rw-r--r--security/smtpd/hacks.mk9
-rw-r--r--security/smtpd/patches/patch-aa95
-rw-r--r--security/smtpd/patches/patch-ab39
10 files changed, 1 insertions, 260 deletions
diff --git a/security/Makefile b/security/Makefile
index 30771fe15a7..cd61f7ee07c 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.814 2021/04/13 15:19:55 nia Exp $
+# $NetBSD: Makefile,v 1.815 2021/04/21 09:15:08 wiz Exp $
#
COMMENT= Security and cryptography tools and libraries
@@ -597,7 +597,6 @@ SUBDIR+= skey
SUBDIR+= sks
SUBDIR+= sleuthkit
SUBDIR+= smaSHeM
-SUBDIR+= smtpd
SUBDIR+= snallygaster
SUBDIR+= sniff
SUBDIR+= snoopy
diff --git a/security/smtpd/DESCR b/security/smtpd/DESCR
deleted file mode 100644
index e0bddd77fb2..00000000000
--- a/security/smtpd/DESCR
+++ /dev/null
@@ -1,3 +0,0 @@
-The smtpd daemon talks the Simple Mail Transfer Protocol (SMTP) with
-other SMTP daemons to receive mail from them, and saves it into a
-spool directory for later processing.
diff --git a/security/smtpd/MESSAGE b/security/smtpd/MESSAGE
deleted file mode 100644
index e5c33ac2d4a..00000000000
--- a/security/smtpd/MESSAGE
+++ /dev/null
@@ -1,15 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.3 2005/10/29 19:49:40 joerg Exp $
-
-The necessary spool and configuration directories were created
-under /var/spool/smtpd. Please edit /var/spool/smtpd/etc/smtp_check_rules
-according to your taste.
-
-You will want to start smtpfwdd with the provided rc script,
-and add a line like
-
-smtp stream tcp nowait root ${PREFIX}/sbin/smtpd smtpd
-
-to your /etc/inetd.conf when you are done.
-
-===========================================================================
diff --git a/security/smtpd/Makefile b/security/smtpd/Makefile
deleted file mode 100644
index 2fe51410125..00000000000
--- a/security/smtpd/Makefile
+++ /dev/null
@@ -1,47 +0,0 @@
-# $NetBSD: Makefile,v 1.26 2019/11/04 21:13:02 rillig Exp $
-#
-
-DISTNAME= smtpd-2.0
-PKGREVISION= 3
-CATEGORIES= mail security
-MASTER_SITES= # http://www.netsw.org/net/ip/firewall/proxy/smtpd/
-
-PATCHFILES= patch-smtpd-2.0-RBL.gz
-PATCH_SITES= ftp://ftp.42.org/pub/OLD/p/
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-# "Obtuse smtpd hasn't been developed further since 1997."
-# google for osmtpd
-#HOMEPAGE= http://www.obtuse.com/smtpd.html
-COMMENT= Store and forward SMTP proxy
-
-SPOOL= /var/spool/smtpd
-
-RCD_SCRIPTS= smtpfwdd
-FILES_SUBST+= SPOOL=${SPOOL:Q}
-
-# taken directly from the Makefile.
-CFLAGS.NetBSD+= -DUSE_FLOCK -DUSE_MKSTEMP
-CFLAGS.DragonFly+= -DUSE_FLOCK -DUSE_MKSTEMP
-CFLAGS.SunOS+= -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_STRINGS_H -DBROKEN_SUN_INCLUDES
-CFLAGS.IRIX+= -DGETOPT_EOF -DUSE_FLOCK -DNEEDS_FCNTL_H -DNEEDS_BSTRING_H -DIRIX_BROKEN_INCLUDES
-CFLAGS.AIX+= -DGETOPT_EOF -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_LOCKF_H -DNEEDS_STRINGS_H -DNEEDS_SELECT_H
-OPSYSVARS+= LD_LIBS
-LD_LIBS.SunOS+= -lnsl -lsocket -lresolv
-MAKE_ENV+= LD_LIBS=${LD_LIBS:Q}
-
-INSTALLATION_DIRS= sbin share/doc/smtpd share/examples/smtpd
-OWN_DIRS= ${SPOOL}/etc
-
-do-install:
- ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/smtpd ${DESTDIR}${PREFIX}/sbin/smtpd
- ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/smtpfwdd ${DESTDIR}${PREFIX}/sbin/smtpfwdd
- ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/INSTALL \
- ${DESTDIR}${PREFIX}/share/doc/smtpd
-.for f in antirelay_check_rules_example antispam_check_rules.example \
- smtpd_check_rules.example
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/examples/smtpd
-.endfor
-
-.include "../../devel/sysexits/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/security/smtpd/PLIST b/security/smtpd/PLIST
deleted file mode 100644
index 553137273c6..00000000000
--- a/security/smtpd/PLIST
+++ /dev/null
@@ -1,8 +0,0 @@
-@comment $NetBSD: PLIST,v 1.4 2014/03/11 14:05:14 jperkin Exp $
-sbin/smtpd
-sbin/smtpfwdd
-share/doc/smtpd/INSTALL
-share/doc/smtpd/README
-share/examples/smtpd/antirelay_check_rules_example
-share/examples/smtpd/antispam_check_rules.example
-share/examples/smtpd/smtpd_check_rules.example
diff --git a/security/smtpd/distinfo b/security/smtpd/distinfo
deleted file mode 100644
index f1b286123a8..00000000000
--- a/security/smtpd/distinfo
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: distinfo,v 1.6 2015/11/04 01:18:09 agc Exp $
-
-SHA1 (smtpd-2.0.tar.gz) = 7c619e01a1e7b1baa23435159ba67894d5550188
-RMD160 (smtpd-2.0.tar.gz) = 8c8c27612bef6bcd44de6af8ed6a97f47d97fa81
-SHA512 (smtpd-2.0.tar.gz) = 29422ecfea033c601a98ed9c29d9f6ecd310afae5680886b4c438d3cb5cabe46919ac8d4eb292f8ec6c05b4838fef221e242bcb29ffeb8934455be27d7c7b066
-Size (smtpd-2.0.tar.gz) = 62605 bytes
-SHA1 (patch-smtpd-2.0-RBL.gz) = 180bfcca83cb5e0523cf5d983083ed83bacdde7f
-RMD160 (patch-smtpd-2.0-RBL.gz) = 76b55c0f85643f62e9a802fdadd3e29ea0e4f3d7
-SHA512 (patch-smtpd-2.0-RBL.gz) = f97b3f52557a582226db68d18f48b03ae950287e2504bc40678281987619304e9643a3d8d8c3d140d6f480da7e2846d696feafa3080bae4d32419efa0005d5f9
-Size (patch-smtpd-2.0-RBL.gz) = 3829 bytes
-SHA1 (patch-aa) = 937e7d97d9060b848328b6cc084378f9cb334a00
-SHA1 (patch-ab) = 717ffbe58c771967ef2ce6a1ea56003535929ccf
diff --git a/security/smtpd/files/smtpfwdd.sh b/security/smtpd/files/smtpfwdd.sh
deleted file mode 100644
index 625d0e043ce..00000000000
--- a/security/smtpd/files/smtpfwdd.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: smtpfwdd.sh,v 1.1 2005/10/29 19:49:40 joerg Exp $
-#
-# PROVIDE: smtpfwdd
-# REQUIRE: DAEMON
-
-. /etc/rc.subr
-
-name=smtpfwdd
-rcvar=$name
-start_precmd=smtpd_precmd
-command="@PREFIX@/sbin/smtpfwdd"
-
-SPOOL="@SPOOL@"
-
-smtpd_precmd()
-{
- (umask 077 && mkdir -p ${SPOOL}/etc)
-
- for f in TIMEZONE localtime resolv.conf; do
- if [ -f /etc/$f ]; then
- cmp -s /etc/$f ${SPOOL}/etc/$f ||
- cp -p /etc/$f ${SPOOL}/etc/$f
- fi
- done
-}
-
-load_rc_config $name
-run_rc_command "$1"
diff --git a/security/smtpd/hacks.mk b/security/smtpd/hacks.mk
deleted file mode 100644
index 5db033af4aa..00000000000
--- a/security/smtpd/hacks.mk
+++ /dev/null
@@ -1,9 +0,0 @@
-# $NetBSD: hacks.mk,v 1.1 2006/01/02 19:49:01 schmonz Exp $
-
-.include "../../mk/bsd.prefs.mk"
-
-# Fix build on OS X with BIND9 system resolver
-.if ${OPSYS} == "Darwin"
-PKG_HACKS+= macosx-bind9-bind8compat
-CFLAGS+= -DBIND_8_COMPAT=1
-.endif
diff --git a/security/smtpd/patches/patch-aa b/security/smtpd/patches/patch-aa
deleted file mode 100644
index d11ecb4409c..00000000000
--- a/security/smtpd/patches/patch-aa
+++ /dev/null
@@ -1,95 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2004/02/08 14:27:35 grant Exp $
-
---- Makefile.orig 1997-10-13 11:40:34.000000000 +1000
-+++ Makefile
-@@ -1,7 +1,7 @@
- ##########################################################
- ## Where do I get installed? #############################
- ##########################################################
--INSTALL_PREFIX = /usr/local/
-+INSTALL_PREFIX = ${PREFIX}/
- INSTALL_BIN = sbin/
- INSTALL_MAN = man/
-
-@@ -20,7 +20,7 @@ MAIL_AGENT = /usr/sbin/sendmail
- # sendmail or whatever you are using as MAIL_AGENT above so that the user
- # may use the "-f" flag to specify the sender of a mail message.
- SMTP_USER = uucp
--SMTP_GROUP = uucp
-+SMTP_GROUP = mail
-
- # smtpd and smtpfwdd generate lots of syslogs, by design.
- #
-@@ -41,7 +41,7 @@ LOG_FACILITY = LOG_MAIL
- # in SMTP_USER above.
- #
- # The chroot directory
--SPOOLDIR = /usr/spool/smtpd
-+SPOOLDIR = /var/spool/smtpd
- # Where to store messages, relative to SPOOLDIR above.
- SPOOLSUBDIR = .
- #Use below instead of above if you don't want smtpd to chroot. This
-@@ -53,7 +53,7 @@ SPOOLSUBDIR = .
-
- # How frequently (in seconds) should smtpfwdd wake up to check the
- # spool directory for new mail?
--POLL_TIME = 10
-+POLL_TIME = 30
-
- # What is the maximum number of children smtpfwdd should spawn at one time
- # when delivering messages before waiting for some to complete? This ensures
-@@ -206,8 +206,8 @@ CHECK_ADDRESS = 1
- # build with CHECK_ADDRESS set to 1. You will get an error about
- # juniper_firewall.h not existing if you forget this.
- #
--JUNIPER_SUPPORT=1
--#JUNIPER_SUPPORT=0
-+#JUNIPER_SUPPORT=1
-+JUNIPER_SUPPORT=0
-
- # Use regexp's in patterns? If you have a POSIX <regex.h> and friends,
- # and you trust the regex lib enough for use, you can set USE_REGEX to
-@@ -245,7 +245,7 @@ USE_REGEX=1
- #
- #NS_MATCH=0
- NS_MATCH=1
--LD_LIBS=-lresolv # you may or may not need this.
-+#LD_LIBS=-lresolv # you may or may not need this.
-
- # The rules file for address checking, if enabled, remember this file
- # will be in the chroot jail, so the line below probably means
-@@ -318,14 +318,14 @@ OPTIONS = -DMAIL_AGENT=\"$(MAIL_AGENT)\"
-
- ## CC of choice.
- #CC = cc
--CC = gcc
-+#CC = gcc
-
- ####################################################
- ###### Uncomment your Operating System below #######
- ####################################################
-
- # The Source is with you (*BSD 4.4, Linux)
--CFLAGS = -g -O -Wall -DUSE_FLOCK -DUSE_MKSTEMP $(OPTIONS)
-+#CFLAGS = -g -O -Wall -DUSE_FLOCK -DUSE_MKSTEMP $(OPTIONS)
-
-
- #SunOS 5.X
-@@ -343,14 +343,15 @@ CFLAGS = -g -O -Wall -DUSE_FLOCK -DUSE_M
- #AIX
- #CFLAGS = -g -O -Wall -DGETOPT_EOF -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_LOCKF_H -DNEEDS_STRINGS_H -DNEEDS_SELECT_H $(OPTIONS)
-
-+CFLAGS+=$(OPTIONS)
-
- all: smtpd smtpfwdd
-
- smtpd: smtpd.o address_check.o
-- $(CC) -o smtpd smtpd.o address_check.o $(LD_LIBS)
-+ $(CC) $(CFLAGS) -o smtpd smtpd.o address_check.o $(LD_LIBS)
-
- smtpfwdd: smtpfwdd.o
-- $(CC) -o smtpfwdd smtpfwdd.o $(LD_LIBS)
-+ $(CC) $(CFLAGS) -o smtpfwdd smtpfwdd.o $(LD_LIBS)
-
- smtpd.o: smtpd.c smtpd.h smtp.h
-
diff --git a/security/smtpd/patches/patch-ab b/security/smtpd/patches/patch-ab
deleted file mode 100644
index cd267911d1b..00000000000
--- a/security/smtpd/patches/patch-ab
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2002/11/30 14:56:53 mjl Exp $
-
---- smtpfwdd.c.orig Sat Nov 30 15:41:10 2002
-+++ smtpfwdd.c Sat Nov 30 15:49:33 2002
-@@ -636,6 +636,18 @@
- exit(EX_OSERR);
- }
-
-+ /* Reopen stderr and stdout to /dev/null to quelch whining */
-+
-+ if(open("/dev/null", O_WRONLY | O_APPEND) != 1) {
-+ syslog(LOG_ERR, "Couldn't open /dev/null as stdout (%m)");
-+ exit(EX_OSERR);
-+ }
-+
-+ if(dup(1) != 2) {
-+ syslog(LOG_ERR, "Couldn't dup /dev/null as stderr (%m)");
-+ exit(EX_OSERR);
-+ }
-+
- fclose(f);
- closelog();
- if (lseek(0, body, SEEK_SET) < 0) {
-@@ -760,7 +772,7 @@
- * The brains of this operation
- */
-
--void
-+int
- main(int argc, char **argv)
- {
- int opt;
-@@ -1129,4 +1141,6 @@
- sleep(poll_time);
- }
- }
-+
-+return 0;
- }