summaryrefslogtreecommitdiff
path: root/audio/shoutcast
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2014-11-25 17:09:09 +0000
committerSean Bruno <sbruno@FreeBSD.org>2014-11-25 17:09:09 +0000
commite902becc5c32cdc488f5eb322b91977c18e07fbd (patch)
treead5fa5f73d03b0bc2e701d8759a158406061e265 /audio/shoutcast
parentUpdate to 7.0.57 release. (diff)
Cleanup Tabs
Maintainer address change to @FreeBSD.org Add shells/bash to runtime components Add shebang fix for bash scripts Add setup.sh to installed files Review: D1202 Submitted by: sunpoet Approved by: bapt (mentor)
Notes
Notes: svn path=/head/; revision=373418
Diffstat (limited to 'audio/shoutcast')
-rw-r--r--audio/shoutcast/Makefile17
-rw-r--r--audio/shoutcast/distinfo2
2 files changed, 12 insertions, 7 deletions
diff --git a/audio/shoutcast/Makefile b/audio/shoutcast/Makefile
index d777a48c51f2..6018202db94f 100644
--- a/audio/shoutcast/Makefile
+++ b/audio/shoutcast/Makefile
@@ -3,18 +3,22 @@
PORTNAME= shoutcast
PORTVERSION= 2.4.2.167
+PORTREVISION= 1
CATEGORIES= audio net
MASTER_SITES= http://download.nullsoft.com/shoutcast/tools/
DISTNAME= sc_serv2_bsd-latest
-MAINTAINER= sbruno@freebsd.org
+MAINTAINER= sbruno@FreeBSD.org
COMMENT= SHOUTcast Distributed Network Audio Server
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+
RESTRICTED= redistribution of software is not permitted
IA32_BINARY_PORT= yes
-USES= dos2unix
+USES= dos2unix shebangfix
DOS2UNIX_REGEX= .*\.(conf|css|html|js|txt|xml)
+SHEBANG_FILES= builder.sh setup.sh
USE_RC_SUBR= shoutcast
@@ -22,7 +26,7 @@ CONFLICTS= linux-shoutcast-[0-9]*
NO_WRKSUBDIR= yes
NO_BUILD= yes
-OPTIONS_DEFAULT= CONFIG_BUILDER EXAMPLES
+OPTIONS_DEFAULT= CONFIG_BUILDER EXAMPLES
OPTIONS_DEFINE= CONFIG_BUILDER DOCS EXAMPLES
CONFIG_BUILDER_DESC= SHOUTcast Configuration Builder
EXAMPLE_DESC= SHOUTcast Server Example Configuration Files
@@ -51,9 +55,9 @@ GROUPS= ${SHOUTCASTGROUP}
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000010
.if ${ARCH} == "i386"
-RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
+RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
.else
-RUN_DEPENDS+= ${LOCALBASE}/lib32/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
+RUN_DEPENDS+= ${LOCALBASE}/lib32/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
.endif
.endif
@@ -73,7 +77,7 @@ post-patch:
@${REINPLACE_CMD} -e 's#<[^>]*>Windows<[^>]*>##g' \
-e 's#<[^>]*>Macintosh<[^>]*>##g' ${WRKSRC}/config_builder/config_builder.html
@${REINPLACE_CMD} -e 's#\(LogFile="\)\([^"/]*\)#\1${SHOUTCASTLDIR}/\2#g' \
- -e 's#\(ConfFile="\)\([^"/]*\)#\1${STAGEDIR}${ETCDIR}/\2#g' \
+ -e 's#\(ConfFile="\)\([^"/]*\)#\1${ETCDIR}/\2#g' \
-e 's#\(BanFile="\)\([^"/]*\)#\1${SHOUTCASTDIR}/\2#g' \
-e 's#\(RipFile="\)\([^"/]*\)#\1${SHOUTCASTDIR}/\2#g' ${WRKSRC}/config_builder/config_builder.js
.endif
@@ -81,6 +85,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/builder.sh ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/setup.sh ${STAGEDIR}${PREFIX}/sbin
${MKDIR} ${STAGEDIR}${ETCDIR}
${MKDIR} ${STAGEDIR}${SHOUTCASTLDIR}
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}
diff --git a/audio/shoutcast/distinfo b/audio/shoutcast/distinfo
index f3b506d62ec1..42a0589de888 100644
--- a/audio/shoutcast/distinfo
+++ b/audio/shoutcast/distinfo
@@ -1,2 +1,2 @@
SHA256 (sc_serv2_bsd-latest.tar.gz) = 64fa33496de68c1897c855d5461de7739f0d53e0201694f3094c616443b1acfa
-SIZE (sc_serv2_bsd-lastest.tar.gz) = 3034714
+SIZE (sc_serv2_bsd-latest.tar.gz) = 3034714