2006-09-02 10:42:58 +02:00
|
|
|
# $NetBSD: Makefile,v 1.25 2006/09/02 08:42:58 adrianp Exp $
|
2003-04-11 18:02:53 +02:00
|
|
|
#
|
|
|
|
|
2006-09-02 10:42:58 +02:00
|
|
|
DISTNAME= ircservices-5.0.58
|
2003-04-11 18:02:53 +02:00
|
|
|
CATEGORIES= chat
|
2006-09-02 10:42:58 +02:00
|
|
|
MASTER_SITES= http://www.ircservices.za.net/download/ \
|
|
|
|
ftp://ftp.esper.net/ircservices/ \
|
2005-01-19 22:59:24 +01:00
|
|
|
ftp://ftp.esper.net/ircservices/old/ \
|
|
|
|
ftp://ftp.freenet.de/pub/ftp.ircservices.za.net/pub/ircservices/
|
2003-04-11 18:02:53 +02:00
|
|
|
|
|
|
|
MAINTAINER= virtus@wanadoo.nl
|
2005-01-19 22:59:24 +01:00
|
|
|
HOMEPAGE= http://www.ircservices.esper.net/
|
2003-04-11 18:02:53 +02:00
|
|
|
COMMENT= Services for IRC networks
|
|
|
|
|
|
|
|
HAS_CONFIGURE= YES
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= gmake grep gsed perl
|
2004-10-03 00:09:46 +02:00
|
|
|
RCD_SCRIPTS= ircservices
|
2005-11-30 18:47:54 +01:00
|
|
|
PKG_GROUPS= services
|
2006-09-02 10:42:58 +02:00
|
|
|
BUILD_DEFS= VARBASE
|
2003-04-11 18:02:53 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ARGS+= -prefix ${PREFIX:Q}
|
2003-04-11 18:02:53 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= install
|
2004-10-03 00:09:46 +02:00
|
|
|
SUBST_STAGE.install= post-patch
|
|
|
|
SUBST_FILES.install= install-script tools/ircservices-chk.in
|
2006-06-06 14:35:04 +02:00
|
|
|
SUBST_SED.install= -e "s|/bin/cp|${CP}|g"
|
|
|
|
SUBST_SED.install+= -e "s|/bin/chown|${CHOWN}|g"
|
|
|
|
SUBST_SED.install+= -e "s|/bin/chgrp|${CHGRP}|g"
|
|
|
|
SUBST_SED.install+= -e "s|/bin/chmod|${CHMOD}|g"
|
|
|
|
SUBST_SED.install+= -e "s|@DATDEST@|${VARBASE}/run|g"
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.install= Fixing scripts.
|
2004-10-03 00:09:46 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= utils
|
2004-10-03 00:09:46 +02:00
|
|
|
SUBST_STAGE.utils= post-patch
|
|
|
|
SUBST_FILES.utils= data/Makefile tools/Makefile
|
2006-06-06 14:35:04 +02:00
|
|
|
SUBST_SED.utils= -e "s|chgrp|${CHGRP}|g"
|
|
|
|
SUBST_SED.utils+= -e "s|chmod|${CHMOD}|g"
|
|
|
|
SUBST_SED.utils+= -e "s|find|${FIND}|g"
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.utils= Fixing paths of hard-coded utilities.
|
2004-10-03 00:09:46 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= conf
|
2004-10-03 00:09:46 +02:00
|
|
|
SUBST_STAGE.conf= post-patch
|
|
|
|
SUBST_FILES.conf= data/example-ircservices.conf data/example-modules.conf
|
2006-06-06 14:35:04 +02:00
|
|
|
SUBST_SED.conf= -e "s|/usr/local|${PREFIX}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|ircservices.log|${VARBASE}/log/ircservices.log|g"
|
|
|
|
SUBST_SED.conf+= -e "s|ircservices.pid|${VARBASE}/run/ircservices.pid|g"
|
|
|
|
SUBST_SED.conf+= -e "s|/usr/lib/sendmail|/usr/sbin/sendmail|g"
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.conf= Fixing configuration files.
|
2004-10-03 00:09:46 +02:00
|
|
|
|
|
|
|
CONF_FILES_PERMS= ${PREFIX}/share/examples/ircservices/ircservices.conf \
|
|
|
|
${PREFIX}/lib/services/ircservices.conf \
|
|
|
|
${BINOWN} ${BINGRP} 0640
|
|
|
|
|
|
|
|
CONF_FILES_PERMS+= ${PREFIX}/share/examples/ircservices/modules.conf \
|
|
|
|
${PREFIX}/lib/services/modules.conf \
|
|
|
|
${BINOWN} ${BINGRP} 0640
|
|
|
|
|
2006-09-02 10:42:58 +02:00
|
|
|
INSTALLATION_DIRS= lib/services ${PKGMANDIR}/man8 sbin
|
2005-06-21 18:18:52 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Only some platforms build the dynamically-loadable modules. On
|
|
|
|
# others, the modules are statically-linked into the ircservices
|
|
|
|
# executable.
|
|
|
|
#
|
|
|
|
.if exists(${WRKDIR}/${DISTNAME}/modules/mail/main.so)
|
|
|
|
PLIST_SRC= ${.CURDIR}/PLIST.shared
|
|
|
|
.endif
|
|
|
|
PLIST_SRC+= ${.CURDIR}/PLIST
|
|
|
|
|
2004-10-03 00:09:46 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/ircservices
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ircservices
|
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/man/man8
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.html \
|
|
|
|
${PREFIX}/share/doc/html/ircservices
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/*.8 ${PREFIX}/man/man8
|
2006-06-06 14:35:04 +02:00
|
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/services/helpfiles
|
2004-10-03 00:09:46 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/example-ircservices.conf \
|
|
|
|
${PREFIX}/share/examples/ircservices/ircservices.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/example-modules.conf \
|
|
|
|
${PREFIX}/share/examples/ircservices/modules.conf
|
|
|
|
|
2003-04-11 18:02:53 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|