Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / ubs / Makefile
blob577191d63a9db542395d72594ef2dad1a7eca057
1 # $NetBSD: Makefile,v 1.16 2012/03/01 17:30:00 hans Exp $
4 DISTNAME= ubs-0.17
5 PKGREVISION= 3
6 CATEGORIES= audio
7 MASTER_SITES= ${MASTER_SITE_LOCAL}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 # author's new home may be at http://www.teragon.org
11 # HOMEPAGE= http://aboleo.net/software/ubs/
12 COMMENT= Uninterrupted Broadcasting System
14 GNU_CONFIGURE= yes
16 RCD_SCRIPTS= ubs
17 PKG_SYSCONFSUBDIR= ubs
18 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
20 CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600
22 .include "../../mk/bsd.prefs.mk"
24 UBS_BASEDIR?= /var/spool/ubs
25 UBS_USER?= ubs
26 UBS_GROUP?= ubs
27 PKG_USERS_VARS+= UBS_USER
28 PKG_GROUPS_VARS+= UBS_GROUP
29 BUILD_DEFS+= UBS_BASEDIR
31 PKG_GROUPS= ${UBS_GROUP}
32 PKG_USERS= ${UBS_USER}:${UBS_GROUP}
33 FILES_SUBST+= PREFIX=${PREFIX:Q}
34 FILES_SUBST+= UBS_USER=${UBS_USER:Q}
35 FILES_SUBST+= UBS_GROUP=${UBS_GROUP:Q}
37 OWN_DIRS_PERMS= ${UBS_BASEDIR} ${UBS_USER} ${UBS_GROUP} 0750
38 OWN_DIRS_PERMS+= ${UBS_BASEDIR}/var ${UBS_USER} ${UBS_GROUP} 0750
39 OWN_DIRS_PERMS+= ${UBS_BASEDIR}/log ${UBS_USER} ${UBS_GROUP} 0750
41 EGDIR= ${PREFIX}/share/examples/ubs
42 CONF_FILES= ${EGDIR}/help.conf ${PKG_SYSCONFDIR}/help.conf
43 CONF_FILES+= ${EGDIR}/ubs.conf.default ${PKG_SYSCONFDIR}/ubs.conf
45 SUBST_CLASSES+= ubsconf
46 SUBST_STAGE.ubsconf= pre-configure
47 SUBST_MESSAGE.ubsconf= Fixing path to ubs.conf.
48 SUBST_FILES.ubsconf= include/defaults.h
49 SUBST_SED.ubsconf= -e 's,"etc/ubs.conf","${PKG_SYSCONFDIR}/ubs.conf",'
51 post-extract:
52 ${MV} ${WRKSRC}/config/ubs.conf.default \
53 ${WRKSRC}/config/ubs.conf.default.in
55 pre-configure:
56 ${SED} -e "s,@UBS_BASEDIR@,${UBS_BASEDIR},g" \
57 ${WRKSRC}/config/ubs.conf.default.in > \
58 ${WRKSRC}/config/ubs.conf.default
60 .include "../../audio/libvorbis/buildlink3.mk"
61 .include "../../mk/bsd.pkg.mk"