pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

add anope.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Tue Feb 5 16:33:27 2019 +0000
Changeset:	3b6ce5a72a9b9cc89a1b4f599ca571e84334339d

Modified Files:
	Makefile
Added Files:
	anope/DESCR
	anope/Makefile
	anope/PLIST
	anope/distinfo
	anope/options.mk
	anope/patches/patch-data_example.conf

Log Message:
add anope.

Anope is an open source set of IRC Services. It is highly modular,
with a vast number of configurable parameters, and is the most used
IRC services package. There are also many modules on the modsite
to add additional features. It supports many modern IRCds, including
InspIRCd, UnrealIRCd, and ircd-hybrid.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3b6ce5a72a9b9cc89a1b4f599ca571e84334339d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                              |   1 +
 anope/DESCR                           |   5 +
 anope/Makefile                        |  83 ++++++++++++++
 anope/PLIST                           | 209 ++++++++++++++++++++++++++++++++++
 anope/distinfo                        |   7 ++
 anope/options.mk                      |  45 ++++++++
 anope/patches/patch-data_example.conf |  94 +++++++++++++++
 7 files changed, 444 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 07225b9019..345e61c4b0 100644
--- a/Makefile
+++ b/Makefile
@@ -122,6 +122,7 @@ SUBDIR+=	and
 SUBDIR+=	android-tools-adb
 SUBDIR+=	angelscript
 SUBDIR+=	ann
+SUBDIR+=	anope
 SUBDIR+=	ansible
 SUBDIR+=	ansible-junos-stdlib
 SUBDIR+=	anthy-dic-jis34
diff --git a/anope/DESCR b/anope/DESCR
new file mode 100644
index 0000000000..4510cfff6e
--- /dev/null
+++ b/anope/DESCR
@@ -0,0 +1,5 @@
+Anope is an open source set of IRC Services. It is highly modular,
+with a vast number of configurable parameters, and is the most used
+IRC services package. There are also many modules on the modsite
+to add additional features. It supports many modern IRCds, including
+InspIRCd, UnrealIRCd, and ircd-hybrid.
diff --git a/anope/Makefile b/anope/Makefile
new file mode 100644
index 0000000000..7679b8bf84
--- /dev/null
+++ b/anope/Makefile
@@ -0,0 +1,83 @@
+# $NetBSD$
+
+PKGNAME=	anope-2.0.6
+DISTNAME=	${PKGNAME}-source
+CATEGORIES=	chat
+MASTER_SITES=	${MASTER_SITE_GITHUB:=anope/}
+GITHUB_PROJECT=	anope
+GITHUB_RELEASE=	${PKGVERSION_NOREV}
+
+MAINTAINER=	nia%NetBSD.org@localhost
+HOMEPAGE=	https://www.anope.org/
+COMMENT=	Modular set of IRC services
+LICENSE=	gnu-gpl-v2
+
+USE_LANGUAGES=	c c++
+USE_CMAKE=	yes
+
+CMAKE_ARGS+=	-DPROGRAM_NAME=anope
+
+CMAKE_ARGS+=	-DDB_DIR=anope/data
+CMAKE_ARGS+=	-DCONF_DIR=${PKG_SYSCONFDIR}/anope
+CMAKE_ARGS+=	-DLIB_DIR=lib/anope
+CMAKE_ARGS+=	-DLOCALE_DIR=${PKGLOCALEDIR}/locale
+CMAKE_ARGS+=	-DLOGS_DIR=anope/logs
+
+EGDIR=		${PREFIX}/share/examples/anope
+DOCDIR=		${PREFIX}/share/doc/anope
+
+USE_PKGLOCALEDIR=	yes
+
+INSTALLATION_DIRS+=	${EGDIR}
+INSTALLATION_DIRS+=	${DOCDIR}
+
+REPLACE_BASH+=	src/tools/geoipupdate.sh
+
+CONF_FILES+=	${EGDIR}/botserv.conf ${PKG_SYSCONFDIR}/anope/botserv.conf
+CONF_FILES+=	${EGDIR}/chanserv.conf ${PKG_SYSCONFDIR}/anope/chanserv.conf
+CONF_FILES+=	${EGDIR}/chanstats.conf ${PKG_SYSCONFDIR}/anope/chanstats.conf
+CONF_FILES+=	${EGDIR}/services.conf ${PKG_SYSCONFDIR}/anope/services.conf
+CONF_FILES+=	${EGDIR}/global.conf ${PKG_SYSCONFDIR}/anope/global.conf
+CONF_FILES+=	${EGDIR}/hostserv.conf ${PKG_SYSCONFDIR}/anope/hostserv.conf
+CONF_FILES+=	${EGDIR}/irc2sql.conf ${PKG_SYSCONFDIR}/anope/irc2sql.conf
+CONF_FILES+=	${EGDIR}/memoserv.conf ${PKG_SYSCONFDIR}/anope/memoserv.conf
+CONF_FILES+=	${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/anope/modules.conf
+CONF_FILES+=	${EGDIR}/nickserv.conf ${PKG_SYSCONFDIR}/anope/nickserv.conf
+CONF_FILES+=	${EGDIR}/operserv.conf ${PKG_SYSCONFDIR}/anope/operserv.conf
+
+.include "options.mk"
+
+pre-configure:
+.for srcfile in ${ANOPE_EXTRAS}
+	${LN} -sf ${WRKSRC}/modules/extra/${srcfile} ${WRKSRC}/modules/${srcfile}
+.endfor
+
+post-install:
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/botserv.example.conf \
+		${DESTDIR}${EGDIR}/botserv.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/chanserv.example.conf \
+		${DESTDIR}${EGDIR}/chanserv.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/chanstats.example.conf \
+		${DESTDIR}${EGDIR}/chanstats.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/example.conf \
+		${DESTDIR}${EGDIR}/services.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/global.example.conf \
+		${DESTDIR}${EGDIR}/global.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/hostserv.example.conf \
+		${DESTDIR}${EGDIR}/hostserv.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/irc2sql.example.conf \
+		${DESTDIR}${EGDIR}/irc2sql.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/memoserv.example.conf \
+		${DESTDIR}${EGDIR}/memoserv.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/modules.example.conf \
+		${DESTDIR}${EGDIR}/modules.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/nickserv.example.conf \
+		${DESTDIR}${EGDIR}/nickserv.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/operserv.example.conf \
+		${DESTDIR}${EGDIR}/operserv.conf
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/example.chk \
+		${DESTDIR}${DOCDIR}/example.chk
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/stats.standalone.example.conf \
+		${DESTDIR}${DOCDIR}/stats.standalone.example.conf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/anope/PLIST b/anope/PLIST
new file mode 100644
index 0000000000..142cf3af18
--- /dev/null
+++ b/anope/PLIST
@@ -0,0 +1,209 @@
+@comment $NetBSD$
+anope/data/modules/webcpanel/templates/default/chanserv/access.html
+anope/data/modules/webcpanel/templates/default/chanserv/akick.html
+anope/data/modules/webcpanel/templates/default/chanserv/chanlist.html
+anope/data/modules/webcpanel/templates/default/chanserv/drop.html
+anope/data/modules/webcpanel/templates/default/chanserv/main.html
+anope/data/modules/webcpanel/templates/default/chanserv/modes.html
+anope/data/modules/webcpanel/templates/default/chanserv/set.html
+anope/data/modules/webcpanel/templates/default/confirm.html
+anope/data/modules/webcpanel/templates/default/cubes.png
+anope/data/modules/webcpanel/templates/default/favicon.ico
+anope/data/modules/webcpanel/templates/default/footer.html
+anope/data/modules/webcpanel/templates/default/header.html
+anope/data/modules/webcpanel/templates/default/hostserv/request.html
+anope/data/modules/webcpanel/templates/default/login.html
+anope/data/modules/webcpanel/templates/default/logo.png
+anope/data/modules/webcpanel/templates/default/memoserv/memos.html
+anope/data/modules/webcpanel/templates/default/nickserv/access.html
+anope/data/modules/webcpanel/templates/default/nickserv/alist.html
+anope/data/modules/webcpanel/templates/default/nickserv/cert.html
+anope/data/modules/webcpanel/templates/default/nickserv/info.html
+anope/data/modules/webcpanel/templates/default/operserv/akill.html
+anope/data/modules/webcpanel/templates/default/register.html
+anope/data/modules/webcpanel/templates/default/style.css
+bin/anope
+bin/anoperc
+bin/anopesmtp
+bin/geoipupdate.sh
+lib/anope/modules/bahamut.so
+lib/anope/modules/botserv.so
+lib/anope/modules/bs_assign.so
+lib/anope/modules/bs_autoassign.so
+lib/anope/modules/bs_badwords.so
+lib/anope/modules/bs_bot.so
+lib/anope/modules/bs_botlist.so
+lib/anope/modules/bs_control.so
+lib/anope/modules/bs_info.so
+lib/anope/modules/bs_kick.so
+lib/anope/modules/bs_set.so
+lib/anope/modules/chanserv.so
+lib/anope/modules/charybdis.so
+lib/anope/modules/cs_access.so
+lib/anope/modules/cs_akick.so
+lib/anope/modules/cs_ban.so
+lib/anope/modules/cs_clone.so
+lib/anope/modules/cs_drop.so
+lib/anope/modules/cs_enforce.so
+lib/anope/modules/cs_entrymsg.so
+lib/anope/modules/cs_flags.so
+lib/anope/modules/cs_getkey.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_log.so
+lib/anope/modules/cs_mode.so
+lib/anope/modules/cs_register.so
+lib/anope/modules/cs_seen.so
+lib/anope/modules/cs_set.so
+lib/anope/modules/cs_set_misc.so
+lib/anope/modules/cs_status.so
+lib/anope/modules/cs_statusupdate.so
+lib/anope/modules/cs_suspend.so
+lib/anope/modules/cs_sync.so
+lib/anope/modules/cs_topic.so
+lib/anope/modules/cs_unban.so
+lib/anope/modules/cs_updown.so
+lib/anope/modules/cs_xop.so
+lib/anope/modules/db_flatfile.so
+lib/anope/modules/db_old.so
+lib/anope/modules/db_redis.so
+lib/anope/modules/db_sql.so
+lib/anope/modules/db_sql_live.so
+lib/anope/modules/enc_bcrypt.so
+lib/anope/modules/enc_md5.so
+lib/anope/modules/enc_none.so
+lib/anope/modules/enc_old.so
+lib/anope/modules/enc_sha1.so
+lib/anope/modules/enc_sha256.so
+lib/anope/modules/fantasy.so
+lib/anope/modules/gl_global.so
+lib/anope/modules/global.so
+lib/anope/modules/greet.so
+lib/anope/modules/help.so
+lib/anope/modules/hostserv.so
+lib/anope/modules/hs_del.so
+lib/anope/modules/hs_group.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/hybrid.so
+lib/anope/modules/inspircd12.so
+lib/anope/modules/inspircd20.so
+lib/anope/modules/m_dns.so
+lib/anope/modules/m_dnsbl.so
+lib/anope/modules/m_helpchan.so
+lib/anope/modules/m_httpd.so
+${PLIST.ldap}lib/anope/modules/m_ldap.so
+${PLIST.ldap}lib/anope/modules/m_ldap_authentication.so
+${PLIST.mysql}lib/anope/modules/m_mysql.so
+lib/anope/modules/m_proxyscan.so
+lib/anope/modules/m_redis.so
+${PLIST.pcre}lib/anope/modules/m_regex_pcre.so
+lib/anope/modules/m_rewrite.so
+lib/anope/modules/m_sasl.so
+${PLIST.sqlite3}lib/anope/modules/m_sqlite.so
+${PLIST.gnutls}lib/anope/modules/m_ssl_gnutls.so
+${PLIST.openssl}lib/anope/modules/m_ssl_openssl.so
+lib/anope/modules/m_xmlrpc.so
+lib/anope/modules/m_xmlrpc_main.so
+lib/anope/modules/memoserv.so
+lib/anope/modules/ms_cancel.so
+lib/anope/modules/ms_check.so
+lib/anope/modules/ms_del.so
+lib/anope/modules/ms_ignore.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/ngircd.so
+lib/anope/modules/nickserv.so
+lib/anope/modules/ns_access.so
+lib/anope/modules/ns_ajoin.so
+lib/anope/modules/ns_alist.so
+lib/anope/modules/ns_cert.so
+lib/anope/modules/ns_drop.so
+lib/anope/modules/ns_getemail.so
+lib/anope/modules/ns_getpass.so
+lib/anope/modules/ns_group.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_resetpass.so
+lib/anope/modules/ns_set.so
+lib/anope/modules/ns_set_misc.so
+lib/anope/modules/ns_status.so
+lib/anope/modules/ns_suspend.so
+lib/anope/modules/ns_update.so
+lib/anope/modules/operserv.so
+lib/anope/modules/os_akill.so
+lib/anope/modules/os_chankill.so
+lib/anope/modules/os_config.so
+lib/anope/modules/os_defcon.so
+lib/anope/modules/os_dns.so
+lib/anope/modules/os_forbid.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_kill.so
+lib/anope/modules/os_list.so
+lib/anope/modules/os_login.so
+lib/anope/modules/os_logsearch.so
+lib/anope/modules/os_mode.so
+lib/anope/modules/os_modinfo.so
+lib/anope/modules/os_module.so
+lib/anope/modules/os_news.so
+lib/anope/modules/os_noop.so
+lib/anope/modules/os_oline.so
+lib/anope/modules/os_oper.so
+lib/anope/modules/os_reload.so
+lib/anope/modules/os_session.so
+lib/anope/modules/os_set.so
+lib/anope/modules/os_shutdown.so
+lib/anope/modules/os_stats.so
+lib/anope/modules/os_svs.so
+lib/anope/modules/os_sxline.so
+lib/anope/modules/os_update.so
+lib/anope/modules/plexus.so
+lib/anope/modules/ratbox.so
+lib/anope/modules/unreal.so
+lib/anope/modules/unreal4.so
+lib/anope/modules/webcpanel.so
+share/doc/anope/example.chk
+share/doc/anope/stats.standalone.example.conf
+share/examples/anope/chanstats.conf
+share/examples/anope/global.conf
+share/examples/anope/hostserv.conf
+share/examples/anope/irc2sql.conf
+share/examples/anope/memoserv.conf
+share/examples/anope/modules.conf
+share/examples/anope/nickserv.conf
+share/examples/anope/operserv.conf
+share/examples/anope/services.conf
+share/locale/ca_ES/LC_MESSAGES/anope.mo
+share/locale/de_DE/LC_MESSAGES/anope.mo
+share/locale/el_GR/LC_MESSAGES/anope.mo
+share/locale/en_US/LC_MESSAGES/anope.mo
+share/locale/es_ES/LC_MESSAGES/anope.mo
+share/locale/fr_FR/LC_MESSAGES/anope.mo
+share/locale/hu_HU/LC_MESSAGES/anope.mo
+share/locale/it_IT/LC_MESSAGES/anope.mo
+share/locale/nl_NL/LC_MESSAGES/anope.mo
+share/locale/pl_PL/LC_MESSAGES/anope.mo
+share/locale/pt_PT/LC_MESSAGES/anope.mo
+share/locale/ru_RU/LC_MESSAGES/anope.mo
+share/locale/tr_TR/LC_MESSAGES/anope.mo
+@pkgdir anope/logs
+@pkgdir anope/data/backups
diff --git a/anope/distinfo b/anope/distinfo
new file mode 100644
index 0000000000..af2fbae5f3
--- /dev/null
+++ b/anope/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (anope-2.0.6-source.tar.gz) = bba0c947657f7388da2980241bc11b03f9f64743
+RMD160 (anope-2.0.6-source.tar.gz) = 1771ee896cf30f9962abec56aed3a5f71f17b8e0
+SHA512 (anope-2.0.6-source.tar.gz) = c100758d6159023832bc7a4dceb7d554a9b3cd9120b033efc9a93c7ff28e76a086d0594b66b9cd2946b231421217674990f2a3ebaa8a6598c2a25e2dafd1b65b
+Size (anope-2.0.6-source.tar.gz) = 1792912 bytes
+SHA1 (patch-data_example.conf) = 567577ec635e311cd8089c2a91896e1b8e6caf71
diff --git a/anope/options.mk b/anope/options.mk
new file mode 100644
index 0000000000..0542573bae
--- /dev/null
+++ b/anope/options.mk
@@ -0,0 +1,45 @@
+# $NetBSD: options.mk,v 1.5 2019/01/30 10:16:47 nia Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.anope
+PKG_SUPPORTED_OPTIONS=		gnutls openssl mysql ldap pcre sqlite3
+PKG_SUGGESTED_OPTIONS=		openssl
+PLIST_VARS+=			gnutls openssl mysql ldap pcre sqlite3
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnutls)
+PLIST.gnutls=	yes
+ANOPE_EXTRAS+=	m_ssl_gnutls.cpp
+.include "../../security/gnutls/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+PLIST.openssl=	yes
+ANOPE_EXTRAS+=	m_ssl_openssl.cpp
+.include "../../security/openssl/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+PLIST.mysql=	yes
+ANOPE_EXTRAS+=	m_mysql.cpp
+.include "../../mk/mysql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+PLIST.ldap=	yes
+ANOPE_EXTRAS+=	m_ldap.cpp
+ANOPE_EXTRAS+=	m_ldap_authentication.cpp
+.include "../../databases/openldap-client/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpcre)
+PLIST.pcre=	yes
+ANOPE_EXTRAS+=	m_regex_pcre.cpp
+.include "../../devel/pcre/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlite3)
+PLIST.sqlite3=	yes
+ANOPE_EXTRAS+=	m_sqlite.cpp
+.include "../../databases/sqlite3/buildlink3.mk"
+.endif
diff --git a/anope/patches/patch-data_example.conf b/anope/patches/patch-data_example.conf
new file mode 100644
index 0000000000..99baa434a0
--- /dev/null
+++ b/anope/patches/patch-data_example.conf
@@ -0,0 +1,94 @@
+$NetBSD$
+
+Fix config file filenames for pkgsrc's CONF_FILES system.
+
+--- data/example.conf.orig	2017-03-30 21:00:24.000000000 +0000
++++ data/example.conf
+@@ -560,7 +560,7 @@ options
+ include
+ {
+ 	type = "file"
+-	name = "botserv.example.conf"
++	name = "botserv.conf"
+ }
+ 
+ /*
+@@ -573,7 +573,7 @@ include
+ include
+ {
+ 	type = "file"
+-	name = "chanserv.example.conf"
++	name = "chanserv.conf"
+ }
+ 
+ /*
+@@ -586,7 +586,7 @@ include
+ include
+ {
+ 	type = "file"
+-	name = "global.example.conf"
++	name = "global.conf"
+ }
+ 
+ /*
+@@ -599,7 +599,7 @@ include
+ include
+ {
+ 	type = "file"
+-	name = "hostserv.example.conf"
++	name = "hostserv.conf"
+ }
+ 
+ /*
+@@ -612,7 +612,7 @@ include
+ include
+ {
+ 	type = "file"
+-	name = "memoserv.example.conf"
++	name = "memoserv.conf"
+ }
+ 
+ /*
+@@ -625,7 +625,7 @@ include
+ include
+ {
+ 	type = "file"
+-	name = "nickserv.example.conf"
++	name = "nickserv.conf"
+ }
+ 
+ /*
+@@ -638,7 +638,7 @@ include
+ include
+ {
+ 	type = "file"
+-	name = "operserv.example.conf"
++	name = "operserv.conf"
+ }
+ 
+ /*
+@@ -1232,7 +1232,7 @@ module { name = "enc_sha256" }
+ include
+ {
+ 	type = "file"
+-	name = "modules.example.conf"
++	name = "modules.conf"
+ }
+ 
+ /*
+@@ -1242,7 +1242,7 @@ include
+ #include
+ {
+ 	type = "file"
+-	name = "chanstats.example.conf"
++	name = "chanstats.conf"
+ }
+ 
+ /*
+@@ -1255,5 +1255,5 @@ include
+ #include
+ {
+ 	type = "file"
+-	name = "irc2sql.example.conf"
++	name = "irc2sql.conf"
+ }


Home | Main Index | Thread Index | Old Index