pkgsrc/mail/teapop/Makefile

53 lines
1.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2002/06/12 10:55:48 wiz Exp $
DISTNAME= teapop-0.3.5
CATEGORIES= mail
MASTER_SITES= ftp://ftp.toontown.org/pub/teapop/ \
http://www.toontown.org/pub/teapop/
MAINTAINER= dawszy@arhea.net
HOMEPAGE= http://www.toontown.org/teapop/
COMMENT= Yet another RFC1939 compliant POP3 server
USE_BUILDLINK_ONLY= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-flock
2001-11-25 23:55:04 +01:00
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples/teapop
CONF_FILES= ${EGDIR}/teapop.passwd ${PKG_SYSCONFDIR}/teapop.passwd
.include "../../mk/bsd.prefs.mk"
.if defined(POP_WITH_DRAC)
.include "../../mail/drac/buildlink.mk"
CONFIGURE_ARGS+= --with-drac=${BUILDLINK_DIR}/lib
CONFIGURE_ARGS+= --with-dracinc=${BUILDLINK_DIR}/include
.endif
.if defined(TEAPOP_WITHOUT_APOP)
CONFIGURE_ARGS+=--disable-apop
.endif
.if defined(TEAPOP_WITHOUT_VPOP)
CONFIGURE_ARGS+=--disable-vpop
.endif
.if defined(TEAPOP_WITH_MYSQL)
.include "../../databases/mysql-client/buildlink.mk"
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_DIR}
LDFLAGS+= -L${BUILDLINK_DIR}/lib/mysql -Wl,-R${LOCALBASE}/lib/mysql
.endif
post-build:
${SED} ${FILES_SUBST_SED} ${FILESDIR}/teapop > ${WRKDIR}/teapop
2001-11-25 23:55:04 +01:00
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/teapop.passwd ${EGDIR}
${INSTALL_SCRIPT} ${WRKDIR}/teapop ${PREFIX}/etc/rc.d/teapop
2001-11-25 23:55:04 +01:00
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"