aboutsummaryrefslogtreecommitdiff
path: root/audio/shoutcast/Makefile
blob: 3474c9fed7503a27b52e1838c4bcb9237c32e85f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Ports collection Makefile for:	shoutcast
# Date created:				09 Oct 2005
# Whom:					Gabor Kovesdan
#
# $FreeBSD$

PORTNAME=	shoutcast
PORTVERSION=	1.9.8
CATEGORIES=	audio net
MASTER_SITES=	http://yp.shoutcast.com/downloads/sc1-9-8/
DISTNAME=	sc_serv_${PORTVERSION}_FreeBSD5

MAINTAINER=	steinex@nognu.de
COMMENT=	Nullsoft's streaming audio server (binary port)

LIB_DEPENDS=	c.5:${PORTSDIR}/misc/compat5x

IA32_BINARY_PORT=	YES
NO_BUILD=	YES
RESTRICTED=	Redistribution of the software is not allowed

CONFLICTS=	linux-shoutcast-[0-9]*

USE_RC_SUBR=	shoutcast.sh
PORTDOCS=	README.TXT
WRKSRC=		${WRKDIR}

post-patch:
	@${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|' \
		-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

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
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
.endif

post-install:
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>