summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2006-10-20 22:40:24 +0000
committeradrianp <adrianp@pkgsrc.org>2006-10-20 22:40:24 +0000
commit9941c62908a3ed9b54a4d0edc04e3be52b1a3bfb (patch)
treea611ad5f4f25d060c247e1d9808618b767980a50 /chat
parent2c6524b9227420825adb1f2b03a9f158459245b8 (diff)
downloadpkgsrc-9941c62908a3ed9b54a4d0edc04e3be52b1a3bfb.tar.gz
Anope is a set of Services for IRC networks that allows users to
manage their nicks and channels in a secure and efficient way, and administrators to manage their network with powerful tools.
Diffstat (limited to 'chat')
-rw-r--r--chat/anope/DESCR3
-rw-r--r--chat/anope/Makefile70
-rw-r--r--chat/anope/PLIST195
-rw-r--r--chat/anope/distinfo6
-rw-r--r--chat/anope/files/anope.sh23
-rw-r--r--chat/anope/options.mk22
-rw-r--r--chat/anope/patches/patch-aa12
7 files changed, 331 insertions, 0 deletions
diff --git a/chat/anope/DESCR b/chat/anope/DESCR
new file mode 100644
index 00000000000..2d5b5e02161
--- /dev/null
+++ b/chat/anope/DESCR
@@ -0,0 +1,3 @@
+Anope is a set of Services for IRC networks that allows users to
+manage their nicks and channels in a secure and efficient way, and
+administrators to manage their network with powerful tools.
diff --git a/chat/anope/Makefile b/chat/anope/Makefile
new file mode 100644
index 00000000000..fc4cada3228
--- /dev/null
+++ b/chat/anope/Makefile
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/20 22:40:24 adrianp Exp $
+
+DISTNAME= anope-1.7.17
+CATEGORIES= net
+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}
+
+.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}
+
+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
+ ${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"
diff --git a/chat/anope/PLIST b/chat/anope/PLIST
new file mode 100644
index 00000000000..4c2e24e89dd
--- /dev/null
+++ b/chat/anope/PLIST
@@ -0,0 +1,195 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/20 22:40:24 adrianp Exp $
+lib/anope/anoperc
+lib/anope/languages/cat
+lib/anope/languages/de
+lib/anope/languages/en_us
+lib/anope/languages/es
+lib/anope/languages/fr
+lib/anope/languages/gr
+lib/anope/languages/hun
+lib/anope/languages/it
+lib/anope/languages/nl
+lib/anope/languages/pl
+lib/anope/languages/pt
+lib/anope/languages/ru
+lib/anope/languages/tr
+lib/anope/listchans
+lib/anope/listnicks
+lib/anope/modules/bahamut.so
+lib/anope/modules/bs_act.so
+lib/anope/modules/bs_assign.so
+lib/anope/modules/bs_badwords.so
+lib/anope/modules/bs_bot.so
+lib/anope/modules/bs_botlist.so
+lib/anope/modules/bs_fantasy.so
+lib/anope/modules/bs_fantasy_kick.so
+lib/anope/modules/bs_fantasy_kickban.so
+lib/anope/modules/bs_fantasy_owner.so
+lib/anope/modules/bs_fantasy_seen.so
+lib/anope/modules/bs_fantasy_unban.so
+lib/anope/modules/bs_help.so
+lib/anope/modules/bs_info.so
+lib/anope/modules/bs_kick.so
+lib/anope/modules/bs_say.so
+lib/anope/modules/bs_set.so
+lib/anope/modules/bs_unassign.so
+lib/anope/modules/charybdis.so
+lib/anope/modules/cs_access.so
+lib/anope/modules/cs_akick.so
+lib/anope/modules/cs_appendtopic.so
+lib/anope/modules/cs_ban.so
+lib/anope/modules/cs_clear.so
+lib/anope/modules/cs_drop.so
+lib/anope/modules/cs_enforce.so
+lib/anope/modules/cs_forbid.so
+lib/anope/modules/cs_getkey.so
+lib/anope/modules/cs_getpass.so
+lib/anope/modules/cs_help.so
+lib/anope/modules/cs_identify.so
+lib/anope/modules/cs_info.so
+lib/anope/modules/cs_invite.so
+lib/anope/modules/cs_kick.so
+lib/anope/modules/cs_list.so
+lib/anope/modules/cs_logout.so
+lib/anope/modules/cs_modes.so
+lib/anope/modules/cs_register.so
+lib/anope/modules/cs_sendpass.so
+lib/anope/modules/cs_set.so
+lib/anope/modules/cs_status.so
+lib/anope/modules/cs_suspend.so
+lib/anope/modules/cs_tban.so
+lib/anope/modules/cs_topic.so
+lib/anope/modules/cs_xop.so
+lib/anope/modules/dreamforge.so
+lib/anope/modules/he_help.so
+lib/anope/modules/hs_del.so
+lib/anope/modules/hs_delall.so
+lib/anope/modules/hs_group.so
+lib/anope/modules/hs_help.so
+lib/anope/modules/hs_list.so
+lib/anope/modules/hs_off.so
+lib/anope/modules/hs_on.so
+lib/anope/modules/hs_request.so
+lib/anope/modules/hs_set.so
+lib/anope/modules/hs_setall.so
+lib/anope/modules/hybrid.so
+lib/anope/modules/inspircd.so
+lib/anope/modules/ms_cancel.so
+lib/anope/modules/ms_check.so
+lib/anope/modules/ms_del.so
+lib/anope/modules/ms_help.so
+lib/anope/modules/ms_info.so
+lib/anope/modules/ms_list.so
+lib/anope/modules/ms_read.so
+lib/anope/modules/ms_rsend.so
+lib/anope/modules/ms_send.so
+lib/anope/modules/ms_sendall.so
+lib/anope/modules/ms_set.so
+lib/anope/modules/ms_staff.so
+lib/anope/modules/ns_access.so
+lib/anope/modules/ns_alist.so
+lib/anope/modules/ns_drop.so
+lib/anope/modules/ns_forbid.so
+lib/anope/modules/ns_getemail.so
+lib/anope/modules/ns_getpass.so
+lib/anope/modules/ns_ghost.so
+lib/anope/modules/ns_group.so
+lib/anope/modules/ns_help.so
+lib/anope/modules/ns_identify.so
+lib/anope/modules/ns_info.so
+lib/anope/modules/ns_list.so
+lib/anope/modules/ns_logout.so
+lib/anope/modules/ns_maxemail.so
+lib/anope/modules/ns_recover.so
+lib/anope/modules/ns_register.so
+lib/anope/modules/ns_release.so
+lib/anope/modules/ns_saset.so
+lib/anope/modules/ns_sendpass.so
+lib/anope/modules/ns_set.so
+lib/anope/modules/ns_status.so
+lib/anope/modules/ns_suspend.so
+lib/anope/modules/ns_update.so
+lib/anope/modules/os_admin.so
+lib/anope/modules/os_akill.so
+lib/anope/modules/os_chankill.so
+lib/anope/modules/os_chanlist.so
+lib/anope/modules/os_clearmodes.so
+lib/anope/modules/os_defcon.so
+lib/anope/modules/os_global.so
+lib/anope/modules/os_help.so
+lib/anope/modules/os_ignore.so
+lib/anope/modules/os_info.so
+lib/anope/modules/os_jupe.so
+lib/anope/modules/os_kick.so
+lib/anope/modules/os_logonnews.so
+lib/anope/modules/os_mode.so
+lib/anope/modules/os_modinfo.so
+lib/anope/modules/os_modlist.so
+lib/anope/modules/os_modload.so
+lib/anope/modules/os_modunload.so
+lib/anope/modules/os_noop.so
+lib/anope/modules/ns_noop_convert.so
+lib/anope/modules/os_oline.so
+lib/anope/modules/os_oper.so
+lib/anope/modules/os_opernews.so
+lib/anope/modules/os_quit.so
+lib/anope/modules/os_randomnews.so
+lib/anope/modules/os_raw.so
+lib/anope/modules/os_reload.so
+lib/anope/modules/os_restart.so
+lib/anope/modules/os_session.so
+lib/anope/modules/os_set.so
+lib/anope/modules/os_sgline.so
+lib/anope/modules/os_shutdown.so
+lib/anope/modules/os_sqline.so
+lib/anope/modules/os_staff.so
+lib/anope/modules/os_stats.so
+lib/anope/modules/os_svsnick.so
+lib/anope/modules/os_szline.so
+lib/anope/modules/os_umode.so
+lib/anope/modules/os_update.so
+lib/anope/modules/os_userlist.so
+lib/anope/modules/plexus2.so
+lib/anope/modules/plexus3.so
+lib/anope/modules/ptlink.so
+lib/anope/modules/rageircd.so
+lib/anope/modules/ratbox.so
+lib/anope/modules/shadowircd.so
+lib/anope/modules/solidircd.so
+lib/anope/modules/ultimate2.so
+lib/anope/modules/ultimate3.so
+lib/anope/modules/unreal31.so
+lib/anope/modules/unreal32.so
+lib/anope/modules/viagra.so
+lib/anope/mydbgen
+lib/anope/services
+lib/anope/tools/anopesmtp
+lib/anope/tools/db-merger
+lib/anope/tools/epona2anope
+share/doc/anope/BUGS
+share/doc/anope/COPYING
+share/doc/anope/DEFCON
+share/doc/anope/EVENTS
+share/doc/anope/FAQ
+share/doc/anope/INSTALL
+share/doc/anope/IRCD
+share/doc/anope/MODULES
+share/doc/anope/MYSQL
+share/doc/anope/NEWS
+share/doc/anope/OLDCHANGES
+share/doc/anope/PROXY
+share/doc/anope/README
+share/doc/anope/WIN32.txt
+share/examples/anope/example.chk
+share/examples/anope/example.conf
+share/examples/anope/tables.sql
+share/examples/rc.d/anope
+@dirrm share/examples/anope
+@dirrm share/doc/anope
+@dirrm lib/anope/tools
+@unexec ${RMDIR} %D/lib/anope/modules/runtime 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/lib/anope/modules 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/lib/anope/logs 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/lib/anope/backups 2>/dev/null || ${TRUE}
+@dirrm lib/anope/languages
+@unexec ${RMDIR} %D/lib/anope 2>/dev/null || ${TRUE}
diff --git a/chat/anope/distinfo b/chat/anope/distinfo
new file mode 100644
index 00000000000..f9b82734c28
--- /dev/null
+++ b/chat/anope/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/20 22:40:24 adrianp Exp $
+
+SHA1 (anope-1.7.17.tar.gz) = c2a8077ee43b0111d3715d21d066c18feee24ffb
+RMD160 (anope-1.7.17.tar.gz) = 50edae6c22311aada6e2fdfd56a1cd7781143c5a
+Size (anope-1.7.17.tar.gz) = 1471230 bytes
+SHA1 (patch-aa) = 3a5dcfd4029a4a6f55a3b39d34e706502ecfe05c
diff --git a/chat/anope/files/anope.sh b/chat/anope/files/anope.sh
new file mode 100644
index 00000000000..564ac73d46c
--- /dev/null
+++ b/chat/anope/files/anope.sh
@@ -0,0 +1,23 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: anope.sh,v 1.1.1.1 2006/10/20 22:40:24 adrianp Exp $
+#
+# PROVIDE: anope
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="anope"
+rcvar=${name}
+command="@PREFIX@/lib/anope/services"
+required_files="@PREFIX@/lib/anope/services.conf"
+anope_user="@ANOPE_USER@"
+anope_group="@ANOPE_GROUP@"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/chat/anope/options.mk b/chat/anope/options.mk
new file mode 100644
index 00000000000..97c6b3ecf00
--- /dev/null
+++ b/chat/anope/options.mk
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/10/20 22:40:24 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.anope
+PKG_SUPPORTED_OPTIONS= mysql anope-dbencryption
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Use MySQL for storing data
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-mysql
+.endif
+
+###
+### Encrypt sensitive data in the database (only with mysql)
+###
+.if !empty(PKG_OPTIONS:Mmysql) && !empty(PKG_OPTIONS:Manope-dbencryption)
+CONFIGURE_ARGS+= --with-encryption
+.endif
diff --git a/chat/anope/patches/patch-aa b/chat/anope/patches/patch-aa
new file mode 100644
index 00000000000..5b920f69a3b
--- /dev/null
+++ b/chat/anope/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/10/20 22:40:24 adrianp Exp $
+
+--- src/Makefile.orig 2005-11-16 23:22:43.000000000 +0000
++++ src/Makefile
+@@ -111,7 +111,6 @@ install: services
+ ln $(BINDEST)/services $(BINDEST)/listnicks
+ ln $(BINDEST)/services $(BINDEST)/listchans
+ (cd ../lang ; $(MAKE) install)
+- $(CP) ../data/* $(DATDEST)
+ $(INSTALL) bin/mydbgen $(DATDEST)/mydbgen
+ test -d $(DATDEST)/backups || mkdir $(DATDEST)/backups
+ test -d $(DATDEST)/logs || mkdir $(DATDEST)/logs