Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

5
mail/mailfront/DESCR Normal file
View File

@@ -0,0 +1,5 @@
This is mailfront, a package containing customizeable network
front-ends for mail servers. It contains complete SMTP, QMQP,
QMTP, and POP3 front-ends as well as an authentication module for
IMAP. The mail delivery front-ends also contain internal address
filtering features.

51
mail/mailfront/Makefile Normal file
View File

@@ -0,0 +1,51 @@
# $NetBSD: Makefile,v 1.12 2012/10/08 12:19:15 asau Exp $
#
DISTNAME= mailfront-1.12
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}archive/
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/mailfront/
COMMENT= Mail server network protocol front-ends
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
DEPENDS_QMAIL= qmail>=1.03nb8:../../mail/qmail
DEPENDS+= ${DEPENDS_QMAIL}
DJB_RESTRICTED= NO
DJB_MAKE_TARGETS= NO
DJB_CONFIG_CMDS+= ${ECHO} ${PREFIX}/include > conf-include; \
${ECHO} ${PREFIX}/lib/${PKGBASE} > conf-modules;\
${ECHO} ${PREFIX}/lib > conf-cvmlibs
RCD_SCRIPTS= smtpfront
INSTALLATION_DIRS= share/doc/mailfront
INSTALL_ENV+= install_prefix=${DESTDIR:Q}
.include "../../mk/bsd.prefs.mk"
post-install:
cd ${WRKSRC}; \
for f in ANNOUNCEMENT NEWS README *.html; do \
${INSTALL_DATA} $${f} \
${DESTDIR}${PREFIX}/share/doc/mailfront; \
done
# Detect the PKG_SYSCONFDIR of the installed qmail, so we can create
# config files there and refer to them from rc.d scripts.
#
.if !defined(PKG_SYSCONFDIR.mailfront)
PKG_SYSCONFDIR.mailfront!= \
${PKG_INFO} -Q PKG_SYSCONFDIR \
${DEPENDS_QMAIL:C/:.*$//:Q} 2>/dev/null || \
${ECHO} "PKG_SYSCONFDIR.mailfront_not_set"
. if empty(PKG_SYSCONFDIR.mailfront:M*not_set)
MAKEVARS+= PKG_SYSCONFDIR.mailfront
. endif
.endif
.include "../../devel/bglibs/buildlink3.mk"
.include "../../security/cvm/buildlink3.mk"
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"

63
mail/mailfront/PLIST Normal file
View File

@@ -0,0 +1,63 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:04:36 joerg Exp $
bin/imapfront-auth
bin/mailfront
bin/pop3front-auth
bin/pop3front-maildir
bin/qmqpfront-echo
bin/qmqpfront-qmail
bin/qmtpfront-echo
bin/qmtpfront-qmail
bin/smtpfront-echo
bin/smtpfront-qmail
include/mailfront/constants.h
include/mailfront/mailfront.h
include/mailfront/responses.h
lib/mailfront/backend-echo.so
lib/mailfront/backend-qmail.so
lib/mailfront/plugin-add-received.so
lib/mailfront/plugin-check-fqdn.so
lib/mailfront/plugin-clamav.so
lib/mailfront/plugin-counters.so
lib/mailfront/plugin-cvm-validate.so
lib/mailfront/plugin-mailrules.so
lib/mailfront/plugin-patterns.so
lib/mailfront/plugin-qmail-validate.so
lib/mailfront/plugin-reject.so
lib/mailfront/plugin-relayclient.so
lib/mailfront/plugin-require-auth.so
lib/mailfront/protocol-qmqp.so
lib/mailfront/protocol-qmtp.so
lib/mailfront/protocol-smtp.so
share/doc/mailfront/ANNOUNCEMENT
share/doc/mailfront/NEWS
share/doc/mailfront/README
share/doc/mailfront/backend-echo.html
share/doc/mailfront/backend-qmail.html
share/doc/mailfront/imapfront.html
share/doc/mailfront/mailfront.html
share/doc/mailfront/mailrules.html
share/doc/mailfront/mailrulesx.html
share/doc/mailfront/msa.html
share/doc/mailfront/plugin-accept-recipient.html
share/doc/mailfront/plugin-accept-sender.html
share/doc/mailfront/plugin-accept.html
share/doc/mailfront/plugin-add-received.html
share/doc/mailfront/plugin-api.html
share/doc/mailfront/plugin-check-fqdn.html
share/doc/mailfront/plugin-clamav.html
share/doc/mailfront/plugin-counters.html
share/doc/mailfront/plugin-cvm-validate.html
share/doc/mailfront/plugin-force-file.html
share/doc/mailfront/plugin-mailrules.html
share/doc/mailfront/plugin-patterns.html
share/doc/mailfront/plugin-qmail-validate.html
share/doc/mailfront/plugin-reject.html
share/doc/mailfront/plugin-relayclient.html
share/doc/mailfront/plugin-require-auth.html
share/doc/mailfront/plugin-template.html
share/doc/mailfront/pop3front.html
share/doc/mailfront/protocol-qmqp.html
share/doc/mailfront/protocol-qmtp.html
share/doc/mailfront/protocol-smtp.html
share/doc/mailfront/std-handle.html
share/examples/rc.d/smtpfront

6
mail/mailfront/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.6 2009/04/08 01:44:04 schmonz Exp $
SHA1 (mailfront-1.12.tar.gz) = 498cfd1af47dfba45671e731c4f0666fc1c930f9
RMD160 (mailfront-1.12.tar.gz) = 17f06377d6de8f11d12c1585d55c9e7f8aa97bbc
Size (mailfront-1.12.tar.gz) = 104598 bytes
SHA1 (patch-aa) = 3d24a89e07f1d6eae5d80c922b93a35750b3359a

View File

@@ -0,0 +1,65 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smtpfront.sh,v 1.1.1.1 2005/07/20 03:30:19 schmonz Exp $
#
# PROVIDE: smtpfront
# REQUIRE: qmailsend cvm
name="smtpfront"
# User-settable rc.conf variables and their default values:
: ${smtpfront_postenv:="CVM_LOOKUP_SECRET='' CVM_LOOKUP='cvm-local:@VARBASE@/run/cvm-qmail'"}
: ${smtpfront_tcpflags:="-vRl0"}
: ${smtpfront_tcphost:="0"}
: ${smtpfront_tcpport:="25"}
: ${smtpfront_datalimit:="2000000"}
: ${smtpfront_pretcpserver:=""}
: ${smtpfront_presmtpd:=""}
: ${smtpfront_postsmtpd:=""}
: ${smtpfront_log:="YES"}
: ${smtpfront_logcmd:="logger -t nb${name} -p mail.info"}
: ${smtpfront_nologcmd:="@LOCALBASE@/bin/multilog -*"}
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
rcvar=${name}
required_files="@PKG_SYSCONFDIR@/control/concurrencyincoming"
required_files="${required_files} @PKG_SYSCONFDIR@/tcp.smtp.cdb"
required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
command="@LOCALBASE@/bin/tcpserver"
procname=${name}
start_precmd="smtpfront_precmd"
extra_commands="cdb"
cdb_cmd="smtpfront_cdb"
smtpfront_precmd()
{
# tcpserver(1) is akin to inetd(8), but runs one service per process.
# We want to signal only the tcpserver process responsible for SMTP
# service. Use argv0(1) to set procname to "smtpfront".
if [ -f /etc/rc.subr ]; then
checkyesno smtpfront_log || smtpfront_logcmd=${smtpfront_nologcmd}
fi
command="@SETENV@ - ${smtpfront_postenv} @LOCALBASE@/bin/softlimit -m ${smtpfront_datalimit} ${smtpfront_pretcpserver} @LOCALBASE@/bin/argv0 @LOCALBASE@/bin/tcpserver ${name} ${smtpfront_tcpflags} -x @PKG_SYSCONFDIR@/tcp.smtp.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyincoming` -u `@ID@ -u qmaild ` -g `@ID@ -g qmaild` ${smtpfront_tcphost} ${smtpfront_tcpport} ${smtpfront_presmtpd} @LOCALBASE@/bin/smtpfront-qmail ${smtpfront_postsmtpd} 2>&1 | @LOCALBASE@/bin/setuidgid qmaill ${smtpfront_logcmd}"
command_args="&"
rc_flags=""
}
smtpfront_cdb()
{
@ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.smtp."
@LOCALBASE@/bin/tcprules @PKG_SYSCONFDIR@/tcp.smtp.cdb @PKG_SYSCONFDIR@/tcp.smtp.tmp < @PKG_SYSCONFDIR@/tcp.smtp
@CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.smtp.cdb
}
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO_N@ " ${name}"
smtpfront_precmd
eval ${command} ${smtpfront_flags} ${command_args}
fi

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.2 2009/04/08 01:44:04 schmonz Exp $
--- Makefile.orig 2009-02-16 17:35:19.000000000 -0500
+++ Makefile
@@ -98,10 +98,11 @@ makelib:
makeso: conf-ccso conf-ld conf-bgincs conf-bglibs
( bgincs=`head -n 1 conf-bgincs`; \
bglibs=`head -n 1 conf-bglibs`; \
+ cvmlibs=`head -n 1 conf-cvmlibs`; \
echo '#!/bin/sh'; \
echo 'source=$$1; shift'; \
echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
- echo exec `head -n 1 conf-ccso` -DSHARED -I. "-I'$${bgincs}'" -L. "-L'$${bglibs}'" '-o $${base}.so $$source $${1+"$$@"}'; \
+ echo exec `head -n 1 conf-ccso` -DSHARED -I. "-I'$${bgincs}'" -L. "-L'$${bglibs}'" "-Wl,-R'$${bglibs}'" "-L'$${cvmlibs}'" "-Wl,-R'$${cvmlibs}'" '-o $${base}.so $$source $${1+"$$@"}'; \
) >makeso
chmod 755 makeso