diff --git a/srcpkgs/znc-devel b/srcpkgs/znc-devel new file mode 120000 index 0000000000..757c90c892 --- /dev/null +++ b/srcpkgs/znc-devel @@ -0,0 +1 @@ +znc \ No newline at end of file diff --git a/srcpkgs/znc-perl b/srcpkgs/znc-perl new file mode 120000 index 0000000000..757c90c892 --- /dev/null +++ b/srcpkgs/znc-perl @@ -0,0 +1 @@ +znc \ No newline at end of file diff --git a/srcpkgs/znc-python3.4 b/srcpkgs/znc-python3.4 new file mode 120000 index 0000000000..757c90c892 --- /dev/null +++ b/srcpkgs/znc-python3.4 @@ -0,0 +1 @@ +znc \ No newline at end of file diff --git a/srcpkgs/znc-tcl b/srcpkgs/znc-tcl new file mode 120000 index 0000000000..757c90c892 --- /dev/null +++ b/srcpkgs/znc-tcl @@ -0,0 +1 @@ +znc \ No newline at end of file diff --git a/srcpkgs/znc/INSTALL.msg b/srcpkgs/znc/INSTALL.msg new file mode 100644 index 0000000000..3d45cf56a4 --- /dev/null +++ b/srcpkgs/znc/INSTALL.msg @@ -0,0 +1 @@ +Use 'sudo -u znc znc --makeconf' to generate your first config diff --git a/srcpkgs/znc/files/znc/run b/srcpkgs/znc/files/znc/run new file mode 100644 index 0000000000..8d200bc171 --- /dev/null +++ b/srcpkgs/znc/files/znc/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u znc:znc znc -f 2>&1 diff --git a/srcpkgs/znc/patches/configure_tcl.patch b/srcpkgs/znc/patches/configure_tcl.patch new file mode 100644 index 0000000000..7e7867b309 --- /dev/null +++ b/srcpkgs/znc/patches/configure_tcl.patch @@ -0,0 +1,46 @@ +diff --git configure configure +index c4957bb..b94faba 100755 +--- configure ++++ configure +@@ -5443,41 +5443,6 @@ if test "${with_tcl+set}" = set; then : + fi + + +- # This will need to be extended in the future, but I don't think +- # it's a good idea to stuff a shitload of random stuff in here right now +- for path in $TCL_DIR /usr/lib /usr/lib/tcl8.4 /usr/lib/tcl8.5 +- do +- file="${path}/tclConfig.sh" +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${file}" >&5 +-$as_echo_n "checking for ${file}... " >&6; } +- if test -r ${file} +- then +- TCL_CONF=${file} +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- break +- fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- done +- +- if test x"${TCL_CONF}" = x +- then +- # They --enable-tcl'd, so give them some sane default +- TCL_FLAGS="-I/usr/include/tcl -ltcl" +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find tclConfig.sh, using some sane defaults." >&5 +-$as_echo "$as_me: WARNING: Could not find tclConfig.sh, using some sane defaults." >&2;} +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking modtcl flags" >&5 +-$as_echo_n "checking modtcl flags... " >&6; } +- . ${TCL_CONF} +- # eval because those vars depend on other vars in there +- eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" +- eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\"" +- TCL_FLAGS="$TCL_INCLUDE_SPEC $TCL_LIB_SPEC" +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_FLAGS" >&5 +-$as_echo "$TCL_FLAGS" >&6; } +- fi + my_saved_LIBS="$LIBS" + appendLib "$TCL_FLAGS" + ac_fn_cxx_check_func "$LINENO" "Tcl_CreateInterp" "ac_cv_func_Tcl_CreateInterp" diff --git a/srcpkgs/znc/patches/libressl.patch b/srcpkgs/znc/patches/libressl.patch new file mode 100644 index 0000000000..5df3a609a0 --- /dev/null +++ b/srcpkgs/znc/patches/libressl.patch @@ -0,0 +1,12 @@ +diff --git src/Csocket.cpp src/Csocket.cpp +index eb1066c..eab617a 100644 +--- src/Csocket.cpp ++++ src/Csocket.cpp +@@ -47,6 +47,7 @@ + #include + #include + #include ++#include + #endif /* HAVE_LIBSSL */ + + #ifdef HAVE_ICU diff --git a/srcpkgs/znc/template b/srcpkgs/znc/template new file mode 100644 index 0000000000..82c6d51ffb --- /dev/null +++ b/srcpkgs/znc/template @@ -0,0 +1,69 @@ +# Template file for 'znc' +pkgname=znc +version=1.6.0 +revision=1 +build_style=gnu-configure +configure_args=" + --enable-python + --enable-perl + --enable-tcl + --enable-cyrus + --sysconfdir=/etc + --localstatedir=/var" +system_accounts="znc" +znc_homedir="/var/lib/znc" +make_dirs="/var/lib/znc 0750 znc znc" +hostmakedepends="pkg-config perl" +makedepends="libressl-devel python3.4-devel tcl-devel libsasl-devel icu-devel zlib-devel perl" +short_desc="An advanced IRC Bouncer" +maintainer="Duncaen " +license="Apache-2.0" +homepage="http://znc.in/" +distfiles="http://znc.in/releases/$pkgname-$version.tar.gz" +checksum=df622aeae34d26193c738dff6499e56ad669ec654484e19623738d84cc80aba7 + +do_configure() { + export TCL_FLAGS="-I${XBPS_CROSS_BASE}/usr/include -L${XBPS_CROSS_BASE}/usr/lib -ltcl8.6" + ${configure_script} ${configure_args} +} + +post_install() { + vsv znc +} + +znc-python3.4_package() { + depends="znc>=${version}_${revision}" + short_desc+=" - python3.4 plugin" + pkg_install() { + vmove usr/lib/znc/modpython + vmove usr/lib/znc/modpython.so + } +} + +znc-perl_package() { + depends="znc>=${version}_${revision}" + short_desc+=" - perl plugin" + pkg_install() { + vmove usr/lib/znc/modperl + vmove usr/lib/znc/modperl.so + vmove usr/lib/znc/perleval.pm + } +} + +znc-tcl_package() { + depends="znc>=${version}_${revision}" + short_desc+=" - tcl plugin" + pkg_install() { + vmove usr/share/znc/modtcl + vmove usr/lib/znc/modtcl.so + } +} + +znc-devel_package() { + depends="znc>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + } +}