pkgsrc/chat/i2cbd/Makefile
jlam dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00

45 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2005/12/29 06:21:32 jlam Exp $
#
DISTNAME= i2cbd-2.0_BETA1
PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_LOCAL}
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}
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} ${PKG_SYSCONFDIR}/${f} \
${ICBD_OWNER} ${ROOT_GROUP} 644
.endfor
CONF_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
${INSTALL_SCRIPT} ${WRKDIR}/icbd.sh ${PREFIX}/etc/rc.d/icbd
.include "../../mk/bsd.pkg.mk"