2002-06-12 12:55:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2002/06/12 10:55:48 wiz Exp $
|
2001-03-24 07:17:06 +01:00
|
|
|
|
2002-06-12 12:55:48 +02:00
|
|
|
DISTNAME= teapop-0.3.5
|
2001-03-24 07:17:06 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.toontown.org/pub/teapop/ \
|
|
|
|
http://www.toontown.org/pub/teapop/
|
|
|
|
|
2002-06-12 12:55:48 +02:00
|
|
|
MAINTAINER= dawszy@arhea.net
|
2001-03-24 07:17:06 +01:00
|
|
|
HOMEPAGE= http://www.toontown.org/teapop/
|
|
|
|
COMMENT= Yet another RFC1939 compliant POP3 server
|
|
|
|
|
2001-06-30 23:21:51 +02:00
|
|
|
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
|
2001-03-24 07:17:06 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2002-05-20 16:06:43 +02:00
|
|
|
.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
|
|
|
|
|
2001-03-24 07:17:06 +01:00
|
|
|
.if defined(TEAPOP_WITHOUT_APOP)
|
|
|
|
CONFIGURE_ARGS+=--disable-apop
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(TEAPOP_WITHOUT_VPOP)
|
|
|
|
CONFIGURE_ARGS+=--disable-vpop
|
|
|
|
.endif
|
|
|
|
|
2002-04-04 01:10:41 +02:00
|
|
|
.if defined(TEAPOP_WITH_MYSQL)
|
2002-05-20 16:06:43 +02:00
|
|
|
.include "../../databases/mysql-client/buildlink.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_DIR}
|
|
|
|
LDFLAGS+= -L${BUILDLINK_DIR}/lib/mysql -Wl,-R${LOCALBASE}/lib/mysql
|
2002-04-04 01:10:41 +02:00
|
|
|
.endif
|
|
|
|
|
2002-05-08 00:49:19 +02:00
|
|
|
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}
|
2002-05-08 00:49:19 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/teapop ${PREFIX}/etc/rc.d/teapop
|
2001-11-25 23:55:04 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
2001-03-24 07:17:06 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|