diff options
author | nia <nia@pkgsrc.org> | 2018-12-16 02:05:23 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2018-12-16 02:05:23 +0000 |
commit | 2f24029d5d3aac209a5945bab2349d75d901d799 (patch) | |
tree | 31146353ac46829625eaa001c1680293626736ca /chat/znc | |
parent | 0d621b2ff510007bd095e2fae5f2547c394f40a6 (diff) | |
download | pkgsrc-2f24029d5d3aac209a5945bab2349d75d901d799.tar.gz |
chat/znc: Import version 1.7.1. Based on work in pkgsrc-wip.
ZNC is an advanced IRC bouncer with IPv6 and SSL support.
Diffstat (limited to 'chat/znc')
-rw-r--r-- | chat/znc/DESCR | 1 | ||||
-rw-r--r-- | chat/znc/MESSAGE | 9 | ||||
-rw-r--r-- | chat/znc/Makefile | 67 | ||||
-rw-r--r-- | chat/znc/PLIST | 173 | ||||
-rw-r--r-- | chat/znc/PLIST.cyrus | 2 | ||||
-rw-r--r-- | chat/znc/PLIST.perl | 6 | ||||
-rw-r--r-- | chat/znc/PLIST.python | 6 | ||||
-rw-r--r-- | chat/znc/PLIST.tcl | 4 | ||||
-rw-r--r-- | chat/znc/distinfo | 6 | ||||
-rw-r--r-- | chat/znc/files/znc.sh | 45 | ||||
-rw-r--r-- | chat/znc/options.mk | 48 |
11 files changed, 367 insertions, 0 deletions
diff --git a/chat/znc/DESCR b/chat/znc/DESCR new file mode 100644 index 00000000000..1346d8dc70b --- /dev/null +++ b/chat/znc/DESCR @@ -0,0 +1 @@ +ZNC is an advanced IRC bouncer with IPv6 and SSL support. diff --git a/chat/znc/MESSAGE b/chat/znc/MESSAGE new file mode 100644 index 00000000000..49be19dd299 --- /dev/null +++ b/chat/znc/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2018/12/16 02:05:23 nia Exp $ + +Add the following to /etc/rc.conf: + +znc=YES +znc_user="znc" + +=========================================================================== diff --git a/chat/znc/Makefile b/chat/znc/Makefile new file mode 100644 index 00000000000..c32bd33a11e --- /dev/null +++ b/chat/znc/Makefile @@ -0,0 +1,67 @@ +# $NetBSD: Makefile,v 1.1 2018/12/16 02:05:23 nia Exp $ + +DISTNAME= znc-1.7.1 +CATEGORIES= net +MASTER_SITES= http://znc.in/releases/archive/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://znc.in/ +COMMENT= Advanced IRC bouncer with IPv6 and SSL support +LICENSE= gnu-gpl-v2 + +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +USE_TOOLS+= bsdtar gmake pkg-config +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +PKGCONFIG_OVERRIDE+= znc.pc.in + +PLIST_SRC= PLIST +PLIST_SUBST+= ZNC_USER="${ZNC_USER}" +PLIST_SUBST+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}" +PLIST_SUBST+= PKG_PREFIX="${PREFIX}" + +PKG_SYSCONFSUBDIR= ${PKGBASE} + +.include "../../mk/bsd.prefs.mk" + +ZNC_USER?= znc +ZNC_GROUP?= znc +PKG_GROUPS= ${ZNC_GROUP} +PKG_USERS= ${ZNC_USER}:${ZNC_GROUP} +PKG_GROUPS_VARS= ZNC_USER +PKG_USERS_VARS= ZNC_GROUP + +SUBST_CLASSES+= fix-man-znc +SUBST_STAGE.fix-man-znc= pre-configure +SUBST_MESSAGE.fix-man-znc= Fixing absolute paths in znc.1 manpage. +SUBST_FILES.fix-man-znc= man/znc.1 +SUBST_SED.fix-man-znc= -e 's,\~\/\.znc,${PKG_SYSCONFDIR},g' +SUBST_SED.fix-man-znc+= -e 's,\/usr\/local,${PREFIX},g' + +SUBST_CLASSES+= fix-tar +SUBST_STAGE.fix-tar= pre-build +SUBST_MESSAGE.fix-tar= Replace tar executable name. +SUBST_FILES.fix-tar+= modules/modperl/Makefile.inc +SUBST_FILES.fix-tar+= modules/modpython/Makefile.inc +SUBST_SED.fix-tar= -e 's,tar -xf ,bsdtar -xf ,g' + +BUILD_DEFS+= VARBASE +BUILD_DEFS+= PKG_SYSCONFDIR +BUILD_DEFS+= ZNC_USER +BUILD_DEFS+= ZNC_GROUP + +RCD_SCRIPTS+= znc +PTHREAD_AUTO_VARS= yes + +OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${ZNC_USER} ${ZNC_GROUP} 0755 + +MANCOMPRESSED= yes + +.include "options.mk" + +.include "../../devel/libgetopt/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/chat/znc/PLIST b/chat/znc/PLIST new file mode 100644 index 00000000000..59e2d166cfd --- /dev/null +++ b/chat/znc/PLIST @@ -0,0 +1,173 @@ +@comment $NetBSD: PLIST,v 1.1 2018/12/16 02:05:23 nia Exp $ +bin/znc +bin/znc-buildmod +include/znc/Buffer.h +include/znc/Chan.h +include/znc/Client.h +include/znc/Config.h +include/znc/Csocket.h +include/znc/ExecSock.h +include/znc/FileUtils.h +include/znc/HTTPSock.h +include/znc/IRCNetwork.h +include/znc/IRCSock.h +include/znc/Listener.h +include/znc/MD5.h +include/znc/Message.h +include/znc/Modules.h +include/znc/Nick.h +include/znc/Query.h +include/znc/SHA256.h +include/znc/SSLVerifyHost.h +include/znc/Server.h +include/znc/Socket.h +include/znc/Template.h +include/znc/Threads.h +include/znc/Translation.h +include/znc/User.h +include/znc/Utils.h +include/znc/WebModules.h +include/znc/ZNCDebug.h +include/znc/ZNCString.h +include/znc/defines.h +include/znc/main.h +include/znc/version.h +include/znc/znc.h +include/znc/zncconfig.h +lib/pkgconfig/znc.pc +lib/znc/admindebug.so +lib/znc/adminlog.so +lib/znc/alias.so +lib/znc/autoattach.so +lib/znc/autocycle.so +lib/znc/autoop.so +lib/znc/autoreply.so +lib/znc/autovoice.so +lib/znc/awaynick.so +lib/znc/awaystore.so +lib/znc/block_motd.so +lib/znc/blockuser.so +lib/znc/bouncedcc.so +lib/znc/buffextras.so +lib/znc/cert.so +lib/znc/certauth.so +lib/znc/chansaver.so +lib/znc/clearbufferonmsg.so +lib/znc/clientnotify.so +lib/znc/controlpanel.so +lib/znc/crypt.so +lib/znc/ctcpflood.so +lib/znc/dcc.so +lib/znc/disconkick.so +lib/znc/fail2ban.so +lib/znc/flooddetach.so +lib/znc/identfile.so +lib/znc/imapauth.so +lib/znc/keepnick.so +lib/znc/kickrejoin.so +lib/znc/lastseen.so +lib/znc/listsockets.so +lib/znc/log.so +lib/znc/missingmotd.so +lib/znc/modules_online.so +lib/znc/nickserv.so +lib/znc/notes.so +lib/znc/notify_connect.so +lib/znc/partyline.so +lib/znc/perform.so +lib/znc/q.so +lib/znc/raw.so +lib/znc/route_replies.so +lib/znc/sample.so +lib/znc/samplewebapi.so +lib/znc/sasl.so +lib/znc/savebuff.so +lib/znc/schat.so +lib/znc/send_raw.so +lib/znc/shell.so +lib/znc/simple_away.so +lib/znc/stickychan.so +lib/znc/stripcontrols.so +lib/znc/watch.so +lib/znc/webadmin.so +man/man1/znc-buildmod.1 +man/man1/znc.1 +share/znc/modules/blockuser/tmpl/blockuser_WebadminUser.tmpl +share/znc/modules/cert/tmpl/index.tmpl +share/znc/modules/certauth/tmpl/index.tmpl +share/znc/modules/lastseen/tmpl/index.tmpl +share/znc/modules/lastseen/tmpl/lastseen_WebadminUser.tmpl +share/znc/modules/listsockets/tmpl/index.tmpl +share/znc/modules/notes/files/trash.gif +share/znc/modules/notes/tmpl/index.tmpl +share/znc/modules/perform/tmpl/index.tmpl +share/znc/modules/q/tmpl/index.tmpl +share/znc/modules/samplewebapi/tmpl/index.tmpl +share/znc/modules/sasl/tmpl/index.tmpl +share/znc/modules/send_raw/files/select.js +share/znc/modules/send_raw/tmpl/index.tmpl +share/znc/modules/stickychan/tmpl/index.tmpl +share/znc/modules/stickychan/tmpl/stickychan_WebadminChan.tmpl +share/znc/modules/webadmin/files/webadmin.css +share/znc/modules/webadmin/files/webadmin.js +share/znc/modules/webadmin/tmpl/add_edit_chan.tmpl +share/znc/modules/webadmin/tmpl/add_edit_network.tmpl +share/znc/modules/webadmin/tmpl/add_edit_user.tmpl +share/znc/modules/webadmin/tmpl/del_network.tmpl +share/znc/modules/webadmin/tmpl/del_user.tmpl +share/znc/modules/webadmin/tmpl/encoding_settings.tmpl +share/znc/modules/webadmin/tmpl/index.tmpl +share/znc/modules/webadmin/tmpl/listusers.tmpl +share/znc/modules/webadmin/tmpl/settings.tmpl +share/znc/modules/webadmin/tmpl/traffic.tmpl +share/znc/webskins/_default_/pub/External.png +share/znc/webskins/_default_/pub/_default_.css +share/znc/webskins/_default_/pub/favicon.ico +share/znc/webskins/_default_/pub/global.css +share/znc/webskins/_default_/pub/jquery-1.11.2.js +share/znc/webskins/_default_/pub/jquery-1.11.2.min.js +share/znc/webskins/_default_/pub/jquery-ui-sortable.1.11.4.css +share/znc/webskins/_default_/pub/jquery-ui-sortable.1.11.4.js +share/znc/webskins/_default_/pub/jquery-ui-sortable.1.11.4.min.css +share/znc/webskins/_default_/pub/jquery-ui-sortable.1.11.4.min.js +share/znc/webskins/_default_/pub/robots.txt +share/znc/webskins/_default_/pub/selectize-0.12.1.css +share/znc/webskins/_default_/pub/selectize-standalone-0.12.1.js +share/znc/webskins/_default_/pub/selectize-standalone-0.12.1.min.js +share/znc/webskins/_default_/tmpl/Banner.tmpl +share/znc/webskins/_default_/tmpl/BaseHeader.tmpl +share/znc/webskins/_default_/tmpl/BreadCrumbs.tmpl +share/znc/webskins/_default_/tmpl/DocType.tmpl +share/znc/webskins/_default_/tmpl/Error.tmpl +share/znc/webskins/_default_/tmpl/ExtraHeader.tmpl +share/znc/webskins/_default_/tmpl/Footer.tmpl +share/znc/webskins/_default_/tmpl/FooterTag.tmpl +share/znc/webskins/_default_/tmpl/Header.tmpl +share/znc/webskins/_default_/tmpl/InfoBar.tmpl +share/znc/webskins/_default_/tmpl/LoginBar.tmpl +share/znc/webskins/_default_/tmpl/LowerBanner.tmpl +share/znc/webskins/_default_/tmpl/Menu.tmpl +share/znc/webskins/_default_/tmpl/MessageBar.tmpl +share/znc/webskins/_default_/tmpl/Options.tmpl +share/znc/webskins/_default_/tmpl/_csrf_check.tmpl +share/znc/webskins/_default_/tmpl/index.tmpl +share/znc/webskins/dark-clouds/pub/clouds-header.jpg +share/znc/webskins/dark-clouds/pub/dark-clouds.css +share/znc/webskins/dark-clouds/pub/favicon.ico +share/znc/webskins/dark-clouds/tmpl/Banner.tmpl +share/znc/webskins/dark-clouds/tmpl/FooterTag.tmpl +share/znc/webskins/dark-clouds/tmpl/Header.tmpl +share/znc/webskins/dark-clouds/tmpl/LowerBanner.tmpl +share/znc/webskins/forest/pub/favicon.ico +share/znc/webskins/forest/pub/forest-header.png +share/znc/webskins/forest/pub/forest.css +share/znc/webskins/forest/tmpl/Banner.tmpl +share/znc/webskins/forest/tmpl/FooterTag.tmpl +share/znc/webskins/forest/tmpl/Header.tmpl +share/znc/webskins/forest/tmpl/LowerBanner.tmpl +share/znc/webskins/ice/pub/favicon.ico +share/znc/webskins/ice/pub/ice.css +share/znc/webskins/ice/pub/linkbg.jpg +share/znc/webskins/ice/pub/pagebg.gif +share/znc/webskins/ice/tmpl/FooterTag.tmpl +share/znc/webskins/ice/tmpl/Header.tmpl diff --git a/chat/znc/PLIST.cyrus b/chat/znc/PLIST.cyrus new file mode 100644 index 00000000000..713dfee74b2 --- /dev/null +++ b/chat/znc/PLIST.cyrus @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST.cyrus,v 1.1 2018/12/16 02:05:23 nia Exp $ +lib/znc/cyrusauth.so diff --git a/chat/znc/PLIST.perl b/chat/znc/PLIST.perl new file mode 100644 index 00000000000..91a5dc92146 --- /dev/null +++ b/chat/znc/PLIST.perl @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST.perl,v 1.1 2018/12/16 02:05:23 nia Exp $ +lib/znc/modperl.so +lib/znc/modperl/ZNC.pm +lib/znc/modperl/ZNC.so +lib/znc/modperl/startup.pl +lib/znc/perleval.pm diff --git a/chat/znc/PLIST.python b/chat/znc/PLIST.python new file mode 100644 index 00000000000..e34b95a1339 --- /dev/null +++ b/chat/znc/PLIST.python @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST.python,v 1.1 2018/12/16 02:05:23 nia Exp $ +lib/znc/modpython.so +lib/znc/modpython/_znc_core.so +lib/znc/modpython/znc.py +lib/znc/modpython/znc_core.py +lib/znc/pyeval.py diff --git a/chat/znc/PLIST.tcl b/chat/znc/PLIST.tcl new file mode 100644 index 00000000000..bd3c938edfe --- /dev/null +++ b/chat/znc/PLIST.tcl @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST.tcl,v 1.1 2018/12/16 02:05:23 nia Exp $ +lib/znc/modtcl.so +share/znc/modtcl/binds.tcl +share/znc/modtcl/modtcl.tcl diff --git a/chat/znc/distinfo b/chat/znc/distinfo new file mode 100644 index 00000000000..d8e51556f28 --- /dev/null +++ b/chat/znc/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/12/16 02:05:23 nia Exp $ + +SHA1 (znc-1.7.1.tar.gz) = 6ad5ace06eb99e8b37adc1a9994e48b98cf14262 +RMD160 (znc-1.7.1.tar.gz) = 0223cc889466b0f41f52535b1ed866dabc708e5c +SHA512 (znc-1.7.1.tar.gz) = 907068fb0828091026d440145b70ca76109302f13c18d94f772660192434287f209a06a52da1dd39726b9a38735b3cea9afbd062eb6def4cd428bb73c562a902 +Size (znc-1.7.1.tar.gz) = 2041669 bytes diff --git a/chat/znc/files/znc.sh b/chat/znc/files/znc.sh new file mode 100644 index 00000000000..b5deb917f19 --- /dev/null +++ b/chat/znc/files/znc.sh @@ -0,0 +1,45 @@ +#!/bin/sh +# +# $NetBSD: znc.sh,v 1.1 2018/12/16 02:05:24 nia Exp $ +# +# RC-script for znc 1.0 +# + +# PROVIDE: znc +# REQUIRE: NETWORKING +# KEYWORD: shutdown + +${_rc_subr_loaded} . /etc/rc.subr + +name="znc" +rcvar="${name}" +command="@PREFIX@/bin/${name}" +saveconf_cmd="${name}_saveconf" +makeconf_cmd="${name}_makeconf" + +conf_dir="@PKG_SYSCONFDIR@" +conf_file="${conf_dir}/configs/${name}.conf" + +sig_saveconf="-USR1" + +required_files="${conf_file}" +extra_commands="reload saveconf makeconf" +command_args="-d ${conf_dir}" + +znc_saveconf(){ + pids="$(check_process ${command})" + if [ -n "$pids" ]; then + echo -n "Saving znc config files" + for pid in $pids; do + kill $sig_saveconf $pid + done + echo "." + fi +} + +znc_makeconf(){ + su -m ${znc_user} -c ${command} -d ${conf_dir} -r --makeconf +} + +load_rc_config "${name}" +run_rc_command "${1}" diff --git a/chat/znc/options.mk b/chat/znc/options.mk new file mode 100644 index 00000000000..24aa8b2cf85 --- /dev/null +++ b/chat/znc/options.mk @@ -0,0 +1,48 @@ +# $NetBSD: options.mk,v 1.1 2018/12/16 02:05:23 nia Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.znc +PKG_SUPPORTED_OPTIONS= debug inet6 perl python sasl tcl +PKG_SUGGESTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +# Debug build +.if !empty(PKG_OPTIONS:Mdebug) +CONFIGURE_ARGS+= --enable-debug +.endif + +# IPv6 support +.if empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --disable-ipv6 +.endif + +# Perl support +.if !empty(PKG_OPTIONS:Mperl) +.include "../../lang/perl5/buildlink3.mk" +CONFIGURE_ARGS+= --enable-perl +USE_TOOLS+= perl +PLIST_SRC+= PLIST.perl +.endif + +# TCL option +.if !empty(PKG_OPTIONS:Mtcl) +.include "../../lang/tcl/buildlink3.mk" +CONFIGURE_ARGS+= --enable-tcl +CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}/lib +PLIST_SRC+= PLIST.tcl +.endif + +# Python support +.if !empty(PKG_OPTIONS:Mpython) +PYTHON_VERSIONS_INCOMPATIBLE= 27 +.include "../../lang/python/extension.mk" +CONFIGURE_ARGS+= --enable-python=python-${PYVERSSUFFIX} +PLIST_SRC+= PLIST.python +.endif + +# Cyrus SASL support +.if !empty(PKG_OPTIONS:Msasl) +.include "../../security/cyrus-sasl/buildlink3.mk" +CONFIGURE_ARGS+= --enable-cyrus +PLIST_SRC+= PLIST.cyrus +.endif |