freebsd-ports/mail/mailman/Makefile
Johann Visagie 907476ac43 - Interim update to version 2.0.8 (which contains important security fixes),
maintaining most of the port's existing structure.  A more comprehensive
  restructuring of this port is in the works.
- Assume maintainership, pending any objections from -ports.
2001-12-06 07:45:02 +00:00

80 lines
2.0 KiB
Makefile

# New ports collection makefile for: mailman
# Date created: 10 July 2000
# Whom: n_hibma@qubesoft.com
#
# $FreeBSD$
#
PORTNAME= mailman
PORTVERSION= 2.0.8
CATEGORIES= mail
MASTER_SITES= http://www.list.org/ \
${MASTER_SITE_GNU} \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mailman
EXTRACT_SUFX= .tgz
MAINTAINER= wjv@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${MAILMANDIR} \
--with-python=${PYTHON_CMD} \
--with-mail-gid=${MAIL_GID} --with-cgi-gid=${CGI_GID}
USE_PYTHON= yes
USERNAME?= mailman
USERID?= 89
# The default value of '1' for MAIL_GID works with sendmail. If you're
# using installed from ports, you should set MAIL_GID at build time
# according to the following table:
#
# MTA | MAIL_GID
# Exim | 6
# Postfix | ???
MAIL_GID?= 1
CGI_GID?= 80
MMDIR?= mailman
MAILMANDIR= ${PREFIX}/${MMDIR}
PKGMESSAGE= ${WRKDIR}/pkg-message
pre-configure:
# Add the username, uid, group and gid
${SH} ${FILESDIR}/configure.sh ${USERNAME} ${USERID} ${MAILMANDIR}
# Create the dir and the correct permissions for it.
${MKDIR} ${MAILMANDIR}
${CHOWN} ${USERNAME}:${USERNAME} ${MAILMANDIR}
${CHMOD} 2775 ${MAILMANDIR}
post-configure:
@ ${SED} -e 's#%%MAILMANDIR%%#${MAILMANDIR}#g' \
-e 's#%%DOCSDIR%%#${DOCSDIR}#g' pkg-message > \
${PKGMESSAGE}
pre-build:
.if !defined(BATCH)
@ ${ECHO_MSG} "-------------------------------------------------------"
@ ${ECHO_MSG} " If you're using an alternative MTA (not Sendmail),"
@ ${ECHO_MSG} " you may have to set MAIL_GID to the gid under which"
@ ${ECHO_MSG} " your MTA is executing."
@ ${ECHO_MSG} "-------------------------------------------------------"
.endif
post-install:
@${CHOWN} -R :${USERNAME} ${MAILMANDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in BUGS FAQ INSTALL NEWS README* UPGRADING
@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
.endfor
.endif
.if !defined(BATCH)
@ ${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>