blob: 9deeea56005e6da17c32ecc3a47d72ae4d626b8c (
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
|
# $NetBSD: Makefile,v 1.20 2006/03/04 21:29:03 jlam Exp $
#
DISTNAME= ircu2.10.11.07
PKGNAME= ircu-2.10.11.07
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=undernet-ircu/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://coder-com.undernet.org/
COMMENT= Internet Relay Chat server customized for Undernet
CONFLICTS+= ircd-hybrid-[0-9]*
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --bindir=${PREFIX}/sbin
CONFIGURE_ARGS+= --with-cpath=${PKG_SYSCONFDIR}/ircd.conf
CONFIGURE_ARGS+= --with-dpath=${DATADIR:Q}
CONFIGURE_ARGS+= --with-lpath=${DATADIR}/ircd.log
CONFIGURE_ARGS+= --with-mode=555
CONFIGURE_ARGS+= --with-owner=0
CONFIGURE_ARGS+= --with-group=0
CONFIGURE_ARGS+= --with-symlink=no
PKG_SYSCONFSUBDIR= ircd
IRCD_USER?= ircd
IRCD_GROUP?= ircd
DATADIR= /var/ircd
OWN_DIRS_PERMS= ${DATADIR} ${IRCD_USER} ${IRCD_GROUP} 0700
EGDIR= ${PREFIX}/share/examples/ircd
DOCDIR= ${PREFIX}/share/doc/ircd
CONF_FILES_PERMS+= ${EGDIR}/ircd.conf.sample ${PKG_SYSCONFDIR}/ircd.conf \
${IRCD_USER} ${IRCD_GROUP} 0600
SPECIAL_PERMS+= ${PKG_SYSCONFDIR} ${IRCD_USER} ${IRCD_GROUP} 0700
RCD_SCRIPTS= ircd
FILES_SUBST+= IRCD_USER=${IRCD_USER:Q}
MESSAGE_SUBST+= IRCD_USER=${IRCD_USER}
MESSAGE_SUBST+= IRCD_GROUP=${IRCD_GROUP}
PKG_GROUPS= ${IRCD_GROUP}
PKG_USERS= ${IRCD_USER}:${IRCD_GROUP}::IRC\ server\ user:/nonexistant:${SH}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= tools/README doc/ircd.conf.sample
SUBST_SED.paths= -e "s|/usr/local/lib/irc|${PKG_SYSCONFDIR}|g" \
-e "s|@PREFIX@|${PREFIX}|g"
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
INSTALLATION_DIRS= man/man8 sbin
post-build:
@cd ${WRKSRC}/tools && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
-f Makefile.crypt
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_PROGRAM} ${WRKSRC}/ircd/ircd ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/ircd/chkconf \
${PREFIX}/sbin/ircd-chkconf
${INSTALL_PROGRAM} ${WRKSRC}/tools/mkpasswd \
${PREFIX}/sbin/ircd-mkpasswd
${INSTALL_MAN} ${WRKSRC}/doc/ircd.8 ${PREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/doc/ircd.conf.sample ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/tools/README ${DOCDIR}/README.mkpasswd
cd ${WRKSRC}/doc && ${INSTALL_DATA} readme.* iauth.txt ${DOCDIR}
.include "../../mk/bsd.pkg.mk"
|