aboutsummaryrefslogtreecommitdiffstats
path: root/mail/relay-ctrl
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-01-31 11:50:15 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-01-31 11:50:15 +0800
commit1691c2ffc1d37532ad3fac3a8a34ed6e5dde7137 (patch)
tree3608f392aee31c304dc73f19a2c0043d7b606990 /mail/relay-ctrl
parent6e3bd0bdbf373e7ffed8dfb03e082ff0d3305293 (diff)
downloadfreebsd-ports-gnome-1691c2ffc1d37532ad3fac3a8a34ed6e5dde7137.tar.gz
freebsd-ports-gnome-1691c2ffc1d37532ad3fac3a8a34ed6e5dde7137.tar.zst
freebsd-ports-gnome-1691c2ffc1d37532ad3fac3a8a34ed6e5dde7137.zip
- use $SUB_FILES to dynamically adjust pkg-message & install
PR: ports/142805 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Diffstat (limited to 'mail/relay-ctrl')
-rw-r--r--mail/relay-ctrl/Makefile11
-rw-r--r--mail/relay-ctrl/files/pkg-install.in (renamed from mail/relay-ctrl/pkg-install.in)0
-rw-r--r--mail/relay-ctrl/files/pkg-message.in (renamed from mail/relay-ctrl/pkg-message)0
-rw-r--r--mail/relay-ctrl/pkg-plist6
4 files changed, 6 insertions, 11 deletions
diff --git a/mail/relay-ctrl/Makefile b/mail/relay-ctrl/Makefile
index 4f12bb319f19..60c727f356fd 100644
--- a/mail/relay-ctrl/Makefile
+++ b/mail/relay-ctrl/Makefile
@@ -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>
diff --git a/mail/relay-ctrl/pkg-install.in b/mail/relay-ctrl/files/pkg-install.in
index 69884c7829fb..69884c7829fb 100644
--- a/mail/relay-ctrl/pkg-install.in
+++ b/mail/relay-ctrl/files/pkg-install.in
diff --git a/mail/relay-ctrl/pkg-message b/mail/relay-ctrl/files/pkg-message.in
index 08a5eed43159..08a5eed43159 100644
--- a/mail/relay-ctrl/pkg-message
+++ b/mail/relay-ctrl/files/pkg-message.in
diff --git a/mail/relay-ctrl/pkg-plist b/mail/relay-ctrl/pkg-plist
index 9e10b7036351..2b883e0e6566 100644
--- a/mail/relay-ctrl/pkg-plist
+++ b/mail/relay-ctrl/pkg-plist
@@ -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