2008-10-28 05:28:24 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.50 2008/10/28 09:28:24 ajacoutot Exp $
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT= mailing list manager with web interface
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2006-12-11 15:42:50 -05:00
|
|
|
DISTNAME= mailman-2.1.9
|
2008-07-09 15:30:23 -04:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
2005-01-26 00:28:53 -05:00
|
|
|
CATEGORIES= mail www
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2003-01-18 13:25:10 -05:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/mailman/
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2008-06-24 09:18:02 -04:00
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
2004-01-01 12:29:08 -05:00
|
|
|
|
2001-08-28 22:13:04 -04:00
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-01-02 07:56:04 -05:00
|
|
|
WANTLIB= c
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2002-05-13 19:31:24 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mailman/}
|
2001-08-28 22:13:04 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-03-13 13:31:21 -05:00
|
|
|
MODULES= lang/python
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2001-10-31 15:09:18 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-08-28 22:13:04 -04:00
|
|
|
MMDOC= ${PREFIX}/share/doc/mailman
|
|
|
|
MMHOME= ${PREFIX}/lib/mailman
|
|
|
|
MMSPOOL= /var/spool/mailman
|
|
|
|
|
2002-07-20 16:18:02 -04:00
|
|
|
FAKE_FLAGS= DIRSETGID=":"
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2003-05-01 12:11:53 -04:00
|
|
|
# gnu still breaks the pathes as prefix is actually mailman's home
|
2001-08-28 22:13:04 -04:00
|
|
|
CONFIGURE_STYLE= simple
|
2003-05-01 12:11:53 -04:00
|
|
|
# do not use --without-permcheck as this requires the mailman user and group
|
|
|
|
# to exist, otherwise there will be problems running mailman
|
|
|
|
CONFIGURE_ARGS+= --prefix='${MMHOME}' \
|
2003-01-18 11:52:17 -05:00
|
|
|
--with-mailhost=localhost.my.domain \
|
2006-03-13 13:31:21 -05:00
|
|
|
--with-python=${MODPY_BIN} \
|
2003-01-18 11:52:17 -05:00
|
|
|
--with-urlhost=localhost.my.domain \
|
2003-10-09 11:39:33 -04:00
|
|
|
--with-var-prefix='${MMSPOOL}' \
|
2005-06-23 03:34:56 -04:00
|
|
|
--without-permcheck \
|
|
|
|
--with-username=_mailman \
|
|
|
|
--with-groupname=_mailman
|
2001-08-28 22:13:04 -04:00
|
|
|
|
2003-01-18 11:52:17 -05:00
|
|
|
FLAVORS= postfix
|
2001-08-28 22:13:04 -04:00
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mpostfix}
|
2005-11-13 12:48:41 -05:00
|
|
|
CONFIGURE_ARGS+=--with-mail-gid=_mailman
|
2001-08-28 22:13:04 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-mail-gid=daemon
|
|
|
|
.endif
|
|
|
|
|
2008-07-09 15:30:23 -04:00
|
|
|
SCRIPTS= Mailman/Archiver/pipermail.py \
|
|
|
|
Mailman/Post.py \
|
|
|
|
admin/bin/faq2ht.py \
|
|
|
|
admin/bin/mm2do \
|
|
|
|
admin/bin/release \
|
|
|
|
admin/www/reset_pw.py \
|
|
|
|
bin/msgfmt.py \
|
|
|
|
messages/Makefile.in \
|
|
|
|
templates/ru/s2s.py \
|
|
|
|
tests/onebounce.py
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.for SCRIPT in ${SCRIPTS}
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/${SCRIPT}
|
|
|
|
.endfor
|
|
|
|
|
2001-08-28 22:13:04 -04:00
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${MMDOC}
|
|
|
|
@for file in FAQ NEWS README* UPGRADING; do \
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/$$file ${MMDOC}; \
|
|
|
|
done
|
2004-07-09 14:12:35 -04:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${MMDOC}
|
2001-08-28 22:13:04 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|