1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Provide a cleaner way of installing files in the do-install target.

PR:		16718
Submitted by:	Karl Dietz <Karl.Dietz@frankfurt.netsurf.de>
This commit is contained in:
Steve Price 2000-05-29 23:50:24 +00:00
parent d95c34faac
commit d8c5ff18be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28960

View File

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