pkgsrc/chat/anope/Makefile
adrianp d3f5962735 Update to 1.7.21
Version 1.7.20 (revision 1324)

With all currently known bugs fixed, this new release of Anope contains
loads of bugfixes and should provide a stable experience. This is one of
the last releases in the 1.7 series of Anope. We encourage users who were
not using the 1.7 series for stability reasons to try out this release and
report any bugs found on our bugtracker at http://bugs.anope.org/ .

An important note for MySQL users: various database schema improvements
have been added in Changes.mysql. Be sure to apply these changes to your
database schema for a large increase in performance of the MySQL code.

Take a look at the change log for more information about the changes made
for this release.

Version 1.7.21 (revision 1341)

This new release fixes a XOP-related exploitable crash bug which appeared in
Anope version 1.7.20. Earlier versions are not affected. Networks running
Anope 1.7.20 are strongly advised to upgrade to this release. Even though
networks running earlier versions are not affected by this bug, they are
still advised to upgrade due to numerous other bugfixes.

Next to the fix for the crash bug mentioned above, a number of other things
have been fixed as well, including various InspIRCd-related issues, bugs in
the MySQL code and a shiny new Russian translation.

Take a look at the change log for more information about the changes made
for this release.
2008-06-13 23:32:45 +00:00

78 lines
2.6 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2008/06/13 23:32:45 adrianp Exp $
DISTNAME= anope-1.7.21
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anope/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.anope.org/
COMMENT= Set of Services for IRC networks
GNU_CONFIGURE= YES
PTHREAD_OPTS+= require
USE_TOOLS+= gmake perl:run
ANOPE_USER= anope
ANOPE_GROUP= anope
RCD_SCRIPTS= anope
FILES_SUBST+= ANOPE_USER=${ANOPE_USER:Q}
FILES_SUBST+= ANOPE_GROUP=${ANOPE_GROUP:Q}
PKG_USERS_VARS+= ANOPE_USER
PKG_GROUPS_VARS+= ANOPE_GROUP
.include "../../mk/bsd.prefs.mk"
PKG_USERS= ${ANOPE_USER}:${ANOPE_GROUP}::anope\ user:${PREFIX}/lib/anope:${NOLOGIN}
PKG_GROUPS= ${ANOPE_GROUP}
MAKE_ENV+= RUNGROUP=${ANOPE_GROUP:Q}
OWN_DIRS_PERMS+= ${PREFIX}/lib/anope/logs \
${ANOPE_USER:Q} ${ANOPE_GROUP:Q} 2755
OWN_DIRS_PERMS+= ${PREFIX}/lib/anope/modules/runtime \
${ANOPE_USER:Q} ${ANOPE_GROUP:Q} 2755
CONF_FILES_PERMS+= ${PREFIX}/share/examples/anope/example.conf \
${PREFIX}/lib/anope/services.conf \
${ANOPE_USER} ${ANOPE_GROUP} 0640
CONFIGURE_ARGS+= --with-permissions=077
CONFIGURE_ARGS+= --with-bindir=${PREFIX}/lib/anope
CONFIGURE_ARGS+= --with-datadir=${PREFIX}/lib/anope
CONFIGURE_ARGS+= --with-rungroup=${ANOPE_GROUP:Q}
.include "options.mk"
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= data/example.chk data/example.conf
SUBST_SED.paths= -e "s|/home/ircd/services|${PREFIX}/lib/anope|g"
SUBST_SED.paths+= -e "s|/usr/local/lib/services|${PREFIX}/lib/anope|g"
SUBST_SED.paths+= -e "s|/home/username/services|${PREFIX}/lib/anope|g"
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_CLASSES+= utils
SUBST_STAGE.utils= post-patch
SUBST_FILES.utils= src/Makefile
SUBST_SED.utils= -e "s|find|${FIND}|g"
SUBST_SED.utils+= -e "s|chgrp|${CHGRP}|g"
SUBST_SED.utils+= -e "s|chmod|${CHMOD}|g"
SUBST_SED.utils+= -e "s|ln|${LN}|g"
SUBST_MESSAGE.utils= Fixing hardcoded utilities.
.include "../../mk/pthread.buildlink3.mk"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/anope
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/anope
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/anope
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/anoperc
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/listchans
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/listnicks
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/services
${CHMOD} ${BINMODE} ${PREFIX}/lib/anope/modules/*.so
${CHMOD} ${SHAREMODE} ${PREFIX}/lib/anope/languages/*
${CHOWN} ${ANOPE_USER} ${PREFIX}/lib/anope
${CHOWN} ${ANOPE_USER} ${PREFIX}/lib/anope/backups
${CHOWN} ${ANOPE_USER} ${PREFIX}/lib/anope/logs
${INSTALL_DATA} ${WRKSRC}/data/* ${PREFIX}/share/examples/anope
.include "../../mk/bsd.pkg.mk"