1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Respect DESTDIR

- Hide some command invocations in port Makefile

PR:		101669
Submitted by:	gabor (maintainer)
This commit is contained in:
Erwin Lansing 2006-08-12 13:01:25 +00:00
parent 16a1d1bab4
commit e0263e215c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170402
2 changed files with 15 additions and 10 deletions

View File

@ -37,7 +37,7 @@ BROKEN= unsupported FreeBSD version
.endif
post-patch:
${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \
@${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \
-e 's|=sc_serv.log|=/var/log/sc_serv.log|' \
-e 's|=sc_w3c.log|=/var/log/sc_w3c.log|' \
-e 's|ScreenLog=1|ScreenLog=0|' \
@ -47,17 +47,17 @@ post-patch:
${WRKSRC}/sc_serv.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${PREFIX}/sbin
${MKDIR} ${PREFIX}/etc/shoutcast
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf.sample
@[ -f ${PREFIX}/etc/shoutcast/sc_serv.conf ] || \
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${TARGETDIR}/sbin
@${MKDIR} ${TARGETDIR}/etc/shoutcast
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf.sample
@[ -f ${TARGETDIR}/etc/shoutcast/sc_serv.conf ] || \
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
.endif
post-install:
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>

View File

@ -8,7 +8,12 @@ SC_GROUP=shoutcast
SC_USER=shoutcast
SC_SHELL=/bin/sh
SC_HOME=/nonexistent
PW=/usr/sbin/pw
if [ -n "${DESTDIR}" ] ; then
PW="/usr/sbin/chroot ${DESTDIR} /usr/sbin/pw"
else
PW="/usr/sbin/pw"
fi
if ! ${PW} show group ${SC_GROUP} -q >/dev/null; then
gid=210