-
Notifications
You must be signed in to change notification settings - Fork 160
/
Makefile
50 lines (39 loc) · 1.14 KB
/
Makefile
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
# $NetBSD: Makefile,v 1.11 2005/02/21 20:26:09 hubertf Exp $
#
DISTNAME= i2cbd-2.0_BETA1
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= [email protected]
HOMEPAGE= http://www.draga.com/~jwise/i2cb/
COMMENT= Next generation Internet Citizens Band chat server
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= ICBD_OWNER
ICBD_OWNER?= ${ROOT_USER}
PLIST_SUBST+= ICBD_OWNER=${ICBD_OWNER}
PKG_SYSCONFSUBDIR= icbd
EGDIR= ${PREFIX}/share/examples/i2cbd
EGFILES= motd icbd_help icbd.deny news.1
CONF_FILES_PERMS=
.for f in ${EGFILES}
CONF_FILES_PERMS+= ${EGDIR}/$f ${PKG_SYSCONFDIR}/$f \
${ICBD_OWNER} ${ROOT_GROUP} 644
.endfor
.undef f
SUPPORT_FILES_PERMS= /dev/null /var/log/icbd.log \
${ICBD_OWNER} ${ROOT_GROUP} 644
post-extract:
-${RM} -f ${WRKSRC}/*/.depend
post-build:
${SED} -e 's,@PREFIX@,${PREFIX},' \
< ${WRKSRC}/etc/icbd.sh > ${WRKDIR}/icbd.sh
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
.for f in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/etc/$f ${EGDIR}
.endfor
.undef f
${INSTALL_SCRIPT} ${WRKDIR}/icbd.sh ${PREFIX}/etc/rc.d/icbd
.include "../../mk/bsd.pkg.mk"