aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/rancid
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-12-11 20:02:06 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-12-11 20:02:06 +0000
commitb26a66bd2cf7900f1419a774a3595757887cfe1c (patch)
tree01f387e1b00a8eff88ae0967f77e4d71a5a619da /net-mgmt/rancid
parentf06a84a631d778c196ba353e383b0b6f0381076b (diff)
downloadports-b26a66bd2cf7900f1419a774a3595757887cfe1c.tar.gz
ports-b26a66bd2cf7900f1419a774a3595757887cfe1c.zip
- Modernize pkg-message handling
PR: ports/117487 (inspired by)
Notes
Notes: svn path=/head/; revision=202972
Diffstat (limited to 'net-mgmt/rancid')
-rw-r--r--net-mgmt/rancid/Makefile3
-rw-r--r--net-mgmt/rancid/files/pkg-message.in11
-rw-r--r--net-mgmt/rancid/pkg-message11
3 files changed, 12 insertions, 13 deletions
diff --git a/net-mgmt/rancid/Makefile b/net-mgmt/rancid/Makefile
index 57b45e81fe4c..3d61fcad44e1 100644
--- a/net-mgmt/rancid/Makefile
+++ b/net-mgmt/rancid/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= expect:${PORTSDIR}/lang/expect \
${SITE_PERL}/LockFile/Simple.pm:${PORTSDIR}/devel/p5-LockFile-Simple
USE_PERL5= yes
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= \
@@ -51,7 +51,6 @@ pre-everything::
post-install:
${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-cvs ${PREFIX}/bin
${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-run ${PREFIX}/bin
- @ ${SED} -e "s:%%INSTDIR%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
.if !defined(BATCH)
@ ${ECHO}
@ ${CAT} ${PKGMESSAGE}
diff --git a/net-mgmt/rancid/files/pkg-message.in b/net-mgmt/rancid/files/pkg-message.in
new file mode 100644
index 000000000000..c1f59582807f
--- /dev/null
+++ b/net-mgmt/rancid/files/pkg-message.in
@@ -0,0 +1,11 @@
+For further configuration information please look at
+%%PREFIX%%/share/rancid/README.
+
+If you are upgrading from the previous version of rancid look at
+%%PREFIX%%/share/rancid/UPGRADING.
+
+If you would like to set up Rancid to be browseable from Web,
+you need to install devel/cvsweb or devel/viewvc.
+
+For rancid looking-glass copy the actual CGIs (located at
+%%PREFIX%%/libexec/rancid/{lg.cgi lgform.cgi}) to your cgi-bin.
diff --git a/net-mgmt/rancid/pkg-message b/net-mgmt/rancid/pkg-message
deleted file mode 100644
index 36e5f2e3079f..000000000000
--- a/net-mgmt/rancid/pkg-message
+++ /dev/null
@@ -1,11 +0,0 @@
-For further configuration information please look at
-%%INSTDIR%%/share/rancid/README.
-
-If you are upgrading from the previous version of rancid look at
-%%INSTDIR%%/share/rancid/UPGRADING.
-
-If you would like to set up Rancid to be browseable from Web,
-you need to install devel/cvsweb or devel/viewvc.
-
-For rancid looking-glass copy the actual CGIs (located at
-%%INSTDIR%%/libexec/rancid/{lg.cgi lgform.cgi}) to your cgi-bin.