pkgsrc-WIP-changes archive

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

Remove smtp-gated



Module Name:	pkgsrc-wip
Committed By:	Bartosz Kuzma <bartosz.kuzma%gmail.com@localhost>
Pushed By:	bartosz.kuzma
Date:		Sun Feb 15 01:20:58 2026 +0100
Changeset:	767f91379e8cc62563b48b7362c57ad1273e92ee

Modified Files:
	Makefile
Removed Files:
	smtp-gated/DESCR
	smtp-gated/MESSAGE
	smtp-gated/Makefile
	smtp-gated/PLIST
	smtp-gated/distinfo
	smtp-gated/files/smtp-gated.conf
	smtp-gated/files/smtp_gated.sh
	smtp-gated/patches/patch-src_daemon.c

Log Message:
Remove smtp-gated

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=767f91379e8cc62563b48b7362c57ad1273e92ee

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                              |  1 -
 smtp-gated/DESCR                      |  4 --
 smtp-gated/MESSAGE                    |  9 ----
 smtp-gated/Makefile                   | 56 -------------------------
 smtp-gated/PLIST                      |  7 ----
 smtp-gated/distinfo                   |  5 ---
 smtp-gated/files/smtp-gated.conf      | 32 --------------
 smtp-gated/files/smtp_gated.sh        | 44 --------------------
 smtp-gated/patches/patch-src_daemon.c | 78 -----------------------------------
 9 files changed, 236 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index d72a773941..ddaafeab27 100644
--- a/Makefile
+++ b/Makefile
@@ -5471,7 +5471,6 @@ SUBDIR+=	smocker
 SUBDIR+=	smplayer
 SUBDIR+=	smproxy
 SUBDIR+=	smstools
-SUBDIR+=	smtp-gated
 SUBDIR+=	smtp.proxy
 SUBDIR+=	smtprc
 SUBDIR+=	smtprc-gui
diff --git a/smtp-gated/DESCR b/smtp-gated/DESCR
deleted file mode 100644
index 2c2de66af3..0000000000
--- a/smtp-gated/DESCR
+++ /dev/null
@@ -1,4 +0,0 @@
-smtp-gated is an UNIX program that scans SMTP mail for viruses. Can be
-installed on Linux/BSD NA(P)T router, and scan mail transparently
-using ClamAV daemon & netfilter/ipfilter/pf framework. Can also scan traffic
-to one fixed MTA.
diff --git a/smtp-gated/MESSAGE b/smtp-gated/MESSAGE
deleted file mode 100644
index 01cbc69f76..0000000000
--- a/smtp-gated/MESSAGE
+++ /dev/null
@@ -1,9 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2006/11/21 14:26:07 bartoszkuzma Exp $
-
-If you want to run smtp-gated with IP Filter as a non-root user,
-you need to set proper permission to file /dev/ipnat. For example:
-
-	chown root:${SMTP_GATED_GROUP} /dev/ipnat
-	chmod 0640 /dev/ipnat
-===========================================================================
diff --git a/smtp-gated/Makefile b/smtp-gated/Makefile
deleted file mode 100644
index 09f38c33eb..0000000000
--- a/smtp-gated/Makefile
+++ /dev/null
@@ -1,56 +0,0 @@
-# $NetBSD: Makefile,v 1.7 2012/10/07 16:23:15 asau Exp $
-#
-
-DISTNAME=		smtp-gated-1.4.18.8
-# PKGNAME=		${DISTNAME:S/-rc/rc/}
-CATEGORIES=		mail
-MASTER_SITES=		http://smtp-proxy.klolik.org/files/
-
-MAINTAINER=		bartosz.kuzma%gmail.com@localhost
-HOMEPAGE=		http://smtp-proxy.klolik.org/
-COMMENT=		Proxy for SMTP sessions with virus and spam scan
-LICENSE=		gnu-gpl-v2
-
-SMTP_GATED_GROUP?=	smtpgw
-SMTP_GATED_USER?=	smtpgw
-
-BUILD_DEFS+=		VARBASE
-
-BUILD_DEFS+=		SMTP_GATED_GROUP SMTP_GATED_USER
-FILES_SUBST+=		SMTP_GATED_GROUP=${SMTP_GATED_GROUP:Q}
-FILES_SUBST+=		SMTP_GATED_USER=${SMTP_GATED_USER:Q}
-
-PKG_GROUPS=		${SMTP_GATED_GROUP}
-PKG_USERS=		${SMTP_GATED_USER}:${SMTP_GATED_GROUP}
-
-FILES_SUBST+=		SMTP_GATED_GROUP=${SMTP_GATED_GROUP:Q}
-FILES_SUBST+=		SMTP_GATED_USER=${SMTP_GATED_USER:Q}
-MESSAGE_SUBST+=		SMTP_GATED_GROUP=${SMTP_GATED_GROUP:Q}
-
-SUBST_CLASSES+=		conf
-SUBST_FILES.conf=	${WRKDIR}/smtp-gated.conf
-SUBST_VARS.conf=	SMTP_GATED_GROUP
-SUBST_VARS.conf+=	SMTP_GATED_USER
-SUBST_VARS.conf+=	VARBASE
-SUBST_STAGE.conf=	post-patch
-
-DOCDIR=			${PREFIX}/share/doc/smtp-gated
-EGDIR=			${PREFIX}/share/examples/smtp-gated
-CONF_FILES=		${EGDIR}/smtp-gated.conf \
-			${PKG_SYSCONFDIR}/smtp-gated.conf
-RCD_SCRIPTS=		smtp_gated
-USE_TOOLS+=		gmake
-
-GNU_CONFIGURE=		yes
-
-post-extract:
-	${CP} ${FILESDIR}/smtp-gated.conf ${WRKDIR}
-
-post-install:
-	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.PL ${DESTDIR}${DOCDIR}
-	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
-	${INSTALL_DATA} ${WRKDIR}/smtp-gated.conf ${DESTDIR}${EGDIR}
-
-.include "../../mail/libspf2/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/smtp-gated/PLIST b/smtp-gated/PLIST
deleted file mode 100644
index 727ea47240..0000000000
--- a/smtp-gated/PLIST
+++ /dev/null
@@ -1,7 +0,0 @@
-@comment $NetBSD: PLIST,v 1.3 2009/09/28 22:04:53 bartoszkuzma Exp $
-man/man5/smtp-gated.conf.5
-man/man8/smtp-gated.8
-sbin/smtp-gated
-share/doc/smtp-gated/README.PL
-share/examples/rc.d/smtp_gated
-share/examples/smtp-gated/smtp-gated.conf
diff --git a/smtp-gated/distinfo b/smtp-gated/distinfo
deleted file mode 100644
index b67896104f..0000000000
--- a/smtp-gated/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-$NetBSD: distinfo,v 1.5 2012/02/10 14:13:36 bartoszkuzma Exp $
-
-RMD160 (smtp-gated-1.4.18.8.tar.gz) = 09163aab96c9daa35e44ced612d3234b6aeda53f
-Size (smtp-gated-1.4.18.8.tar.gz) = 311763 bytes
-SHA1 (patch-src_daemon.c) = 077c56ddcd4f6098ed46862a2d5cca6c9810f9b1
diff --git a/smtp-gated/files/smtp-gated.conf b/smtp-gated/files/smtp-gated.conf
deleted file mode 100644
index d507cb71dc..0000000000
--- a/smtp-gated/files/smtp-gated.conf
+++ /dev/null
@@ -1,32 +0,0 @@
-# Example configuration for smtp-proxy
-# using NAT framework (ipfilter/ipfw/netfilter/pf)
-
-proxy_name		smtp-proxy.isp
-port			9199
-bind_address		127.0.0.1
-
-set_user		@SMTP_GATED_USER@
-set_group		@SMTP_GATED_GROUP@
-
-spool_path		@VARBASE@/spool/smtp-gated/msg
-spool_perm		0660
-spool_leave_on		never
-
-mode			ipfilter
-
-lock_on			virus,spam,maxhost
-lock_duration		1800
-lock_path		@VARBASE@/spool/smtp-gated/lock
-
-antivirus_type		off
-antivirus_path		/tmp/clamd
-antispam_type		off
-antispam_path		/tmp/spamd
-
-log_level		info
-log_facility		mail
-log_helo		yes
-log_mail_from		accepted,rejected
-log_rcpt_to		accepted,rejected
-
-nat_header_type		ip-only
diff --git a/smtp-gated/files/smtp_gated.sh b/smtp-gated/files/smtp_gated.sh
deleted file mode 100644
index ec81e27aa9..0000000000
--- a/smtp-gated/files/smtp_gated.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: smtp_gated.sh,v 1.1.1.1 2006/11/21 14:26:07 bartoszkuzma Exp $
-#
-
-# PROVIDE: smtp_gated
-# BEFORE: mail
-# REQUIRE: DAEMON LOGIN
-
-. /etc/rc.subr
-
-name="smtp_gated"
-rcvar=$name
-pidfile="@VARBASE@/run/smtp-gated/smtp-gated.pid"
-command="@PREFIX@/sbin/smtp-gated"
-extra_commands="reload"
-config_file="@PKG_SYSCONFDIR@/smtp-gated.conf"
-required_files="${config_file}"
-
-smtp_gated_group="@SMTP_GATED_GROUP@"
-smtp_gated_user="@SMTP_GATED_USER@"
-smtp_gated_dirs="@VARBASE@/spool/smtp-gated @VARBASE@/spool/smtp-gated/lock @VARBASE@/spool/smtp-gated/msg @VARBASE@/run/smtp-gated"
-
-start_cmd="${command} ${config_file}"
-start_precmd="smtp_gated_prestart"
-status_cmd="${command} -s"
-reload_cmd="${command} -r ${config_file}"
-
-smtp_gated_prestart()
-{
-	for dir in ${smtp_gated_dirs}
-	do
-		@MKDIR@ -p ${dir}
-		@CHOWN@ -R ${smtp_gated_user}:${smtp_gated_group} ${dir}
-	done
-}
-
-if [ -f /etc/rc.subr -a -f /etc/rc.conf ]; then
-	load_rc_config $name
-	run_rc_command "$1"
-else
-	@ECHO@ -n " ${name}"
-	${command} ${config_file}
-fi
diff --git a/smtp-gated/patches/patch-src_daemon.c b/smtp-gated/patches/patch-src_daemon.c
deleted file mode 100644
index e64ecdcfbf..0000000000
--- a/smtp-gated/patches/patch-src_daemon.c
+++ /dev/null
@@ -1,78 +0,0 @@
-$NetBSD: patch-src_daemon.c,v 1.1 2012/02/10 14:13:36 bartoszkuzma Exp $
-
---- src/daemon.c.orig	2010-06-16 14:12:42.000000000 +0000
-+++ src/daemon.c
-@@ -265,7 +265,8 @@ void debug_privileges(char *msg)
- {
- 	uid_t r=-1, e=-1, s=-1;
- 
--	getresuid(&r, &e, &s);
-+	r = getuid();
-+	e = geteuid();
- 	log_action(LOG_DEBUG, "%s: real=%d, effective=%d, saved=%d", msg, r, e, s);
- }
- 
-@@ -273,7 +274,7 @@ void debug_privileges(char *msg)
- int drop_privileges()
- {
- 	int _err;
--	uid_t r, e, s;
-+	uid_t r, e, s = -1;
- 
- //	debug_privileges("drop_privileges().pre");
- 	if (daemon_uid == -1 && getuid() == 0) {
-@@ -287,14 +288,16 @@ int drop_privileges()
- 	/* become root temporarily just to gain permissions to change real&effective uid */
- 	if (seteuid(0) == -1) {
- 		_err = errno;
--		getresuid(&r, &e, &s);
-+		r = getuid();
-+		e = geteuid();
- 		log_action(LOG_CRIT, "%s.seteuid(%d; real=%d, effective=%d, saved=%d): %s", __FUNCTION__, 0, r, e, s, strerror(_err));
- 		return -1;
- 	}
- 
- 	if (setuid(daemon_uid) == -1) {
- 		_err = errno;
--		getresuid(&r, &e, &s);
-+		r = getuid();
-+		e = geteuid();
- 		log_action(LOG_CRIT, "%s.setuid(%d; real=%d, effective=%d, saved=%d): %s", __FUNCTION__, 0, r, e, s, strerror(_err));
- 		return -1;
- 	}
-@@ -306,14 +309,15 @@ int drop_privileges()
- int elevate_privileges()
- {
- 	int _err;
--	uid_t r, e, s;
-+	uid_t r, e, s = -1;
- 
- 	if (daemon_uid == -1)
- 		return 0;
- 
- 	if (seteuid(0) < 0) {
- 		_err = errno;
--		getresuid(&r, &e, &s);
-+		r = getuid();
-+		e = geteuid();
- 		log_action(LOG_CRIT, "%s.seteuid(%d; real=%d, effective=%d, saved=%d): %s", __FUNCTION__, 0, r, e, s, strerror(_err));
- 		return -1;
- 	}
-@@ -323,14 +327,15 @@ int elevate_privileges()
- int lower_privileges()
- {
- 	int _err;
--	uid_t r, e, s;
-+	uid_t r, e, s = -1;
- 
- 	if (daemon_uid == -1)
- 		return 0;
- 
- 	if (seteuid(daemon_uid) < 0) {
- 		_err = errno;
--		getresuid(&r, &e, &s);
-+		r = getuid();
-+		e = geteuid();
- 		log_action(LOG_CRIT, "%s.seteuid(%d; real=%d, effective=%d, saved=%d): %s", __FUNCTION__, daemon_uid, r, e, s, strerror(_err));
- 		return -1;
- 	}


Home | Main Index | Thread Index | Old Index