- use $SUB_FILES to dynamically adjust pkg-message & install
PR: ports/142805 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
This commit is contained in:
parent
706d3cf77d
commit
7c8f5ca74b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248930
4 changed files with 6 additions and 11 deletions
|
@ -25,9 +25,9 @@ MAN8= relay-ctrl-age.8 relay-ctrl-allow.8 relay-ctrl-check.8 \
|
|||
relay-ctrl-send.8 relay-ctrl-udp.8
|
||||
DOCS= ANNOUNCEMENT NEWS README TODO packet.html
|
||||
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
PKGDEINSTALL= ${PKGINSTALL}
|
||||
SUB_FILES= pkg-message pkg-install
|
||||
SUB_LIST= EXPIRY=${RELAY_CTRL_EXPIRY} FIXUP=${RELAY_CTRL_RELAYCLIENT}
|
||||
|
||||
do-configure:
|
||||
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
||||
|
@ -41,12 +41,7 @@ do-install:
|
|||
@${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
||||
.endif
|
||||
@${SED} -e 's,%%EXPIRY%%,${RELAY_CTRL_EXPIRY},' \
|
||||
-e 's,%%FIXUP%%,${RELAY_CTRL_RELAYCLIENT},' \
|
||||
${PKGDIR}/pkg-install.in > ${PKGINSTALL}
|
||||
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
@${SED} -e 's,%%PREFIX%%,${PREFIX},g; s,%%LOCALBASE%%,${LOCALBASE},g' \
|
||||
${PKGDIR}/pkg-message > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -5,9 +5,9 @@ bin/relay-ctrl-chdir
|
|||
bin/relay-ctrl-check
|
||||
bin/relay-ctrl-send
|
||||
bin/relay-ctrl-udp
|
||||
etc/relay-ctrl/RELAY_CTRL_DIR
|
||||
etc/relay-ctrl/RELAY_CTRL_EXPIRY
|
||||
@dirrmtry etc/relay-ctrl
|
||||
%%ETCDIR%%/RELAY_CTRL_DIR
|
||||
%%ETCDIR%%/RELAY_CTRL_EXPIRY
|
||||
@dirrmtry %%ETCDIR%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ANNOUNCEMENT
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
|
|
Loading…
Reference in a new issue