2000-02-19 13:21:54 +00:00
|
|
|
# New ports collection makefile for: popa3d
|
|
|
|
# Date created: Sun Feb 6 12:31:29 MSK 2000
|
|
|
|
# Whom: Sergey Samoyloff <gonza@techline.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 20:01:08 +00:00
|
|
|
PORTNAME= popa3d
|
2004-07-31 05:04:48 +00:00
|
|
|
PORTVERSION= 0.6.4.1
|
2000-02-19 13:21:54 +00:00
|
|
|
CATEGORIES= mail
|
2000-04-01 03:39:48 +00:00
|
|
|
MASTER_SITES= http://www.openwall.com/popa3d/ \
|
2003-11-12 15:09:17 +00:00
|
|
|
ftp://ftp.openwall.com/pub/projects/popa3d/
|
2004-03-26 17:50:58 +00:00
|
|
|
PKGNAMESUFFIX?= ${SMTP_AFTER_POP3_SUFFIX}${STANDALONE_SUFFIX}${PKGNAMESUFFIX2}
|
2001-09-16 09:43:13 +00:00
|
|
|
|
2002-01-12 13:04:42 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 18:26:42 +00:00
|
|
|
COMMENT= Secure, performance, tiny POP3 daemon
|
2000-02-19 13:21:54 +00:00
|
|
|
|
2003-12-04 03:28:54 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-04-01 03:39:48 +00:00
|
|
|
ALL_TARGET= popa3d
|
2002-04-06 07:15:18 +00:00
|
|
|
MAN8= popa3d.8
|
2003-01-08 06:45:48 +00:00
|
|
|
PLIST= ${WRKDIR}/.PLIST.more
|
2002-01-13 10:39:01 +00:00
|
|
|
CFLAGS+= -DPREFIX=${PREFIX}
|
2004-02-24 16:31:26 +00:00
|
|
|
.if defined(STANDALONE_POP3)
|
2004-03-26 17:50:58 +00:00
|
|
|
STANDALONE_SUFFIX= -standalone
|
2004-02-24 16:31:26 +00:00
|
|
|
PLIST_SUB+= STANDALONE_POP3=""
|
|
|
|
CONFLICTS?= popa3d-0.* popa3d-before-sendmail-0.*
|
|
|
|
PKGMESSAGE= ${NONEXISTENT}
|
|
|
|
PKGDEINSTALL= ${NONEXISTENT}
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= STANDALONE_POP3="@comment "
|
|
|
|
.endif
|
2001-09-16 09:43:13 +00:00
|
|
|
.if defined(SMTP_AFTER_POP3)
|
2004-03-26 17:50:58 +00:00
|
|
|
SMTP_AFTER_POP3_SUFFIX= -before-sendmail
|
2002-01-12 13:04:42 +00:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/pop-before-sendmail.patch
|
2003-01-28 22:04:19 +00:00
|
|
|
PLIST_SUB+= SMTP_AFTER_POP3=""
|
2004-02-24 16:31:26 +00:00
|
|
|
CONFLICTS?= popa3d-0.* popa3d-standalone-0.*
|
2003-01-28 22:04:19 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= SMTP_AFTER_POP3="@comment "
|
2004-02-24 16:31:26 +00:00
|
|
|
CONFLICTS?= popa3d-standalone-0.* popa3d-before-sendmail-0.*
|
2003-12-04 03:28:54 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(STANDALONE_POP3)
|
|
|
|
post-extract:
|
|
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/popa3d.sh \
|
|
|
|
> ${WRKSRC}/popa3d.sh
|
|
|
|
.endif
|
2001-09-16 09:43:13 +00:00
|
|
|
|
|
|
|
pre-configure:
|
2003-01-08 06:45:48 +00:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
|
|
|
.if !exists(/var/empty)
|
2003-12-04 03:28:54 +00:00
|
|
|
@${REINPLACE_CMD} -e "s=/var/empty=${PREFIX}/empty=" \
|
|
|
|
${WRKSRC}/params.h
|
2003-01-08 06:45:48 +00:00
|
|
|
@${ECHO_CMD} "@exec ${MKDIR} %D/empty" >>${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm empty" >>${PLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(SMTP_AFTER_POP3)
|
|
|
|
@${ECHO_CMD} "@cwd ${CFDIR}" >>${PLIST}
|
|
|
|
@${ECHO_CMD} "hack/popauth.m4" >>${PLIST}
|
|
|
|
.endif
|
2003-12-04 03:28:54 +00:00
|
|
|
.if defined(STANDALONE_POP3)
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(#define POP_STANDALONE\).*|\1 1|' \
|
|
|
|
${WRKSRC}/params.h
|
2003-01-08 06:45:48 +00:00
|
|
|
.endif
|
2004-08-05 15:07:58 +00:00
|
|
|
.if defined(MAILBOX_HOME)
|
|
|
|
@${REINPLACE_CMD} -e 's|^#define \(MAIL_SPOOL_PATH\).*|#undef \1|' \
|
|
|
|
${WRKSRC}/params.h
|
|
|
|
.endif
|
2002-01-13 10:39:01 +00:00
|
|
|
|
2001-09-16 09:43:13 +00:00
|
|
|
pre-install:
|
2002-01-13 10:39:01 +00:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2003-01-08 06:45:48 +00:00
|
|
|
.if !exists(/var/empty)
|
2002-01-13 10:39:01 +00:00
|
|
|
@${MKDIR} ${PREFIX}/empty
|
2003-01-08 06:45:48 +00:00
|
|
|
.endif
|
2001-09-16 09:43:13 +00:00
|
|
|
|
2000-02-19 13:21:54 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL} ${COPY} -o root -g wheel -m 500 \
|
|
|
|
${WRKSRC}/popa3d ${PREFIX}/libexec/popa3d
|
2003-01-08 06:45:48 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/popa3d.8 ${MANPREFIX}/man/man8/
|
2001-09-16 09:43:13 +00:00
|
|
|
.if defined(SMTP_AFTER_POP3)
|
2003-01-08 06:45:48 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/popauth.m4 ${CFDIR}/hack/
|
2001-09-16 09:43:13 +00:00
|
|
|
.endif
|
2003-12-04 03:28:54 +00:00
|
|
|
.if defined(STANDALONE_POP3)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/popa3d.sh ${PREFIX}/etc/rc.d/popa3d.sh-dist
|
|
|
|
.endif
|
2000-02-19 13:21:54 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-12-04 03:28:54 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/DESIGN ${DOCSDIR}/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}/
|
2001-09-16 09:43:13 +00:00
|
|
|
.if defined(SMTP_AFTER_POP3)
|
2003-12-04 03:28:54 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/POPAUTH ${DOCSDIR}/
|
2001-09-16 09:43:13 +00:00
|
|
|
.endif
|
2000-02-19 13:21:54 +00:00
|
|
|
.endif
|
2000-04-01 03:39:48 +00:00
|
|
|
|
2004-02-24 16:31:26 +00:00
|
|
|
.if !defined(STANDALONE_POP3)
|
2000-04-01 03:39:48 +00:00
|
|
|
post-install:
|
2000-10-08 10:23:48 +00:00
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
2004-02-24 16:31:26 +00:00
|
|
|
.endif
|
2000-02-19 13:21:54 +00:00
|
|
|
|
2004-03-18 05:08:53 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-09-16 09:43:13 +00:00
|
|
|
|
2004-03-18 05:08:53 +00:00
|
|
|
.if exists(${LOCALBASE}/share/sendmail/cf/mailer/uucp.m4)
|
|
|
|
CFDIR= ${LOCALBASE}/share/sendmail/cf
|
2001-09-16 09:43:13 +00:00
|
|
|
.else
|
2004-03-18 05:08:53 +00:00
|
|
|
CFDIR= /usr/share/sendmail/cf
|
2001-09-16 09:43:13 +00:00
|
|
|
.endif
|
2004-03-18 05:08:53 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|