1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/mail/vm-pop3d/Makefile

57 lines
1.5 KiB
Makefile

# Created by: Gea-Suan Lin (gslin@ccca.nctu.edu.tw)
# $FreeBSD$
PORTNAME= vm-pop3d
PORTVERSION= 1.1.6
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
http://www.ibiblio.org/%SUBDIR%/
MASTER_SITE_SUBDIR= system/mail/pop
MAINTAINER= ports@FreeBSD.org
COMMENT= A virtual POP3 server
GNU_CONFIGURE= yes
.if defined(WITH_IPVIRTUAL)
CONFIGURE_ARGS+= --enable-ip-based-virtual --enable-virtual
.elif defined(WITH_VIRTUAL)
CONFIGURE_ARGS+= --enable-virtual
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
MAN8= vm-pop3d.8
DOCS= AUTHORS CHANGES COPYING FAQ INSTALL README
NO_STAGE= yes
pre-patch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_VIRTUAL enable virtual passwd files and spool directories."
@${ECHO} " WITH_IPVIRTUAL enable IP-based virtual passwd files and spool directories."
@${ECHO} " WITH_DEBUG enable debugging."
@${ECHO} ""
post-patch:
@${REINPLACE_CMD} -e "s@LIBS -ldl@LIBS@" ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/vm-pop3d.h
@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${FILESDIR}/vm-pop3d.sh > ${WRKSRC}/vm-pop3d.sh.sample
post-install:
${INSTALL_MAN} ${WRKSRC}/vm-pop3d.8 ${MAN8PREFIX}/man/man8
${INSTALL_SCRIPT} ${WRKSRC}/vm-pop3d.sh.sample ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.mk>