blob: b8157a70be666f13f5da9b7322b94b934bba3fba (
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
83
84
85
|
# $NetBSD: Makefile,v 1.9 2013/07/12 10:44:52 jperkin Exp $
#
DISTNAME= atheme-services-3.0.4
PKGNAME= ${DISTNAME:S/-services//}
PKGREVISION= 3
CATEGORIES= chat
MASTER_SITES= http://distfiles.atheme.org/
EXTRACT_SUFX= .tbz2
MAINTAINER= pkgsrc-users@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"
CFLAGS.SunOS+= -Dfaultcode_t=foo_faultcode_t -Dboolean_t=foo_boolean_t
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
INSTALLATION_DIRS+= ${EGDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/dist/atheme.conf.example \
${DESTDIR}${EGDIR}/atheme.conf.example
${INSTALL_DATA} ${WRKSRC}/dist/atheme.conf.userserv-example \
${DESTDIR}${EGDIR}/atheme.conf.userserv-example
${INSTALL_DATA} ${WRKSRC}/dist/atheme.cron.example \
${DESTDIR}${EGDIR}/atheme.cron.example
${INSTALL_DATA} ${WRKSRC}/dist/atheme.motd.example \
${DESTDIR}${EGDIR}/atheme.motd.example
. for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/doc/atheme/
. endfor
.include "../../devel/libmowgli/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|