openbsd-ports/mail/mailman/Makefile

65 lines
1.6 KiB
Makefile
Raw Normal View History

2005-06-23 03:34:56 -04:00
# $OpenBSD: Makefile,v 1.34 2005/06/23 07:34:56 djm Exp $
COMMENT= "mailing list manager with web interface"
2005-06-23 03:34:56 -04:00
DISTNAME= mailman-2.1.6
PKGNAME= ${DISTNAME}
CATEGORIES= mail www
HOMEPAGE= http://www.gnu.org/software/mailman/
2004-01-01 12:29:08 -05:00
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
# 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
2002-05-13 19:31:24 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mailman/}
EXTRACT_SUFX= .tgz
2005-04-24 15:31:25 -04:00
PYTHON_VER= 2.3
SUBST_VARS= PYTHON_VER
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
2001-10-31 15:09:18 -05:00
NO_REGRESS= Yes
MMDOC= ${PREFIX}/share/doc/mailman
MMHOME= ${PREFIX}/lib/mailman
MMSPOOL= /var/spool/mailman
FAKE_FLAGS= DIRSETGID=":"
# gnu still breaks the pathes as prefix is actually mailman's home
CONFIGURE_STYLE= simple
# 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}' \
--with-mailhost=localhost.my.domain \
--with-python=${LOCALBASE}/bin/python${PYTHON_VER} \
--with-urlhost=localhost.my.domain \
--with-var-prefix='${MMSPOOL}' \
2005-06-23 03:34:56 -04:00
--without-permcheck \
--with-username=_mailman \
--with-groupname=_mailman
FLAVORS= postfix
FLAVOR?=
.if ${FLAVOR:L:Mpostfix}
CONFIGURE_ARGS+=--with-mail-gid=nobody
.else
CONFIGURE_ARGS+=--with-mail-gid=daemon
.endif
post-install:
@${INSTALL_DATA_DIR} ${MMDOC}
@for file in FAQ NEWS README* UPGRADING; do \
${INSTALL_DATA} ${WRKDIST}/$$file ${MMDOC}; \
done
@${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${MMDOC}
.include <bsd.port.mk>