Date: Tue, 8 Aug 2006 21:56:44 +0200 (CEST) From: Gabor Kovesdan <gkovesdan@t-hosting.hu> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Gabor Kovesdan <gkovesdan@t-hosting.hu> Subject: ports/101670: [maintainer update] audio/linux-shoutcast Message-ID: <20060808195644.9C38D289D52@catv-50635cb6.catv.broadband.hu> Resent-Message-ID: <200608082000.k78K0WNS015046@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101670 >Category: ports >Synopsis: [maintainer update] audio/linux-shoutcast >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Aug 08 20:00:31 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gabor Kovesdan >Release: FreeBSD 6.1-STABLE i386 >Organization: n/a >Environment: System: FreeBSD spitfire 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jul 29 18:31:18 CEST 2006 gabor@spitfire:/usr/src/sys/i386/compile/SPITFIRE i386 >Description: - Respect DESTDIR - Hide some command invocations in port Makefile >How-To-Repeat: >Fix: --- audio-linux-shoutcast.diff begins here --- Index: Makefile =================================================================== RCS file: /usr/cvs/ports/audio/linux-shoutcast/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 10 Jul 2006 20:49:22 -0000 1.2 +++ Makefile 8 Aug 2006 19:52:01 -0000 @@ -26,7 +26,7 @@ WRKSRC= ${WRKDIR} 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|' \ @@ -36,19 +36,19 @@ ${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 - ${BRANDELF} -t Linux ${PREFIX}/sbin/sc_serv + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${BRANDELF} -t Linux ${TARGETDIR}/sbin/sc_serv .include <bsd.port.mk> Index: pkg-install =================================================================== RCS file: /usr/cvs/ports/audio/linux-shoutcast/pkg-install,v retrieving revision 1.1 diff -u -r1.1 pkg-install --- pkg-install 5 Jun 2006 10:39:01 -0000 1.1 +++ pkg-install 8 Aug 2006 19:51:06 -0000 @@ -8,7 +8,12 @@ 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 --- audio-linux-shoutcast.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060808195644.9C38D289D52>