mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- use $SUB_FILES to dynamically adjust pkg-message + other changes
PR: ports/142804 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Approved by: maintainer timeout (bc979@lafn.org; > 2 weeks)
This commit is contained in:
parent
6ea5d2cfbb
commit
12bddd24fd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248925
3 changed files with 15 additions and 12 deletions
|
@ -33,12 +33,14 @@ PLIST_SUB= EPOPPASSD=${EPOPPASSD} \
|
||||||
|
|
||||||
MAN8= qpopper.8
|
MAN8= qpopper.8
|
||||||
|
|
||||||
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
# internal configuration
|
# internal configuration
|
||||||
POP_USER= pop
|
POP_USER= pop
|
||||||
POP_GROUP= daemon
|
POP_GROUP= daemon
|
||||||
POP_MODE_DIR= 0711
|
POP_MODE_DIR= 0711
|
||||||
POP_MODE_CONF= 0444
|
POP_MODE_CONF= 0444
|
||||||
POPUSERS_FILE= ${PREFIX}/etc/qpopper/popusers
|
POPUSERS_FILE= ${ETCDIR}/popusers
|
||||||
SAMPLE_EXT= .sample
|
SAMPLE_EXT= .sample
|
||||||
#
|
#
|
||||||
PKGDEINSTALL= ${PKGINSTALL}
|
PKGDEINSTALL= ${PKGINSTALL}
|
||||||
|
@ -57,7 +59,7 @@ OPTIONS= APOP_ONLY "build with APOP authentication only" off \
|
||||||
STANDALONE_MODE "build qpopper to be run without inetd" off \
|
STANDALONE_MODE "build qpopper to be run without inetd" off \
|
||||||
U_OPTION "include support for user .qpopper-options" on
|
U_OPTION "include support for user .qpopper-options" on
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if !defined(WITHOUT_IPV6)
|
.if !defined(WITHOUT_IPV6)
|
||||||
PATCH_SITES= http://www.imasy.or.jp/~ume/ipv6/
|
PATCH_SITES= http://www.imasy.or.jp/~ume/ipv6/
|
||||||
|
@ -68,7 +70,7 @@ PATCH_DIST_STRIP= -p1
|
||||||
.if defined(WITHOUT_APOP)
|
.if defined(WITHOUT_APOP)
|
||||||
QPOPAUTH= "@comment "
|
QPOPAUTH= "@comment "
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+= --enable-apop=${PREFIX}/etc/qpopper/pop.auth \
|
CONFIGURE_ARGS+= --enable-apop=${ETCDIR}/pop.auth \
|
||||||
--with-apopuid=pop
|
--with-apopuid=pop
|
||||||
MAN8+= qpopauth.8
|
MAN8+= qpopauth.8
|
||||||
QPOPAUTH= ""
|
QPOPAUTH= ""
|
||||||
|
@ -131,6 +133,8 @@ CONFIGURE_ARGS+= --enable-standalone
|
||||||
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${RM} -f ${WRKSRC}/popper/md5.h
|
@${RM} -f ${WRKSRC}/popper/md5.h
|
||||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/man/*
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/man/*
|
||||||
|
@ -165,14 +169,14 @@ do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/password/poppassd ${PREFIX}/libexec/qpoppassd
|
@${INSTALL_PROGRAM} ${WRKSRC}/password/poppassd ${PREFIX}/libexec/qpoppassd
|
||||||
.endif
|
.endif
|
||||||
@${INSTALL} -d -o ${POP_USER} -g ${POP_GROUP} -m ${POP_MODE_DIR} \
|
@${INSTALL} -d -o ${POP_USER} -g ${POP_GROUP} -m ${POP_MODE_DIR} \
|
||||||
${PREFIX}/etc/${PORTNAME}
|
${ETCDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/GUIDE.pdf ${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/GUIDE.pdf ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install: install-conf-file
|
post-install: install-conf-file
|
||||||
@${SED} -e "s:/usr/local:${PREFIX}:g" ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
# based on original from op port, written by Cyrille Lefevre
|
# based on original from op port, written by Cyrille Lefevre
|
||||||
# <clefevre@citeweb.net>.
|
# <clefevre@citeweb.net>.
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
****************************************************************************
|
****************************************************************************
|
||||||
To enable the qpopper-daemon, add the following line to your /etc/inetd.conf:
|
To enable the qpopper-daemon, add the following line to your /etc/inetd.conf:
|
||||||
|
|
||||||
pop3 stream tcp nowait root /usr/local/libexec/qpopper qpopper -s
|
pop3 stream tcp nowait root %%PREFIX%%/libexec/qpopper qpopper -s
|
||||||
****************************************************************************
|
****************************************************************************
|
|
@ -3,10 +3,9 @@
|
||||||
%%QPOPAUTH%%@exec ln -sf %D/bin/qpopauth %D/bin/qapopauth
|
%%QPOPAUTH%%@exec ln -sf %D/bin/qpopauth %D/bin/qapopauth
|
||||||
libexec/qpopper
|
libexec/qpopper
|
||||||
%%EPOPPASSD%%libexec/qpoppassd
|
%%EPOPPASSD%%libexec/qpoppassd
|
||||||
@exec mkdir -p %D/etc/qpopper && chown %%POP_USER%%:%%POP_GROUP%% %D/etc/qpopper && chmod %%POP_MODE_DIR%% %D/etc/qpopper
|
@exec mkdir -p %%ETCDIR%% && chown %%POP_USER%%:%%POP_GROUP%% %%ETCDIR%% && chmod %%POP_MODE_DIR%% %%ETCDIR%%
|
||||||
@mode %%POP_MODE_CONF%%
|
%%ETCDIR%%/popusers.sample
|
||||||
etc/qpopper/popusers.sample
|
|
||||||
etc/qpopper.config.sample
|
etc/qpopper.config.sample
|
||||||
%%PORTDOCS%%share/doc/qpopper/GUIDE.pdf
|
%%PORTDOCS%%%%DOCSDIR%%/GUIDE.pdf
|
||||||
%%PORTDOCS%%@dirrm share/doc/qpopper
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
@unexec rmdir %D/etc/qpopper 2>/dev/null || echo "If you are permanently removing this port, you should do a ``rm -rf ${PKG_PREFIX}/etc/qpopper`` to remove any configuration files and logs left." | fmt
|
@dirrmtry %%ETCDIR%% || echo "If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files and logs left." | fmt
|
||||||
|
|
Loading…
Add table
Reference in a new issue