blob: 890027a1582b2a7bd5617befd830da57b44f08d2 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# $NetBSD: Makefile,v 1.3 2008/11/10 12:09:02 wiz Exp $
#
DISTNAME= atheme-services-3.0.4
PKGNAME= ${DISTNAME:S/-services//}
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= http://distfiles.atheme.org/
EXTRACT_SUFX= .tbz2
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.atheme.org/
COMMENT= Flexible IRC services system with proven scalability
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= atheme
EGDIR= ${PREFIX}/share/examples/atheme
DOC_FILES= INSTALL README
MAKE_JOBS_SAFE= NO
ATHEME_USER?= atheme
ATHEME_GROUP?= atheme
RCD_SCRIPTS+= atheme
PKG_USERS_VARS= ATHEME_USER
PKG_GROUPS_VARS= ATHEME_GROUP
PKG_GROUPS= ${ATHEME_GROUP}
PKG_USERS= ${ATHEME_USER}:${ATHEME_GROUP}
PKG_GECOS.${ATHEME_USER}= atheme user
FILES_SUBST+= ATHEME_USER=${ATHEME_USER}
FILES_SUBST+= ATHEME_GROUP=${ATHEME_GROUP}
.include "options.mk"
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --enable-fhs-paths
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
PKGCONFIG_OVERRIDE+= libmowgli/libmowgli.pc.in
CONF_FILES_PERMS= ${EGDIR}/atheme.conf.example \
${PKG_SYSCONFDIR}/atheme.conf \
${ATHEME_USER} ${ATHEME_GROUP} 0660
CONF_FILES_PERMS+= ${EGDIR}/atheme.cron.example \
${PKG_SYSCONFDIR}/atheme.cron \
${ATHEME_USER} ${ATHEME_GROUP} 0660
CONF_FILES_PERMS+= ${EGDIR}/atheme.motd.example \
${PKG_SYSCONFDIR}/atheme.motd \
${ATHEME_USER} ${ATHEME_GROUP} 0660
CONF_FILES_PERMS+= ${EGDIR}/atheme.conf.userserv-example \
${PKG_SYSCONFDIR}/atheme.conf.userserv \
${ATHEME_USER} ${ATHEME_GROUP} 0660
MAKE_DIRS_PERMS+= ${VARBASE}/atheme \
${ATHEME_USER} ${ATHEME_GROUP} 0770
MAKE_DIRS_PERMS+= ${VARBASE}/log/atheme \
${ATHEME_USER} ${ATHEME_GROUP} 0770
MAKE_DIRS_PERMS+= ${VARBASE}/run/atheme \
${ATHEME_USER} ${ATHEME_GROUP} 0770
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/dist/atheme.conf.example \
${EGDIR}/atheme.conf.example
${INSTALL_DATA} ${WRKSRC}/dist/atheme.conf.userserv-example \
${EGDIR}/atheme.conf.userserv-example
${INSTALL_DATA} ${WRKSRC}/dist/atheme.cron.example \
${EGDIR}/atheme.cron.example
${INSTALL_DATA} ${WRKSRC}/dist/atheme.motd.example \
${EGDIR}/atheme.motd.example
. for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/atheme/
. endfor
.include "../../devel/libmowgli/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|