pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc smtpd: remove



details:   https://anonhg.NetBSD.org/pkgsrc/rev/12dc96332f72
branches:  trunk
changeset: 450749:12dc96332f72
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 21 09:15:08 2021 +0000

description:
smtpd: remove

Mail-related security software that hasn't been touched since 1997
should not be used.

diffstat:

 doc/CHANGES-2021                 |   3 +-
 security/Makefile                |   3 +-
 security/smtpd/DESCR             |   3 -
 security/smtpd/MESSAGE           |  15 ------
 security/smtpd/Makefile          |  47 -------------------
 security/smtpd/PLIST             |   8 ---
 security/smtpd/distinfo          |  12 -----
 security/smtpd/files/smtpfwdd.sh |  30 ------------
 security/smtpd/hacks.mk          |   9 ---
 security/smtpd/patches/patch-aa  |  95 ----------------------------------------
 security/smtpd/patches/patch-ab  |  39 ----------------
 11 files changed, 3 insertions(+), 261 deletions(-)

diffs (truncated from 325 to 300 lines):

diff -r 653486b3c955 -r 12dc96332f72 doc/CHANGES-2021
--- a/doc/CHANGES-2021  Wed Apr 21 09:12:23 2021 +0000
+++ b/doc/CHANGES-2021  Wed Apr 21 09:15:08 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2021,v 1.2285 2021/04/21 09:03:04 nia Exp $
+$NetBSD: CHANGES-2021,v 1.2286 2021/04/21 09:15:08 wiz Exp $
 
 Changes to the packages collection and infrastructure in 2021:
 
@@ -3608,3 +3608,4 @@
        Updated security/libgcrypt to 1.9.3 [adam 2021-04-21]
        Updated textproc/icu to 69.1 [adam 2021-04-21]
        Updated security/stunnel to 5.59 [nia 2021-04-21]
+       Removed security/smtpd [wiz 2021-04-21]
diff -r 653486b3c955 -r 12dc96332f72 security/Makefile
--- a/security/Makefile Wed Apr 21 09:12:23 2021 +0000
+++ b/security/Makefile Wed Apr 21 09:15:08 2021 +0000
@@ -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+=       sks
 SUBDIR+=       sleuthkit
 SUBDIR+=       smaSHeM
-SUBDIR+=       smtpd
 SUBDIR+=       snallygaster
 SUBDIR+=       sniff
 SUBDIR+=       snoopy
diff -r 653486b3c955 -r 12dc96332f72 security/smtpd/DESCR
--- a/security/smtpd/DESCR      Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/MESSAGE
--- a/security/smtpd/MESSAGE    Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/Makefile
--- a/security/smtpd/Makefile   Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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@localhost
-# "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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/PLIST
--- a/security/smtpd/PLIST      Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/distinfo
--- a/security/smtpd/distinfo   Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/files/smtpfwdd.sh
--- a/security/smtpd/files/smtpfwdd.sh  Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/hacks.mk
--- a/security/smtpd/hacks.mk   Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/patches/patch-aa
--- a/security/smtpd/patches/patch-aa   Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 653486b3c955 -r 12dc96332f72 security/smtpd/patches/patch-ab
--- a/security/smtpd/patches/patch-ab   Wed Apr 21 09:12:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);
-+      }



Home | Main Index | Thread Index | Old Index