diff options
-rw-r--r-- | mail/popa3d/Makefile | 27 | ||||
-rw-r--r-- | mail/popa3d/pkg-plist | 2 |
2 files changed, 20 insertions, 9 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile index 2a2920ffe61..be98a96c2a4 100644 --- a/mail/popa3d/Makefile +++ b/mail/popa3d/Makefile @@ -7,6 +7,7 @@ PORTNAME= popa3d PORTVERSION= 0.5.1 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.openwall.com/popa3d/ \ ftp://ftp.openwall.com/pub/projects/popa3d/ \ @@ -19,38 +20,50 @@ MAINTAINER= dinoex@FreeBSD.org ALL_TARGET= popa3d MAN8= popa3d.8 +PLIST= ${WRKDIR}/.PLIST.more CFLAGS+= -DPREFIX=${PREFIX} - .if defined(SMTP_AFTER_POP3) EXTRA_PATCHES+= ${FILESDIR}/pop-before-sendmail.patch -PLIST= ${WRKDIR}/.PLIST.more +.endif pre-configure: - @${ECHO_CMD} "%%PORTDOCS%%share/doc/popa3d/POPAUTH" >${PLIST} - @${CAT} ${PKGDIR}/pkg-plist >>${PLIST} - @${ECHO_CMD} "share/sendmail/cf/hack/popauth.m4" >>${PLIST} + @${CAT} ${PKGDIR}/pkg-plist >${PLIST} +.if !exists(/var/empty) + @${ECHO_CMD} "@exec ${MKDIR} %D/empty" >>${PLIST} + @${ECHO_CMD} "@dirrm empty" >>${PLIST} +.endif +.if defined(SMTP_AFTER_POP3) + @${ECHO_CMD} "%%PORTDOCS%%share/doc/popa3d/POPAUTH" >>${PLIST} + @${ECHO_CMD} "@cwd ${CFDIR}" >>${PLIST} + @${ECHO_CMD} "hack/popauth.m4" >>${PLIST} +.endif +.if defined(SMTP_AFTER_POP3) post-patch: @${MV} ${WRKSRC}/pop_root.c ${WRKSRC}/pop_root.c.sed ${SED} -e "s=db1/db.h=db.h=" \ ${WRKSRC}/pop_root.c.sed > ${WRKSRC}/pop_root.c .endif +.if !exists(/var/empty) pre-patch: @${MV} ${WRKSRC}/params.h ${WRKSRC}/params.h.sed ${SED} -e "s=/var/empty=${PREFIX}/empty=" \ ${WRKSRC}/params.h.sed > ${WRKSRC}/params.h +.endif pre-install: @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL +.if !exists(/var/empty) @${MKDIR} ${PREFIX}/empty +.endif do-install: ${INSTALL} ${COPY} -o root -g wheel -m 500 \ ${WRKSRC}/popa3d ${PREFIX}/libexec/popa3d - ${INSTALL_MAN} ${WRKSRC}/popa3d.8 ${MANPREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/popa3d.8 ${MANPREFIX}/man/man8/ .if defined(SMTP_AFTER_POP3) - ${INSTALL_DATA} ${FILESDIR}/popauth.m4 ${CFDIR}/hack + ${INSTALL_DATA} ${FILESDIR}/popauth.m4 ${CFDIR}/hack/ .endif .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/popa3d diff --git a/mail/popa3d/pkg-plist b/mail/popa3d/pkg-plist index fc2ed694cee..ed48f930d33 100644 --- a/mail/popa3d/pkg-plist +++ b/mail/popa3d/pkg-plist @@ -1,6 +1,4 @@ @comment $FreeBSD$ -@exec mkdir -p %D/empty -@dirrm empty libexec/popa3d %%PORTDOCS%%share/doc/popa3d/DESIGN %%PORTDOCS%%share/doc/popa3d/LICENSE |