mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Respect DESTDIR
- Hide some command invocations in port Makefile PR: 101669 Submitted by: gabor (maintainer)
This commit is contained in:
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
|
@ -37,7 +37,7 @@ BROKEN= unsupported FreeBSD version
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
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_serv.log|=/var/log/sc_serv.log|' \
|
||||||
-e 's|=sc_w3c.log|=/var/log/sc_w3c.log|' \
|
-e 's|=sc_w3c.log|=/var/log/sc_w3c.log|' \
|
||||||
-e 's|ScreenLog=1|ScreenLog=0|' \
|
-e 's|ScreenLog=1|ScreenLog=0|' \
|
||||||
|
@ -47,17 +47,17 @@ post-patch:
|
||||||
${WRKSRC}/sc_serv.conf
|
${WRKSRC}/sc_serv.conf
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${PREFIX}/sbin
|
@${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${TARGETDIR}/sbin
|
||||||
${MKDIR} ${PREFIX}/etc/shoutcast
|
@${MKDIR} ${TARGETDIR}/etc/shoutcast
|
||||||
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf.sample
|
@${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf.sample
|
||||||
@[ -f ${PREFIX}/etc/shoutcast/sc_serv.conf ] || \
|
@[ -f ${TARGETDIR}/etc/shoutcast/sc_serv.conf ] || \
|
||||||
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${PREFIX}/etc/shoutcast/sc_serv.conf
|
${INSTALL_DATA} ${WRKSRC}/sc_serv.conf ${TARGETDIR}/etc/shoutcast/sc_serv.conf
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -8,7 +8,12 @@ SC_GROUP=shoutcast
|
||||||
SC_USER=shoutcast
|
SC_USER=shoutcast
|
||||||
SC_SHELL=/bin/sh
|
SC_SHELL=/bin/sh
|
||||||
SC_HOME=/nonexistent
|
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
|
if ! ${PW} show group ${SC_GROUP} -q >/dev/null; then
|
||||||
gid=210
|
gid=210
|
||||||
|
|
Loading…
Add table
Reference in a new issue