blob: 943d6a32891a9a40a0268fff60caf3455ea60609 (
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
|
# $NetBSD: Makefile,v 1.3 2007/07/04 20:54:32 jlam Exp $
DISTNAME= anope-1.7.18
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anope/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.anope.org/
COMMENT= Set of Services for IRC networks
GNU_CONFIGURE= YES
PTHREAD_OPTS+= require
USE_TOOLS+= gmake perl:run
ANOPE_USER= anope
ANOPE_GROUP= anope
RCD_SCRIPTS= anope
FILES_SUBST+= ANOPE_USER=${ANOPE_USER:Q}
FILES_SUBST+= ANOPE_GROUP=${ANOPE_GROUP:Q}
PKG_USERS_VARS+= ANOPE_USER
PKG_GROUPS_VARS+= ANOPE_GROUP
.include "../../mk/bsd.prefs.mk"
PKG_USERS= ${ANOPE_USER}:${ANOPE_GROUP}::anope\ user:${PREFIX}/lib/anope:${NOLOGIN}
PKG_GROUPS= ${ANOPE_GROUP}
MAKE_ENV+= RUNGROUP=${ANOPE_GROUP:Q}
CONF_FILES_PERMS+= ${PREFIX}/share/examples/anope/example.conf \
${PREFIX}/lib/anope/services.conf \
${ANOPE_USER} ${ANOPE_GROUP} 0640
CONFIGURE_ARGS+= --with-permissions=077
CONFIGURE_ARGS+= --with-bindir=${PREFIX}/lib/anope
CONFIGURE_ARGS+= --with-datadir=${PREFIX}/lib/anope
CONFIGURE_ARGS+= --with-rungroup=${ANOPE_GROUP:Q}
.include "options.mk"
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= data/example.chk data/example.conf
SUBST_SED.paths= -e "s|/home/ircd/services|${PREFIX}/lib/anope|g"
SUBST_SED.paths+= -e "s|/usr/local/lib/services|${PREFIX}/lib/anope|g"
SUBST_SED.paths+= -e "s|/home/username/services|${PREFIX}/lib/anope|g"
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_CLASSES+= utils
SUBST_STAGE.utils= post-patch
SUBST_FILES.utils= src/Makefile
SUBST_SED.utils= -e "s|find|${FIND}|g"
SUBST_SED.utils+= -e "s|chgrp|${CHGRP}|g"
SUBST_SED.utils+= -e "s|chmod|${CHMOD}|g"
SUBST_SED.utils+= -e "s|ln|${LN}|g"
SUBST_MESSAGE.utils= Fixing hardcoded utilities.
.include "../../mk/pthread.buildlink3.mk"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/anope
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/anope
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/anope
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/anoperc
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/listchans
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/listnicks
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/services
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/modules/*.so
${CHOWN} ${ANOPE_USER} ${PREFIX}/lib/anope
${CHOWN} ${ANOPE_USER} ${PREFIX}/lib/anope/backups
${CHOWN} ${ANOPE_USER} ${PREFIX}/lib/anope/logs
${INSTALL_DATA} ${WRKSRC}/data/* ${PREFIX}/share/examples/anope
.include "../../mk/bsd.pkg.mk"
|