summaryrefslogtreecommitdiff
path: root/chat/i2cbd/Makefile
blob: 34468078205b86886a8505738e6faea1828788c3 (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
# $NetBSD: Makefile,v 1.28 2008/09/25 14:02:08 wiz Exp $
#

DISTNAME=	i2cbd-2.0_BETA5
PKGREVISION=	2
CATEGORIES=	chat
MASTER_SITES=	${MASTER_SITE_LOCAL} \
		http://www.draga.com/~jwise/i2cb/

MAINTAINER=	jwise@NetBSD.org
HOMEPAGE=	http://www.draga.com/~jwise/i2cb/
COMMENT=	Next generation Internet Citizens Band chat server

.include "../../mk/bsd.prefs.mk"

BUILD_DEFS+=		ICBD_OWNER
ICBD_OWNER?=		${ROOT_USER}
PKG_USERS_VARS+=	ICBD_OWNER
PLIST_SUBST+=		ICBD_OWNER=${ICBD_OWNER:Q}

PKG_SYSCONFSUBDIR=	icbd
EGDIR=			${PREFIX}/share/examples/i2cbd
EGFILES=		motd icbd_help icbd.deny news.1
CONF_FILES_PERMS=	# empty
.for f in ${EGFILES}
CONF_FILES_PERMS+=	${EGDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} \
			${ICBD_OWNER} ${ROOT_GROUP} 644
.endfor
CONF_FILES_PERMS+=	/dev/null /var/log/icbd.log \
			${ICBD_OWNER} ${ROOT_GROUP} 644
RCD_SCRIPTS=		icbd
RCD_SCRIPT_SRC.icbd=	${WRKSRC}/etc/icbd.sh
INSTALLATION_DIRS=	${PKGMANDIR}/man8 sbin share/examples/i2cbd \
			share/examples/rc.d

post-extract:
	-${RM} -f ${WRKSRC}/*/.depend

post-install:
.for f in ${EGFILES}
	${INSTALL_DATA} ${WRKSRC}/etc/${f:Q} ${EGDIR}
.endfor

.include "../../mk/bsd.pkg.mk"