Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  8 Aug 2006 21:54:53 +0200 (CEST)
From:      Gabor Kovesdan <gkovesdan@t-hosting.hu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gabor Kovesdan <gkovesdan@t-hosting.hu>
Subject:   ports/101669: [maintainer update] audio/shoutcast
Message-ID:  <20060808195453.B59DB289D52@catv-50635cb6.catv.broadband.hu>
Resent-Message-ID: <200608082000.k78K0Veh015021@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101669
>Category:       ports
>Synopsis:       [maintainer update] audio/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:30 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-shoutcast.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/audio/shoutcast/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	18 Jul 2006 13:00:25 -0000	1.8
+++ Makefile	8 Aug 2006 19:38:02 -0000
@@ -37,7 +37,7 @@
 .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 @@
 		${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>
Index: pkg-install
===================================================================
RCS file: /usr/cvs/ports/audio/shoutcast/pkg-install,v
retrieving revision 1.2
diff -u -r1.2 pkg-install
--- pkg-install	5 Jun 2006 10:35:35 -0000	1.2
+++ pkg-install	8 Aug 2006 19:34:19 -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-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?20060808195453.B59DB289D52>