diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-01-21 11:06:15 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-01-21 11:06:15 +0000 |
commit | 0a4edf9d1e9f0cee494e02844f01eb4552c79f09 (patch) | |
tree | a568b90225385e073a9a1abdd2510bd1686d7699 /mail | |
parent | 784cf429418a5d41f90a1541851fa5c86f51f402 (diff) | |
download | ports-0a4edf9d1e9f0cee494e02844f01eb4552c79f09.tar.gz ports-0a4edf9d1e9f0cee494e02844f01eb4552c79f09.zip |
This is a GPL managesieve server. It uses a plug-in architecture to
support different authentication, homedir lookup, and storage
back-ends. The server ships with the following plug-ins:
Authentication:
* Dovecot
* PAM
* SASL
* MySQL
Homedir lookup & session initiation:
* Dovecot
* /etc/passwd
* MySQL
* simple virtual hosting (eg. /var/lib/virtual/username)
Storage:
* Dovecot
WWW: http://woozle.org/~neale/src/pysieved/
PR: ports/119578
Submitted by: Denis Shaposhnikov <dsh at wizard.volgograd.ru>
Notes
Notes:
svn path=/head/; revision=205962
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/pysieved/Makefile | 59 | ||||
-rw-r--r-- | mail/pysieved/distinfo | 3 | ||||
-rw-r--r-- | mail/pysieved/files/pysieved.in | 27 | ||||
-rw-r--r-- | mail/pysieved/pkg-descr | 23 | ||||
-rw-r--r-- | mail/pysieved/pkg-plist | 33 |
6 files changed, 146 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index e4383be00984..1a5cae60447a 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -483,6 +483,7 @@ SUBDIR += py-twistedMail SUBDIR += pygmy SUBDIR += pymsgauth + SUBDIR += pysieved SUBDIR += pyzor SUBDIR += qar-bufo SUBDIR += qconfirm diff --git a/mail/pysieved/Makefile b/mail/pysieved/Makefile new file mode 100644 index 000000000000..403792747557 --- /dev/null +++ b/mail/pysieved/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: pysieved +# Date created: Thu Jan 10 18:51:17 MSK 2008 +# Whom: Denis Shaposhnikov <dsh@wizard.volgograd.ru> +# +# $FreeBSD$ +# + +PORTNAME= pysieved +PORTVERSION= 20070926 +CATEGORIES= mail python +MASTER_SITES= http://ports.internal.vlink.ru/distfiles/ + +MAINTAINER= dsh@wizard.volgograd.ru +COMMENT= Python Managesieve Server + +USE_BZIP2= yes +USE_PYTHON= 2.4+ +USE_RC_SUBR= ${PORTNAME} + +PORTEXAMPLES= pysieved.xinetd +SUB_LIST= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} + +.if !defined(NOPORTDOCS) +PORTDOCS= COPYING README README.Dovecot THANKS +.endif + +post-patch: + ${REINPLACE_CMD} \ + 's!/usr/bin/env python!${PYTHON_CMD}!' \ + ${WRKSRC}/pysieved.py + +do-build: + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} + +do-install: + ${MKDIR} ${PREFIX}/lib/${PORTNAME} + (cd ${WRKSRC} && \ + ${COPYTREE_SHARE} "*.py *.pyc plugins" ${PREFIX}/lib/${PORTNAME}) + ${CHMOD} ${BINMODE} ${PREFIX}/lib/${PORTNAME}/${PORTNAME}.py + ${INSTALL_DATA} ${WRKSRC}/pysieved.ini \ + ${PREFIX}/etc/pysieved.ini.sample + +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} + (cd ${WRKSRC}/contrib && \ + ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${EXAMPLESDIR}) +.endif + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}) +.endif + +post-install: + @if [ ! -f ${PREFIX}/etc/pysieved.ini ]; then \ + ${CP} -p ${PREFIX}/etc/pysieved.ini.sample ${PREFIX}/etc/pysieved.ini; \ + fi + +.include <bsd.port.mk> diff --git a/mail/pysieved/distinfo b/mail/pysieved/distinfo new file mode 100644 index 000000000000..f45f5755b3c8 --- /dev/null +++ b/mail/pysieved/distinfo @@ -0,0 +1,3 @@ +MD5 (pysieved-20070926.tar.bz2) = 9715979b59675072a586cf2521212b36 +SHA256 (pysieved-20070926.tar.bz2) = 41cb25be815e9505a767ce9c60c2a13a704b4ffd07255b128c31e23914955574 +SIZE (pysieved-20070926.tar.bz2) = 20597 diff --git a/mail/pysieved/files/pysieved.in b/mail/pysieved/files/pysieved.in new file mode 100644 index 000000000000..9e686e31c134 --- /dev/null +++ b/mail/pysieved/files/pysieved.in @@ -0,0 +1,27 @@ +#!/bin/sh +# +# PROVIDE: %%PORTNAME%% +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# Define these %%PORTNAME%%_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# + +. %%RC_SUBR%% + +name="%%PORTNAME%%" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${%%PORTNAME%%_enable="NO"} +: ${%%PORTNAME%%_pidfile="/var/run/%%PORTNAME%%.pid"} + +pidfile="${%%PORTNAME%%_pidfile}" +command_interpreter="%%PYTHON_CMD%%" +command="%%PREFIX%%/lib/pysieved/pysieved.py" + +run_rc_command "$1" diff --git a/mail/pysieved/pkg-descr b/mail/pysieved/pkg-descr new file mode 100644 index 000000000000..1c590fb5ef89 --- /dev/null +++ b/mail/pysieved/pkg-descr @@ -0,0 +1,23 @@ +This is a GPL managesieve server. It uses a plug-in architecture to +support different authentication, homedir lookup, and storage +back-ends. The server ships with the following plug-ins: + +Authentication: + + * Dovecot + * PAM + * SASL + * MySQL + +Homedir lookup & session initiation: + + * Dovecot + * /etc/passwd + * MySQL + * simple virtual hosting (eg. /var/lib/virtual/username) + +Storage: + + * Dovecot + +WWW: http://woozle.org/~neale/src/pysieved/ diff --git a/mail/pysieved/pkg-plist b/mail/pysieved/pkg-plist new file mode 100644 index 000000000000..26817a44a875 --- /dev/null +++ b/mail/pysieved/pkg-plist @@ -0,0 +1,33 @@ +@unexec if cmp -s %D/etc/pysieved.ini.sample %D/etc/pysieved.ini; then rm -f %D/etc/pysieved.ini; fi +etc/pysieved.ini.sample +@exec if [ ! -f %D/etc/pysieved.ini ] ; then cp -p %D/%F %B/pysieved.ini; fi +lib/pysieved/config.py +lib/pysieved/config.pyc +lib/pysieved/daemon.py +lib/pysieved/daemon.pyc +lib/pysieved/managesieve.py +lib/pysieved/managesieve.pyc +lib/pysieved/plugins/__init__.py +lib/pysieved/plugins/__init__.pyc +lib/pysieved/plugins/accept.py +lib/pysieved/plugins/accept.pyc +lib/pysieved/plugins/dovecot.py +lib/pysieved/plugins/dovecot.pyc +lib/pysieved/plugins/htpasswd.py +lib/pysieved/plugins/htpasswd.pyc +lib/pysieved/plugins/mysql.py +lib/pysieved/plugins/mysql.pyc +lib/pysieved/plugins/pam.py +lib/pysieved/plugins/pam.pyc +lib/pysieved/plugins/passwd.py +lib/pysieved/plugins/passwd.pyc +lib/pysieved/plugins/sasl.py +lib/pysieved/plugins/sasl.pyc +lib/pysieved/plugins/virtual.py +lib/pysieved/plugins/virtual.pyc +lib/pysieved/pysieved.py +lib/pysieved/pysieved.pyc +lib/pysieved/test.py +lib/pysieved/test.pyc +@dirrm lib/pysieved/plugins +@dirrm lib/pysieved |