2005-10-13 03:01:12 +00:00
|
|
|
# Ports collection Makefile for: shoutcast
|
|
|
|
# Date created: 09 Oct 2005
|
|
|
|
# Whom: Gabor Kovesdan
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= shoutcast
|
2006-07-10 20:05:21 +00:00
|
|
|
PORTVERSION= 1.9.7
|
2006-07-18 13:00:25 +00:00
|
|
|
PORTREVISION= 1
|
2005-10-13 03:01:12 +00:00
|
|
|
CATEGORIES= audio net
|
2006-07-10 20:05:21 +00:00
|
|
|
MASTER_SITES= http://www.shoutcast.com/downloads/sc1-9-7/
|
2007-02-17 20:53:56 +00:00
|
|
|
DISTNAME= ${PORTNAME}-1-9-7-freebsd5-elf
|
2005-10-13 03:01:12 +00:00
|
|
|
|
2006-12-08 13:46:35 +00:00
|
|
|
MAINTAINER= gabor@FreeBSD.org
|
2005-10-13 03:01:12 +00:00
|
|
|
COMMENT= Nullsoft's streaming audio server (binary port)
|
|
|
|
|
2006-07-18 13:00:25 +00:00
|
|
|
IA32_BINARY_PORT= YES
|
2005-10-13 03:01:12 +00:00
|
|
|
NO_BUILD= YES
|
2006-06-05 10:35:35 +00:00
|
|
|
RESTRICTED= Redistribution of the software is not allowed
|
|
|
|
|
|
|
|
CONFLICTS= linux-shoutcast-[0-9]*
|
2005-10-13 03:01:12 +00:00
|
|
|
|
2005-10-30 20:35:43 +00:00
|
|
|
USE_RC_SUBR= shoutcast.sh
|
2005-10-13 03:01:12 +00:00
|
|
|
PORTDOCS= README.TXT
|
2006-07-10 20:05:21 +00:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-11-18 16:20:59 +00:00
|
|
|
|
2005-10-13 03:01:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 600000
|
|
|
|
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2006-08-12 13:01:25 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \
|
2005-11-18 16:20:59 +00:00
|
|
|
-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|' \
|
|
|
|
-e 's|RealTime=1|RealTime=0|' \
|
|
|
|
-e 's|=sc_serv.ban|=${PREFIX}/etc/shoutcast/sc_serv.ban|' \
|
|
|
|
-e 's|=sc_serv.rip|=${PREFIX}/etc/shoutcast/sc_serv.rip|' \
|
|
|
|
${WRKSRC}/sc_serv.conf
|
2005-10-13 03:01:12 +00:00
|
|
|
|
|
|
|
do-install:
|
2007-03-31 19:56:19 +00:00
|
|
|
@${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
|
2005-10-13 03:01:12 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-08-12 13:01:25 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
|
2005-10-13 03:01:12 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2006-08-12 13:01:25 +00:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2005-10-13 03:01:12 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|