ca240d515f
Miscellous fixes: * Make sure home directory of nullmail user is correct. (http://www.freebsd.org/cgi/mid.cgi?db=mid&id=20030207081144.GB52029@fatpipi.cirx.org) * Typo fixed in pkg-message. (Submitter: Thierry Thomas <thierry@pompo.net>) * Better startup script. (Submitter: lewiz <purple@lewiz.info>)
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
# Ports collection makefile for: nullmailer
|
|
# Date created: Tue Jan 30 2001
|
|
# Whom: clive
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nullmailer
|
|
# PORTVERSION= 1.00RC7
|
|
PORTVERSION= 1.00r7
|
|
PORTREVISION= 0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://untroubled.org/nullmailer/ \
|
|
ftp://mirrors.dataloss.nl/mirrors/bgware/nullmailer/%SUBDIR%/
|
|
# MASTER_SITE_SUBDIR= ${PORTVERSION}
|
|
MASTER_SITE_SUBDIR= 1.00RC7
|
|
DISTNAME= ${PORTNAME}-1.00RC7
|
|
|
|
MAINTAINER= clive@FreeBSD.org
|
|
COMMENT= MTA for hosts which relay to a fixed set of smart relays
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_SUBMAKE= yes
|
|
CXXFLAGS+= -lstdc++
|
|
MAN1= nullmailer-inject.1 sendmail.1
|
|
MAN7= nullmailer.7
|
|
MAN8= nullmailer-queue.8 nullmailer-send.8
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
LOCALSTATEDIR= /var/spool
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR}
|
|
PLIST_SUB= LOCALSTATEDIR=${LOCALSTATEDIR}
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
post-extract:
|
|
@${CAT} ${FILESDIR}/pkg-install.proto | ${SED} -e 's,%%LOCALSTATEDIR%%,${LOCALSTATEDIR},g' > ${WRKDIR}/pkg-install
|
|
@${CAT} ${FILESDIR}/pkg-message.proto | ${SED} -e 's,%%PREFIX%%,${PREFIX},' > ${PKGMESSAGE}
|
|
|
|
# Pass BATCH to pkg-install for Evil Things(tm)
|
|
# Pass LOCALSTATEDIR to pkg-install for creating home directory correctly
|
|
pre-install:
|
|
@BATCH="${BATCH}" LOCALSTATEDIR="${LOCALSTATEDIR}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && make install && make install-root
|
|
|
|
post-install:
|
|
@${INSTALL_SCRIPT} -c ${FILESDIR}/nullmail.sh ${PREFIX}/etc/rc.d/
|
|
@${INSTALL_DATA} -c ${FILESDIR}/remotes.sample ${PREFIX}/etc/nullmailer/
|
|
@BATCH="${BATCH}" NMH_PREFIX="${NMH_PREFIX}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|