mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
- Convert to @sample
- Convert to @(user,group,mode) - Convert to OPTIONS_SLAVE - Register CONFLICTS with -postfix slave port
This commit is contained in:
parent
400c09004a
commit
46423c6065
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379338
@ -2,7 +2,9 @@
|
||||
|
||||
PKGNAMESUFFIX= -postfix
|
||||
|
||||
WITH_POSTFIX= yes
|
||||
CONFLICTS_INSTALL= trac-email2trac-[0-9]*
|
||||
|
||||
OPTIONS_SLAVE= POSTFIX
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../trac-email2trac
|
||||
|
||||
|
@ -29,6 +29,10 @@ PORTDOCS= AUTHORS ChangeLog INSTALL README
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${SLAVE_PORT} == no
|
||||
CONFLICTS_INSTALL+= trac-email2trac-postfix-[0-9]*
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPOSTFIX}
|
||||
MTAUSER?= nobody
|
||||
.else
|
||||
@ -38,14 +42,10 @@ MTAUSER?= mailnull
|
||||
do-install:
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/delete_spam.py ${STAGEDIR}${PREFIX}/bin/delete_spam
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/email2trac.py ${STAGEDIR}${PREFIX}/bin/email2trac
|
||||
@${INSTALL} ${COPY} ${STRIP} ${_BINOWNGRP} -m 4111 \
|
||||
@${INSTALL_PROGRAM} \
|
||||
${WRKSRC}/run_email2trac ${STAGEDIR}${PREFIX}/bin
|
||||
@${INSTALL_DATA} ${WRKSRC}/email2trac.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/email2trac.conf.sample
|
||||
@if [ ! -e ${STAGEDIR}${PREFIX}/etc/email2trac.conf ]; then \
|
||||
${CP} -p ${STAGEDIR}${PREFIX}/etc/email2trac.conf.sample \
|
||||
${STAGEDIR}${PREFIX}/etc/email2trac.conf ; \
|
||||
fi
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for file in ${PORTDOCS}
|
||||
|
@ -1,6 +1,4 @@
|
||||
bin/delete_spam
|
||||
bin/email2trac
|
||||
bin/run_email2trac
|
||||
@unexec if cmp -s %D/etc/email2trac.conf %D/etc/email2trac.conf.sample; then rm -f %D/etc/email2trac.conf; fi
|
||||
etc/email2trac.conf.sample
|
||||
@exec if [ ! -e %D/etc/email2trac.conf ]; then cp %D/etc/email2trac.conf.sample %D/etc/email2trac.conf; fi
|
||||
@(,,4111) bin/run_email2trac
|
||||
@sample etc/email2trac.conf.sample
|
||||
|
Loading…
Reference in New Issue
Block a user