795d6c38b2
thanks brad@
71 lines
1.8 KiB
Makefile
71 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.19 2003/01/27 22:15:40 sturm Exp $
|
|
|
|
COMMENT= "mailing list manager with web interface"
|
|
|
|
DISTNAME= mailman-2.1
|
|
CATEGORIES= mail www
|
|
PKGNAME= ${DISTNAME}p1
|
|
|
|
HOMEPAGE= http://www.gnu.org/software/mailman/
|
|
|
|
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mailman/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
# workaround XSS bug, will be part of 2.1.1
|
|
PATCH_DIST_ARGS= -b ${DISTORIG} -d ${WRKSRC}/Mailman/Cgi --forward \
|
|
--quiet -E ${PATCH_DIST_STRIP}
|
|
PATCHFILES= xss-2.1.0-patch.txt
|
|
|
|
PYTHON_VER= 2.2
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
MMDOC= ${PREFIX}/share/doc/mailman
|
|
MMHOME= ${PREFIX}/lib/mailman
|
|
MMSPOOL= /var/spool/mailman
|
|
|
|
FAKE_FLAGS= DIRSETGID=":"
|
|
|
|
CONFIGURE_STYLE= simple
|
|
# Adding DESTDIR by hand, because 'CONFIGURE_STYLE= gnu dest' overwrites
|
|
# our prefix without touching var-prefix
|
|
CONFIGURE_ARGS+= --prefix='$${${DESTDIRNAME}}${MMHOME}' \
|
|
--with-mailhost=localhost.my.domain \
|
|
--with-python=${LOCALBASE}/bin/python${PYTHON_VER} \
|
|
--with-urlhost=localhost.my.domain \
|
|
--with-var-prefix='$${${DESTDIRNAME}}${MMSPOOL}'
|
|
|
|
FLAVORS= postfix
|
|
FLAVOR?=
|
|
.if ${FLAVOR:L:Mpostfix}
|
|
CONFIGURE_ARGS+=--with-mail-gid=nobody
|
|
.else
|
|
CONFIGURE_ARGS+=--with-mail-gid=daemon
|
|
.endif
|
|
|
|
post-configure:
|
|
@perl -i -pe 's#\$${${DESTDIRNAME}}##g' \
|
|
${WRKSRC}/Mailman/Defaults.py \
|
|
${WRKSRC}/cron/crontab.in \
|
|
${WRKSRC}/misc/mailman \
|
|
${WRKSRC}/misc/paths.py
|
|
|
|
post-install:
|
|
@${INSTALL_DATA_DIR} ${MMDOC}
|
|
@for file in FAQ NEWS README* UPGRADING; do \
|
|
${INSTALL_DATA} ${WRKDIST}/$$file ${MMDOC}; \
|
|
done
|
|
@${INSTALL_DATA} files/README.OpenBSD ${MMDOC}
|
|
|
|
.include <bsd.port.mk>
|