summaryrefslogtreecommitdiffstats
path: root/misc/proxyper
diff options
context:
space:
mode:
authordbaker <dbaker@FreeBSD.org>2000-06-22 19:24:04 +0000
committerdbaker <dbaker@FreeBSD.org>2000-06-22 19:24:04 +0000
commit364ef9a86715231c0d872953807153295984ec28 (patch)
tree586e1ba453b11297f04b5fd3e7afc3b0da4dbf93 /misc/proxyper
parentb96e46a54d1e66e7cf63c0c3b58c0ff4427f1b6e (diff)
downloadFreeBSD-ports-364ef9a86715231c0d872953807153295984ec28.zip
FreeBSD-ports-364ef9a86715231c0d872953807153295984ec28.tar.gz
1. this patch moves the of the shell script (proxyper.sh) into the build
stage of the port. PRO: you can examine / tweak it before installing 2. the symlink to the script is not stored as link in the package but it is created by pkg_add (see PLIST) PRO: you can build with PREFIX=foo and install with PREFIX=bar Submitted by: Karl Dietz <kd@frankfurt.netsurf.de>
Diffstat (limited to 'misc/proxyper')
-rw-r--r--misc/proxyper/Makefile4
-rw-r--r--misc/proxyper/pkg-plist3
2 files changed, 5 insertions, 2 deletions
diff --git a/misc/proxyper/Makefile b/misc/proxyper/Makefile
index 59799cf..b99aa68 100644
--- a/misc/proxyper/Makefile
+++ b/misc/proxyper/Makefile
@@ -36,11 +36,13 @@ SHAREOWN= ${PROXYUID}
SHAREGRP= ${PROXYGID}
SHAREMODE= 644
+do-build:
+ ${SED} s#CHANGETHIS#${BINDIR}# < ${FILESDIR}/proxyper.sh > ${WRKSRC}/proxyper.sh
+
do-install:
if [ ! -d ${BINDIR} ]; then \
${MKDIR} ${BINDIR}; \
fi
- ${SED} s#CHANGETHIS#${BINDIR}# < ${FILESDIR}/proxyper.sh > ${WRKSRC}/proxyper.sh
${INSTALL_PROGRAM} ${WRKSRC}/proxyper ${BINDIR}
${INSTALL_SCRIPT} ${WRKSRC}/proxyper.sh ${BINDIR}
${INSTALL_DATA} ${WRKSRC}/proxyper.ini ${BINDIR}
diff --git a/misc/proxyper/pkg-plist b/misc/proxyper/pkg-plist
index 331445e..f89ba29 100644
--- a/misc/proxyper/pkg-plist
+++ b/misc/proxyper/pkg-plist
@@ -1,6 +1,7 @@
-etc/rc.d/proxyper.sh
distributed.net/proxy/ChangeLog.txt
distributed.net/proxy/Readme.txt
distributed.net/proxy/proxyper
distributed.net/proxy/proxyper.ini
distributed.net/proxy/proxyper.sh
+@exec ln -sf %D/distributed.net/proxy/proxyper.sh %D/etc/rc.d/proxyper.sh
+@unexec rm %D/etc/rc.d/proxyper.sh
OpenPOWER on IntegriCloud