2010-06-25 10:58:38 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2010/06/25 08:58:38 obache Exp $
|
2006-10-21 00:40:24 +02:00
|
|
|
|
2008-06-14 01:32:45 +02:00
|
|
|
DISTNAME= anope-1.7.21
|
2007-07-11 21:32:23 +02:00
|
|
|
CATEGORIES= chat
|
2006-10-21 00:40:24 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anope/}
|
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-21 00:40:24 +02:00
|
|
|
HOMEPAGE= http://www.anope.org/
|
|
|
|
COMMENT= Set of Services for IRC networks
|
|
|
|
|
2010-06-19 14:14:07 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2006-10-21 00:40:24 +02:00
|
|
|
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}
|
|
|
|
|
2010-06-19 14:14:07 +02:00
|
|
|
USERGROUP_PHASE= pre-install
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_USERS_VARS+= ANOPE_USER
|
|
|
|
PKG_GROUPS_VARS+= ANOPE_GROUP
|
|
|
|
|
2006-10-21 00:40:24 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2010-06-25 10:58:38 +02:00
|
|
|
PKG_USERS= ${ANOPE_USER}:${ANOPE_GROUP}
|
|
|
|
PKG_HOME.${ANOPE_USER}= ${PREFIX}/lib/anope
|
2006-10-21 00:40:24 +02:00
|
|
|
PKG_GROUPS= ${ANOPE_GROUP}
|
|
|
|
MAKE_ENV+= RUNGROUP=${ANOPE_GROUP:Q}
|
2008-06-14 01:32:45 +02:00
|
|
|
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
|
2006-10-21 00:40:24 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2009-12-17 20:58:19 +01:00
|
|
|
INSTALLATION_DIRS+= share/doc/anope share/examples/anope lib/anope/modules
|
|
|
|
|
2006-10-21 00:40:24 +02:00
|
|
|
post-install:
|
2009-12-17 20:58:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DESTDIR}${PREFIX}/share/doc/anope
|
|
|
|
${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/lib/anope/anoperc
|
|
|
|
${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/lib/anope/listchans
|
|
|
|
${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/lib/anope/listnicks
|
|
|
|
${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/lib/anope/services
|
|
|
|
${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/lib/anope/modules/*.so
|
|
|
|
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/lib/anope/languages/*
|
|
|
|
${CHOWN} ${ANOPE_USER} ${DESTDIR}${PREFIX}/lib/anope
|
|
|
|
${CHOWN} ${ANOPE_USER} ${DESTDIR}${PREFIX}/lib/anope/backups
|
|
|
|
${CHOWN} ${ANOPE_USER} ${DESTDIR}${PREFIX}/lib/anope/logs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/* ${DESTDIR}${PREFIX}/share/examples/anope
|
2006-10-21 00:40:24 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|