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
53
54
55
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.28 2004/11/27 20:45:04 wiz Exp $
#
DISTNAME= icecast-2.1.0
CATEGORIES= audio
MASTER_SITES= http://svn.xiph.org/releases/icecast/
MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://www.icecast.org/
COMMENT= Live streaming audio server
USE_BUILDLINK3= yes
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
BUILD_DEFS+= ICECAST_CHROOTDIR
PKG_SYSCONFSUBDIR= icecast
RCD_SCRIPTS= icecast
ICECAST_LOGDIR?= ${ICECAST_CHROOTDIR}/log
ICECAST_USER?= icecast
ICECAST_GROUP?= icecast
PKG_GROUPS= ${ICECAST_GROUP}
PKG_USERS= ${ICECAST_USER}:${ICECAST_GROUP}::Icecast2\\ user
EGDIR= ${PREFIX}/share/examples/icecast
CONF_FILES= ${EGDIR}/icecast.xml ${PKG_SYSCONFDIR}/icecast.xml
OWN_DIRS_PERMS= ${ICECAST_CHROOTDIR} ${ICECAST_USER} ${ICECAST_GROUP} 770
OWN_DIRS_PERMS+= ${ICECAST_LOGDIR} ${ICECAST_USER} ${ICECAST_GROUP} 770
post-extract:
@${MV} ${WRKSRC}/conf/icecast.xml.in ${WRKSRC}/conf/icecast.fixme
post-install:
@( \
${SED} \
-e "s,@BASEDIR@,${ICECAST_CHROOTDIR},g" \
-e "s,@LOGDIR@,log/,g" \
-e "s,@WEBROOT@,${PREFIX}/share/icecast/web,g" \
-e "s,@ADMINROOT@,${PREFIX}/share/icecast/admin,g" \
-e "s,@PIDDIR@,${ICECAST_CHROOTDIR},g" \
-e "s,@ICECAST_USER@,${ICECAST_USER},g" \
-e "s,@ICECAST_GROUP@,${ICECAST_GROUP},g" \
${WRKSRC}/conf/icecast.fixme > ${WRKSRC}/conf/icecast.xml; \
${INSTALL_DATA_DIR} ${EGDIR}; \
${INSTALL_DATA} ${WRKSRC}/conf/icecast.xml ${EGDIR} \
)
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|