Suggested by: marck@woozle.rinet.ru
- Use of /var/empty is it exists. - Split defines to make portlint happy. - record installation option SMTP_AFTER_POP3 better PR: 46802
This commit is contained in:
parent
6d55ed0f42
commit
9d0fc5229e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72722
2 changed files with 20 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue