aboutsummaryrefslogtreecommitdiff
path: root/misc/upclient
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-04-01 13:23:43 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-04-01 13:23:43 +0000
commit68deee40d201c70e2104ab342df7ef39181b8a16 (patch)
tree396479d1174deac8acb5bf1cb2eba4c7fb3cbf86 /misc/upclient
parent82bd7667e5e9ee074828ef113631506fd2057f32 (diff)
downloadports-68deee40d201c70e2104ab342df7ef39181b8a16.tar.gz
ports-68deee40d201c70e2104ab342df7ef39181b8a16.zip
Use SUB_FILES for pkg-message
Notes
Notes: svn path=/head/; revision=158554
Diffstat (limited to 'misc/upclient')
-rw-r--r--misc/upclient/Makefile18
-rw-r--r--misc/upclient/files/pkg-message.in (renamed from misc/upclient/pkg-message)0
-rw-r--r--misc/upclient/files/upclient.sh.in (renamed from misc/upclient/files/upclient.sh)0
3 files changed, 3 insertions, 15 deletions
diff --git a/misc/upclient/Makefile b/misc/upclient/Makefile
index 541ebeb011a8..94672d3a4f29 100644
--- a/misc/upclient/Makefile
+++ b/misc/upclient/Makefile
@@ -26,8 +26,8 @@ USE_RC_SUBR= yes
ALL_TARGET= bsd
BUILD_WRKSRC= ${WRKSRC}/src
-MSG_FILE= ${PKGDIR}/pkg-message
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message upclient.sh
MAN8= upclient.8
@@ -35,8 +35,6 @@ MAN8= upclient.8
#
REINPLACE_SUB= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
-RCSCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-PKGMESSAGE_SUB= PREFIX=${PREFIX}
DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
DOC_FILES+= doc/UptimesProtocol5
@@ -55,21 +53,11 @@ rename-doc:
# Post-patch
#
-post-patch: patch-inplace patch-startup patch-pkgmessage
-
-patch-inplace:
+post-patch:
@${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
${WRKSRC}/src/Makefile
-patch-startup:
- @${SED} ${RCSCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/upclient.sh > ${WRKDIR}/upclient.sh
-
-patch-pkgmessage:
- @${SED} ${PKGMESSAGE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${MSG_FILE} > ${PKGMESSAGE}
-
# Install
#
diff --git a/misc/upclient/pkg-message b/misc/upclient/files/pkg-message.in
index f833be75f615..f833be75f615 100644
--- a/misc/upclient/pkg-message
+++ b/misc/upclient/files/pkg-message.in
diff --git a/misc/upclient/files/upclient.sh b/misc/upclient/files/upclient.sh.in
index 07de990f6193..07de990f6193 100644
--- a/misc/upclient/files/upclient.sh
+++ b/misc/upclient/files/upclient.sh.in