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

18
mail/dbmail/DESCR Normal file
View File

@@ -0,0 +1,18 @@
Dbmail is the name of a group of programs that enable the possibility
of storing and retrieving mail messages from a database. Currently
MySQL, PostgreSQL and SQLite can be used as database backends.
DBMail is made up of several components. A normal MTA (Postfix,
SendMail, QMail, Exim) is used for accepting messages. The MTA
hands the messages over to dbmail-smtp, using a pipe interface, or
dbmail-lmtpd, using LMTP (Local Mail Transport Protocol). These
programs take care of delivering the message into the database.
Messages can be retrieved from the database using dbmail-pop3d,
using the POP3 protocol, and dbmail-imapd, using the IMAP4Rev1
protocol.
The whole email is stored in the database. That includes attachments.
The DBMail programs do not have to touch the filesystem to retrieve
or insert emails. User information is also stored in the database,
so users do not need an account on the machines DBMail is running
on.

12
mail/dbmail/MESSAGE Normal file
View File

@@ -0,0 +1,12 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2007/11/03 11:39:49 obache Exp $
Anyone upgrading from an earlier version of the dbmail should read:
${DOCSDIR}/UPGRADING
Here are migration scripts:
${DATADIR}/sql
===========================================================================

63
mail/dbmail/Makefile Normal file
View File

@@ -0,0 +1,63 @@
# $NetBSD: Makefile,v 1.39 2013/05/09 07:40:03 adam Exp $
DISTNAME= dbmail-2.2.17
PKGREVISION= 13
CATEGORIES= mail
MASTER_SITES= http://www.dbmail.org/download/2.2/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dbmail.org/
COMMENT= Store and retrieve mail messages in a database
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake pkg-config
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log
CONFIGURE_ARGS+= --with-pkglibdir=${PREFIX}/lib/dbmail
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/run
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/dbmail
CONF_FILES_PERMS+= ${EGDIR}/dbmail.conf ${PKG_SYSCONFDIR}/dbmail.conf \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0640
RCD_SCRIPTS= dbmail dbmailimapd dbmaillmtpd dbmailpop3d
DATADIR= ${PREFIX}/share/dbmail
DOCSDIR= ${PREFIX}/share/doc/dbmail
DOCS= AUTHORS BUGS COPYING INSTALL NEWS README
DOCS+= README.aliases README.exim README.ldap
DOCS+= README.postfix README.qmail README.sieve
DOCS+= README.smtp README.solaris README.usermap
DOCS+= THANKS UPGRADING
MESSAGE_SUBST+= DOCSDIR=${DOCSDIR}
MESSAGE_SUBST+= DATADIR=${DATADIR}
SUBST_CLASSES+= sysconf
SUBST_STAGE.sysconf= do-configure
SUBST_FILES.sysconf= man/dbmail-imapd.8 man/dbmail-lmtpd.8 man/dbmail-pop3d.8
SUBST_FILES.sysconf+= man/dbmail-smtp.1 man/dbmail-users.8 man/dbmail-util.8
SUBST_FILES.sysconf+= man/dbmail.1 man/dbmail.conf.5 man/dbmail-export.8
SUBST_FILES.sysconf+= man/dbmail-sievecmd.8 mail/dbmail-timsieved.8
SUBST_SED.sysconf= -e 's|/etc/dbmail\.conf|${PKG_SYSCONFDIR}/dbmail.conf|g'
SUBST_MESSAGE.sysconf= Fixing sysconf paths.
INSTALLATION_DIRS= lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin ${DOCSDIR} ${EGDIR} ${DATADIR}/sql
post-install:
${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${DESTDIR}${EGDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCSDIR}
.endfor
.include "options.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.8.0
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gmime+= gmime>=2.2.10
.include "../../mail/gmime/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

62
mail/dbmail/PLIST Normal file
View File

@@ -0,0 +1,62 @@
@comment $NetBSD: PLIST,v 1.9 2009/06/14 18:04:31 joerg Exp $
${PLIST.mysql}lib/dbmail/libmysql.la
${PLIST.pgsql}lib/dbmail/libpgsql.la
${PLIST.sqlite}lib/dbmail/libsqlite.la
${PLIST.ldap}lib/dbmail/libauth_ldap.la
lib/dbmail/libauth_sql.la
lib/dbmail/libdbmail.la
${PLIST.sieve}lib/dbmail/libsort_sieve.la
man/man1/dbmail-smtp.1
man/man1/dbmail.1
man/man5/dbmail.conf.5
man/man8/dbmail-export.8
man/man8/dbmail-imapd.8
man/man8/dbmail-lmtpd.8
man/man8/dbmail-pop3d.8
man/man8/dbmail-sievecmd.8
man/man8/dbmail-timsieved.8
man/man8/dbmail-users.8
man/man8/dbmail-util.8
sbin/dbmail-export
sbin/dbmail-imapd
sbin/dbmail-lmtpd
sbin/dbmail-pop3d
${PLIST.sieve}sbin/dbmail-sievecmd
sbin/dbmail-smtp
${PLIST.sieve}sbin/dbmail-timsieved
sbin/dbmail-users
sbin/dbmail-util
share/doc/dbmail/AUTHORS
share/doc/dbmail/BUGS
share/doc/dbmail/COPYING
share/doc/dbmail/INSTALL
share/doc/dbmail/NEWS
share/doc/dbmail/README
share/doc/dbmail/README.aliases
share/doc/dbmail/README.exim
share/doc/dbmail/README.ldap
share/doc/dbmail/README.postfix
share/doc/dbmail/README.qmail
share/doc/dbmail/README.sieve
share/doc/dbmail/README.smtp
share/doc/dbmail/README.solaris
share/doc/dbmail/README.usermap
share/doc/dbmail/THANKS
share/doc/dbmail/UPGRADING
share/examples/dbmail/dbmail.conf
${PLIST.mysql}share/dbmail/sql/mysql/2_1_7-2_2_0.mysql
${PLIST.mysql}share/dbmail/sql/mysql/create_tables.mysql
${PLIST.mysql}share/dbmail/sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql
${PLIST.mysql}share/dbmail/sql/mysql/migrate_from_2.0_to_2.2.mysql
${PLIST.mysql}share/dbmail/sql/mysql/update_headervalue_01.mysql
${PLIST.pgsql}share/dbmail/sql/postgresql/2_1_7-2_2_0.pgsql
${PLIST.pgsql}share/dbmail/sql/postgresql/create_tables.pgsql
${PLIST.pgsql}share/dbmail/sql/postgresql/migrate_from_1.x_to_2.0.pgsql
${PLIST.pgsql}share/dbmail/sql/postgresql/migrate_from_2.0_to_2.2.pgsql
${PLIST.sqlite}share/dbmail/sql/sqlite/2_1_7-2_2_0.sqlite
${PLIST.sqlite}share/dbmail/sql/sqlite/create_tables.sqlite
share/examples/rc.d/dbmail
share/examples/rc.d/dbmailimapd
share/examples/rc.d/dbmaillmtpd
share/examples/rc.d/dbmailpop3d
${PLIST.sieve}share/examples/rc.d/dbmailtimsieved

6
mail/dbmail/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.14 2010/09/09 12:42:27 adam Exp $
SHA1 (dbmail-2.2.17.tar.gz) = be9b2bd2d2bd375a162a214cf51fbf8d4b0cf096
RMD160 (dbmail-2.2.17.tar.gz) = 3014e82fc960a6e3896f9cecc4233b99ac2640f6
Size (dbmail-2.2.17.tar.gz) = 896838 bytes
SHA1 (patch-aa) = 082714ef215972e02348a344f57f422d21f5ff11

View File

@@ -0,0 +1,60 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbmail.sh,v 1.2 2007/11/03 11:39:50 obache Exp $
#
# KEYWORD: nostart
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
rcd_dir=`@DIRNAME@ $0`
# NOTE: run_rc_command sets $rc_arg
#
forward_commands()
{
# Backward compat with NetBSD <1.6:
[ -z "$rc_arg" ] && rc_arg=$_arg
for file in $COMMAND_LIST; do
$rcd_dir/$file $rc_arg
done
}
reverse_commands()
{
# Backward compat with NetBSD <1.6:
[ -z "$rc_arg" ] && rc_arg=$_arg
REVCOMMAND_LIST=
for file in $COMMAND_LIST; do
REVCOMMAND_LIST="$file $REVCOMMAND_LIST"
done
for file in $REVCOMMAND_LIST; do
$rcd_dir/$file $rc_arg
done
}
dbmailrcd()
{
for service in $@; do
$rcd_dir/dbmail${service} $rc_arg
done
}
COMMAND_LIST="dbmailimapd dbmailpop3d dbmaillmtpd @TIMSIEVED@"
name="dbmail"
start_cmd="forward_commands"
stop_cmd="reverse_commands"
status_cmd="forward_commands"
extra_commands="status"
if [ -f /etc/rc.subr ]; then
run_rc_command "$1"
else
_arg="$1"
${start_cmd}
fi

View File

@@ -0,0 +1,18 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbmailimapd.sh,v 1.2 2007/11/03 11:39:50 obache Exp $
#
# PROVIDE: dbmailimap mail
# REQUIRE:
. /etc/rc.subr
name="dbmailimapd"
rcvar=${name}
required_files="@PKG_SYSCONFDIR@/dbmail.conf"
command="@PREFIX@/sbin/dbmail-imapd"
pidfile="@VARBASE@/run/dbmail-imapd.pid"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,18 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbmaillmtpd.sh,v 1.2 2007/11/03 11:39:50 obache Exp $
#
# PROVIDE: dbmaillmtp mail
# REQUIRE:
. /etc/rc.subr
name="dbmaillmtpd"
rcvar=${name}
required_files="@PKG_SYSCONFDIR@/dbmail.conf"
command="@PREFIX@/sbin/dbmail-lmtpd"
pidfile="@VARBASE@/run/dbmail-lmtpd.pid"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,18 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbmailpop3d.sh,v 1.2 2007/11/03 11:39:50 obache Exp $
#
# PROVIDE: dbmailpop3 mail
# REQUIRE:
. /etc/rc.subr
name="dbmailpop3d"
rcvar=${name}
required_files="@PKG_SYSCONFDIR@/dbmail.conf"
command="@PREFIX@/sbin/dbmail-pop3d"
pidfile="@VARBASE@/run/dbmail-pop3d.pid"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,18 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbmailtimsieved.sh,v 1.1 2007/11/03 11:39:50 obache Exp $
#
# PROVIDE: dbmailtimsieved mail
# REQUIRE:
. /etc/rc.subr
name="dbmailtimsieved"
rcvar=${name}
required_files="@PKG_SYSCONFDIR@/dbmail.conf"
command="@PREFIX@/sbin/dbmail-timsieved"
pidfile="@VARBASE@/run/dbmail-timsieved.pid"
load_rc_config $name
run_rc_command "$1"

80
mail/dbmail/options.mk Normal file
View File

@@ -0,0 +1,80 @@
# $NetBSD: options.mk,v 1.9 2010/01/23 04:45:20 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dbmail
PKG_SUPPORTED_OPTIONS= ldap sieve
PKG_OPTIONS_REQUIRED_GROUPS= sql
PKG_OPTIONS_GROUP.sql= mysql pgsql sqlite
PKG_SUGGESTED_OPTIONS= mysql sieve
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ldap mysql pgsql sieve sqlite
###
### MySQL database support
###
.if !empty(PKG_OPTIONS:Mmysql)
.include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql
PLIST.mysql= yes
INSTALLATION_DIRS+= ${DATADIR}/sql/mysql
.endif
###
### PostgreSQL database support
###
.if !empty(PKG_OPTIONS:Mpgsql)
.include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql
PLIST.pgsql= yes
INSTALLATION_DIRS+= ${DATADIR}/sql/postgresql
.endif
###
### SQLite database support
###
.if !empty(PKG_OPTIONS:Msqlite)
.include "../../databases/sqlite3/buildlink3.mk"
CONFIGURE_ARGS+= --with-sqlite
PLIST.sqlite= yes
INSTALLATION_DIRS+= ${DATADIR}/sql/sqlite
.endif
###
### Sieve support
###
.if !empty(PKG_OPTIONS:Msieve)
.include "../../mail/libsieve/buildlink3.mk"
CONFIGURE_ARGS+= --with-sieve=${BUILDLINK_PREFIX.libsieve}
PLIST.sieve= yes
FILES_SUBST+= TIMSIEVED="dbmailtimsieved"
RCD_SCRIPTS+= dbmailtimsieved
.else
FILES_SUBST+= TIMSIEVED=""
.endif
###
### LDAP support
###
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
PLIST.ldap= yes
.endif
###
### Migration scripts
###
post-install: dbmail-install-scripts
.PHONY: dbmail-install-scripts
dbmail-install-scripts:
.if !empty(PKG_OPTIONS:Mmysql)
${INSTALL_DATA} ${WRKSRC}/sql/mysql/* ${DESTDIR}${DATADIR}/sql/mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
${INSTALL_DATA} ${WRKSRC}/sql/postgresql/* ${DESTDIR}${DATADIR}/sql/postgresql
.endif
.if !empty(PKG_OPTIONS:Msqlite)
${INSTALL_DATA} ${WRKSRC}/sql/sqlite/* ${DESTDIR}${DATADIR}/sql/sqlite
.endif

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-aa,v 1.2 2010/01/23 04:50:22 obache Exp $
* getaddrinfo(3) is in XNS5.2, require _XOPEN_SOURCE>=520
* _NETBSD_SORCE is required for NI_MAXHOST/NI_MAXSERVE on NetBSD.
--- dbmail.h.in.orig 2010-01-22 12:57:30.000000000 +0000
+++ dbmail.h.in
@@ -33,7 +33,10 @@
#ifdef __FreeBSD__
#define _XOPEN_SOURCE
#else
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 520
+#endif
+#ifdef __NetBSD__
+#define _NETBSD_SOURCE
#endif
#define __EXTENSIONS__ /* solaris */