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>
This commit is contained in:
Daniel Baker 2000-06-22 19:24:04 +00:00
parent 0b91f3fcf6
commit 4cb8bc8378
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29790
2 changed files with 5 additions and 2 deletions

View file

@ -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}

View file

@ -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