1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/mail/p3scan/Makefile
Edwin Groothuis 75bc76f6ee Bento fix for p3scan
PR:		ports/63177
Submitted by:	Hendrik Scholz <hendrik@scholz.net>
Approved by:	edwin@mavetju.org
2004-02-21 22:20:31 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: p3scan
# Date created: 20 Februari 2003
# Whom: Edwin Groothuis <edwin@mavetju.org>
#
# $FreeBSD$
#
PORTNAME= p3scan
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= edwin@mavetju.org
COMMENT= A transparent POP3-Proxy with virus-scanning capabilities
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
USE_GMAKE= yes
USE_GETOPT_LONG=yes
MAKE_ENV= _LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" GMAKE=${GMAKE}
SCRIPTS_ENV= PKG_PREFIX=${PREFIX} NONEXISTENT=${NONEXISTENT} PASSWD=/etc/passwd
OPTIONS= UVSCAN "Use UVSCAN" on
PORTDOCS= AUTHORS CHANGELOG LICENSE NEWS README
.include <bsd.port.pre.mk>
.if defined(WITH_UVSCAN) && ${WITH_UVSCAN:L} == "true"
RUN_DEPENDS+= uvscan:${PORTSDIR}/security/vscan
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/p3scan ${PREFIX}/sbin/
${INSTALL_DATA} ${WRKSRC}/p3scan.conf ${PREFIX}/etc/p3scan.conf.sample
${INSTALL_DATA} ${WRKSRC}/p3scan.mail ${PREFIX}/etc/p3scan.mail.sample
${INSTALL_SCRIPT} ${FILESDIR}/p3scan.sh ${PREFIX}/etc/rc.d/
.ifndef (NOPORTDOCS)
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
post-install:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${SED} -e 's,PREFIX,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.post.mk>