2002-11-22 11:43:44 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2002/11/22 16:43:45 sturm Exp $
|
2001-08-28 22:13:04 -04:00
|
|
|
|
|
|
|
COMMENT= "mailing list manager with web interface"
|
|
|
|
|
2002-07-20 16:18:02 -04:00
|
|
|
DISTNAME= mailman-2.0.12
|
2001-08-28 22:13:04 -04:00
|
|
|
CATEGORIES= mail
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnu.org/software/mailman/mailman.html
|
|
|
|
|
2002-11-22 11:43:44 -05:00
|
|
|
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
|
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
|
|
|
|
|
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
|
|
|
|
|
2002-07-20 16:18:02 -04:00
|
|
|
PYTHON_VER= 2.2
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
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
|
|
|
|
MMEXAMPLES= ${PREFIX}/share/examples/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
|
|
|
|
|
|
|
CONFIGURE_STYLE= simple
|
2002-07-20 16:18:02 -04:00
|
|
|
# Adding DESTDIR by hand, because 'CONFIGURE_STYLE= gnu dest' overwrites
|
|
|
|
# our prefix without touching var-prefix
|
|
|
|
CONFIGURE_ARGS+= --with-var-prefix='$${${DESTDIRNAME}}${MMSPOOL}' \
|
|
|
|
--prefix='$${${DESTDIRNAME}}${MMHOME}' \
|
2002-04-07 18:30:23 -04:00
|
|
|
--with-python=${LOCALBASE}/bin/python${PYTHON_VER}
|
2001-08-28 22:13:04 -04:00
|
|
|
|
|
|
|
FLAVORS=postfix
|
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mpostfix}
|
|
|
|
CONFIGURE_ARGS+=--with-mail-gid=nobody
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-mail-gid=daemon
|
|
|
|
.endif
|
|
|
|
|
2002-08-03 17:08:19 -04:00
|
|
|
post-configure:
|
|
|
|
@perl -i -pe 's#\$${${DESTDIRNAME}}##g' \
|
2002-10-25 16:05:20 -04:00
|
|
|
${WRKSRC}/misc/paths.py ${WRKSRC}/Mailman/Defaults.py \
|
|
|
|
${WRKSRC}/cron/crontab.in
|
2002-08-03 17:08:19 -04:00
|
|
|
|
2001-08-28 22:13:04 -04:00
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${MMDOC}
|
|
|
|
@${INSTALL_DATA_DIR} ${MMEXAMPLES}
|
|
|
|
@for file in FAQ NEWS README* UPGRADING; do \
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/$$file ${MMDOC}; \
|
|
|
|
done
|
|
|
|
@${INSTALL_DATA} files/README.OpenBSD ${MMDOC}
|
|
|
|
@for file in filters/bowa-strip misc/pending_subscriptions.db; do \
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/$$file ${MMEXAMPLES}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|