freebsd-ports/mail/qmailadmin-devel/Makefile
Peter Pentchev 0a0e77eea4 Update from 1.0.12 to 1.0.24.
Use SourceForge as master sites.
Add WITH_MODIFY_QUOTA and WITH_DOMAIN_AUTOFILL knobs.
Make WEBDATASUBDIR and WEBDATAURL working.

PR:		54577
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
2003-07-17 13:13:04 +00:00

100 lines
2.8 KiB
Makefile

# New ports collection makefile for: qmailadmin
# Date created: 23 Sep 2000
# Whom: Neil Blakey-Milner
#
# $FreeBSD$
#
PORTNAME= qmailadmin
PORTVERSION= 1.0.24
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= roam@FreeBSD.org
COMMENT= CGI program for administering Qmail with vchkpw/vpopmail
BUILD_DEPENDS= \
${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail \
autorespond:${PORTSDIR}/mail/autorespond \
ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \
${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
RUN_DEPENDS= \
${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail \
autorespond:${PORTSDIR}/mail/autorespond \
ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \
${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
GNU_CONFIGURE= YES
USE_GMAKE= YES
#
# User-configurable variables
#
# CGIBINDIR - location of your cgi directory
# CGIBINSUBDIR - subdirectory to place cgi scripts in
# CGIBINURL - location of your cgi directory in a URL
# WEBDATADIR - location of your html files
# WEBDATASUBDIR - subdirectory to place html files in
# WEBDATAURL - location of your html files in a URL
#
# WITHOUT_IPAUTH - disable the IP address check after login
# WITHOUT_USER_INDEX - disable the user index display, which might
# confuse earlier versions of Internet Explorer
# WITH_MODIFY_QUOTA - enable domain admin to modify user quotas
# WITH_DOMAIN_AUTOFILL - autofill the domain on login page based on the
# hostname
#
CGIBINDIR?= www/cgi-bin.default
CGIBINSUBDIR?= qmailadmin
CGIBINURL?= /cgi-bin
WEBDATADIR?= www/data.default
WEBDATASUBDIR?= qmailadmin
WEBDATAURL?=
PLIST_SUB+= CGIBINDIR="${CGIBINDIR}" CGIBINSUBDIR="${CGIBINSUBDIR}" \
WEBDATADIR="${WEBDATADIR}" WEBDATASUBDIR="${WEBDATASUBDIR}"
.include <bsd.port.pre.mk>
#
# QMAIL_DIR - location of qmail directory
#
.if exists(${LOCALBASE}/qmail/bin/qmail-send)
QMAIL_DIR?= ${LOCALBASE}/qmail
.else
QMAIL_DIR?= /var/qmail
.endif
# End of user-configurable variables
CONFIGURE_ARGS+= \
--enable-htmldir=${PREFIX}/${WEBDATADIR}/${WEBDATASUBDIR} \
--enable-imagedir=${PREFIX}/${WEBDATADIR}/${WEBDATASUBDIR}/images \
--enable-imageurl=${WEBDATAURL}/${WEBDATASUBDIR}/images \
--with-htmllibdir=${DATADIR} \
--enable-cgibindir=${PREFIX}/${CGIBINDIR}/${CGIBINSUBDIR} \
--enable-cgipath=${CGIBINURL}/${CGIBINSUBDIR}/qmailadmin \
--enable-vpopmaildir=${LOCALBASE}/vpopmail \
--enable-autoresponder-bin=${LOCALBASE}/bin \
--enable-ezmlmdir=${LOCALBASE}/bin
.if defined(WITHOUT_IPAUTH)
CONFIGURE_ARGS+= --enable-ipauth=n
.endif
.if defined(WITHOUT_USER_INDEX)
CONFIGURE_ARGS+= --enable-user-index=n
.endif
.if defined(WITH_MODIFY_QUOTA)
CONFIGURE_ARGS+= --enable-modify-quota=y
.endif
.if defined(WITH_DOMAIN_AUTOFILL)
CONFIGURE_ARGS+= --enable-domain-autofill=y
.endif
.include <bsd.port.post.mk>