summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-05-29 23:50:24 +0000
committersteve <steve@FreeBSD.org>2000-05-29 23:50:24 +0000
commit8c14693db5de6f704485c6056ed0692cfe346622 (patch)
tree0676294902173492f7b1dabca9aa4a6811b2f263 /misc
parent979148830fcf599d08746b522aebf0ed874eb007 (diff)
downloadFreeBSD-ports-8c14693db5de6f704485c6056ed0692cfe346622.zip
FreeBSD-ports-8c14693db5de6f704485c6056ed0692cfe346622.tar.gz
Provide a cleaner way of installing files in the do-install target.
PR: 16718 Submitted by: Karl Dietz <Karl.Dietz@frankfurt.netsurf.de>
Diffstat (limited to 'misc')
-rw-r--r--misc/proxyper/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/misc/proxyper/Makefile b/misc/proxyper/Makefile
index dbbe348..59799cf 100644
--- a/misc/proxyper/Makefile
+++ b/misc/proxyper/Makefile
@@ -32,21 +32,22 @@ LIBDIR= ${PREFIX}/etc/rc.d/
PROXYUID= nobody
PROXYGID= daemon
+SHAREOWN= ${PROXYUID}
+SHAREGRP= ${PROXYGID}
+SHAREMODE= 644
+
do-install:
if [ ! -d ${BINDIR} ]; then \
${MKDIR} ${BINDIR}; \
fi
- ${INSTALL} -c -m 711 -o ${PROXYUID} -g ${PROXYGID} ${WRKSRC}/proxyper ${BINDIR}
${SED} s#CHANGETHIS#${BINDIR}# < ${FILESDIR}/proxyper.sh > ${WRKSRC}/proxyper.sh
- ${INSTALL} -c -m 711 -o ${PROXYUID} -g ${PROXYGID} ${WRKSRC}/proxyper.sh ${BINDIR}
- ${INSTALL} -c -m 644 -o ${PROXYUID} -g ${PROXYGID} ${WRKSRC}/proxyper.ini ${BINDIR}
- ${INSTALL} -c -m 644 -o ${PROXYUID} -g ${PROXYGID} ${WRKSRC}/ChangeLog.txt ${BINDIR}
- ${INSTALL} -c -m 644 -o ${PROXYUID} -g ${PROXYGID} ${WRKSRC}/Readme.txt ${BINDIR}
- ${INSTALL} -c -m 644 -o ${PROXYUID} -g ${PROXYGID} ${WRKSRC}/Readme.txt ${BINDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/proxyper ${BINDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/proxyper.sh ${BINDIR}
+ ${INSTALL_DATA} ${WRKSRC}/proxyper.ini ${BINDIR}
+ ${INSTALL_MAN} ${WRKSRC}/ChangeLog.txt ${BINDIR}
+ ${INSTALL_MAN} ${WRKSRC}/Readme.txt ${BINDIR}
${CHOWN} ${PROXYUID}:${PROXYGID} ${BINDIR}
${CHMOD} 755 ${BINDIR}
- if [ ! -f ${LIBDIR}/proxyper.sh ]; then \
- ${LN} -s ${BINDIR}proxyper.sh ${LIBDIR}proxyper.sh; \
- fi
+ ${LN} -sf ${BINDIR}proxyper.sh ${LIBDIR}proxyper.sh
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud