summaryrefslogtreecommitdiff
path: root/audio/ubs/Makefile
blob: 59b35e27f76b24f4fb6f54556319c34644bcd131 (plain)
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
# $NetBSD: Makefile,v 1.5 2005/04/11 21:44:57 tv Exp $
#

DISTNAME=		ubs-0.17
PKGREVISION=	2
CATEGORIES=		audio
MASTER_SITES=		http://aboleo.net/software/ubs/downloads/

MAINTAINER=		tech-pkg@NetBSD.org
HOMEPAGE=		http://aboleo.net/software/ubs/
COMMENT=		Uninterrupted Broadcasting System

GNU_CONFIGURE=		yes
USE_PKGINSTALL=		yes

RCD_SCRIPTS=		ubs
PKG_SYSCONFSUBDIR=	ubs
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}

.include "../../mk/bsd.prefs.mk"

BUILD_DEFS+=		UBS_BASEDIR UBS_USER UBS_GROUP

UBS_BASEDIR?=		/var/spool/ubs
UBS_USER?=		ubs
UBS_GROUP?=		ubs

PKG_GROUPS=             ${UBS_GROUP}
PKG_USERS=              ${UBS_USER}:${UBS_GROUP}
FILES_SUBST+=		PREFIX="${PREFIX}"
FILES_SUBST+=		UBS_USER="${UBS_USER}"
FILES_SUBST+=		UBS_GROUP="${UBS_GROUP}"

OWN_DIRS_PERMS=		${UBS_BASEDIR} ${UBS_USER} ${UBS_GROUP} 0750
OWN_DIRS_PERMS+=	${UBS_BASEDIR}/var ${UBS_USER} ${UBS_GROUP} 0750
OWN_DIRS_PERMS+=	${UBS_BASEDIR}/log ${UBS_USER} ${UBS_GROUP} 0750

EGDIR=			${PREFIX}/share/examples/ubs
CONF_FILES=		${EGDIR}/help.conf ${PKG_SYSCONFDIR}/help.conf
CONF_FILES+=		${EGDIR}/ubs.conf.default ${PKG_SYSCONFDIR}/ubs.conf

post-extract:
	@${MV} ${WRKSRC}/config/ubs.conf.default \
		${WRKSRC}/config/ubs.conf.default.in

pre-configure:
	@${SED} -e "s,@UBS_BASEDIR@,${UBS_BASEDIR},g" \
		${WRKSRC}/config/ubs.conf.default.in > \
		${WRKSRC}/config/ubs.conf.default

.include "../../audio/libvorbis/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"