@@ -1024,6 +1024,7 @@ source "package/wpa_supplicant/Config.in"
source "package/wvdial/Config.in"
source "package/xinetd/Config.in"
source "package/xl2tp/Config.in"
+source "package/znc/Config.in"
endmenu
new file mode 100644
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_ZNC
+ bool "znc"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ Advanced IRC bouncer
+
+ http://www.znc.in
+
+comment "znc needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
new file mode 100644
@@ -0,0 +1,33 @@
+################################################################################
+#
+# znc
+#
+################################################################################
+
+ZNC_VERSION = b396cafdb249544164ed02942a5babba59e519a3
+ZNC_SITE = git://github.com/znc/znc.git
+ZNC_LICENSE = Apache-2.0
+ZNC_LICENSE_FILES = LICENSE
+ZNC_DEPENDENCIES = host-pkgconf \
+ $(if $(BR2_PACKAGE_ICU),icu) \
+ $(if $(BR2_PACKAGE_OPENSSL),openssl) \
+ $(if $(BR2_PACKAGE_ZLIB),zlib)
+
+define ZNC_RUN_AUTOGEN
+ cd $(@D) && PATH=$(HOST_PATH) ./autogen.sh
+endef
+ZNC_PRE_CONFIGURE_HOOKS += ZNC_RUN_AUTOGEN
+
+ZNC_CONF_OPT = --disable-perl \
+ $(if $(BR2_PACKAGE_ICU),--enable-icu,--disable-icu) \
+ $(if $(BR2_PACKAGE_OPENSSL),--enable-openssl,--disable-openssl) \
+ $(if $(BR2_PACKAGE_ZLIB),--enable-zlib,--disable-zlib)
+
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+ZNC_DEPENDENCIES += python3 host-swig
+ZNC_CONF_OPT += --enable-python=python3
+else
+ZNC_CONF_OPT += --disable-python
+endif
+
+$(eval $(autotools-package))