aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2006-04-01 21:23:43 +0800
committeredwin <edwin@FreeBSD.org>2006-04-01 21:23:43 +0800
commit6d976bdb11c9cde26c920768e90d872da1acd8ae (patch)
tree6e8d85aec66f38f35c2377a656c8554f0f214186 /misc
parentc23d5b398c1549792bc164eb723af0cb410ffcb8 (diff)
downloadfreebsd-ports-graphics-6d976bdb11c9cde26c920768e90d872da1acd8ae.tar.gz
freebsd-ports-graphics-6d976bdb11c9cde26c920768e90d872da1acd8ae.tar.zst
freebsd-ports-graphics-6d976bdb11c9cde26c920768e90d872da1acd8ae.zip
Use SUB_FILES for pkg-message
Diffstat (limited to 'misc')
-rw-r--r--misc/sword/Makefile2
-rw-r--r--misc/sword/files/pkg-message.in (renamed from misc/sword/pkg-message)2
-rw-r--r--misc/sword15/Makefile2
-rw-r--r--misc/sword15/files/pkg-message.in (renamed from misc/sword15/pkg-message)2
-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
7 files changed, 9 insertions, 17 deletions
diff --git a/misc/sword/Makefile b/misc/sword/Makefile
index 5b7620eb9b5..5eea102cc9e 100644
--- a/misc/sword/Makefile
+++ b/misc/sword/Makefile
@@ -26,6 +26,8 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --without-conf
INSTALLS_SHLIB= yes
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
.if defined(WITHOUT_CURL)
CONFIGURE_ARGS+= --without-curl
diff --git a/misc/sword/pkg-message b/misc/sword/files/pkg-message.in
index 541b0da7b4d..fa3a2c01a95 100644
--- a/misc/sword/pkg-message
+++ b/misc/sword/files/pkg-message.in
@@ -9,7 +9,7 @@ try this.
See `installmgr --help` for details.
2. Download raw zip-archives from
http://www.crosswire.org/sword/modules/
- and unpack them in PREFIX/share/sword.
+ and unpack them in %%PREFIX%%/share/sword.
You probabely want to install a bible-application that uses sword, like
cheatah, bibletime or gnomesword.
diff --git a/misc/sword15/Makefile b/misc/sword15/Makefile
index 5b7620eb9b5..5eea102cc9e 100644
--- a/misc/sword15/Makefile
+++ b/misc/sword15/Makefile
@@ -26,6 +26,8 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --without-conf
INSTALLS_SHLIB= yes
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
.if defined(WITHOUT_CURL)
CONFIGURE_ARGS+= --without-curl
diff --git a/misc/sword15/pkg-message b/misc/sword15/files/pkg-message.in
index 541b0da7b4d..fa3a2c01a95 100644
--- a/misc/sword15/pkg-message
+++ b/misc/sword15/files/pkg-message.in
@@ -9,7 +9,7 @@ try this.
See `installmgr --help` for details.
2. Download raw zip-archives from
http://www.crosswire.org/sword/modules/
- and unpack them in PREFIX/share/sword.
+ and unpack them in %%PREFIX%%/share/sword.
You probabely want to install a bible-application that uses sword, like
cheatah, bibletime or gnomesword.
diff --git a/misc/upclient/Makefile b/misc/upclient/Makefile
index 541ebeb011a..94672d3a4f2 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 f833be75f61..f833be75f61 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 07de990f619..07de990f619 100644
--- a/misc/upclient/files/upclient.sh
+++ b/misc/upclient/files/upclient.sh.in