181 Commits

Author SHA1 Message Date
Falk Rund
ad6a397ca4 Welcome to 2026
[skip ci]
2026-01-01 13:44:32 +01:00
Peter
44e4b95a20 Welcome to 2025 (#1929) 2025-02-07 23:23:45 +00:00
Alexey Sokolov
4202b3ac3c Show a better error message if cmake is missing 2024-03-03 21:47:45 +00:00
Falk Rund
17a004aa0b Welcome to 2024
[skip ci]
2023-12-31 21:09:25 +01:00
Alexey Sokolov
a1a254bef1 Update password hashes from SHA-256 to Argon2id
These days salted SHA-256 is considered quite weak for passwords.

Transparently upgrade existing hashes upon login.

Bump cmake requirement to able to use IMPORTED_TARGET, this will allow
further cleanup in next commits.
2023-09-27 01:11:07 +01:00
Falk Rund
f9fd05c307 Welcome to 2023 2023-01-01 06:49:00 +01:00
Falk Rund
6402d241ac Welcome to 2022
The same procedure as last year, Miss Sophie?
Same procedure as every year, James.
2022-01-01 14:05:32 +01:00
MAGIC
99687b0f24 Welcome to 2021 2021-01-01 19:37:07 +01:00
Alexey Sokolov
84d8375af1 Rename configure.sh cmake wrapper to configure
Since old configure is gone
2020-05-04 07:49:03 +01:00
darthgandalf
e2ce2cfed9 Removed configure. This is fix for the commit before the previous one.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2254 726aef4b-f618-498e-8847-2d620e286838
2011-01-07 18:00:58 +00:00
psychon
3ecbf13390 Use autoheader
This commit adds a zncconfig.h to ZNC that is automatically generated by
configure. This is done because the -DPACKAGE_STRING=\"znc\ 0.097\" that
configure adds to CXXFLAGS breaks znc-buildmod.

This means that we have to include zncconfig.h as the very first header in every
C++ file that is compiled. This commit kinda cheats and instead adds this
include as the very first thing to all header files we have. This should
hopefully mean that modules don't have to include this.

Because Csocket includes defines.h too late, this commit causes znc to divert
from upstream Csocket once again. :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2250 726aef4b-f618-498e-8847-2d620e286838
2011-01-07 15:01:08 +00:00
psychon
40a1bbacdf Fix for autoheader
autoheader wants a description for all definitions, so we have to provide one.
Meh.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2249 726aef4b-f618-498e-8847-2d620e286838
2011-01-05 19:54:20 +00:00
psychon
f4927709f9 Use AC_DEFINE for -D-style definitions
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2248 726aef4b-f618-498e-8847-2d620e286838
2011-01-05 19:40:54 +00:00
psychon
aeeb1eb35b Move some -D flags to Makefile
Doing it like this is the only supported way with autoconf and works around
quite some messy mess.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2247 726aef4b-f618-498e-8847-2d620e286838
2011-01-05 19:08:07 +00:00
psychon
e17348ca3f Fix detection of tcl and python with -Wl,--as-needed
The problem here was that libs where put into $LDFLAGS where they don't belong.
When you also use -Wl,--as-needed, sth like this is called:

  gcc -Wl,--as-needed -ltcl8.4 your.o objects.o here.o

Due to --as-needed, the linker will drop libtcl8.4 because by the time it sees
that option, nothing depends on it. And if nothing depends on some lib, it can
be dropped.

The fix here is obviously to put -ltcl8.4 into $LIBS (which is appended, not
prepended, to the command line).

The same reasoning goes for python.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2198 726aef4b-f618-498e-8847-2d620e286838
2010-12-23 10:03:21 +00:00
darthgandalf
a564e25c13 Add modpython module which allows to write ZNC modules on python3.
Notice for distro maintainers: perl interpreter is required to compile modpython.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2196 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:52:53 +00:00
darthgandalf
7b9d7094a8 Fix previous commit. It accidentally changed wrong file.
Also add advice to use --with-tcl if tcl isn't found.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2189 726aef4b-f618-498e-8847-2d620e286838
2010-12-20 13:09:46 +00:00
darthgandalf
89bd5275f0 ./configure checks now if modtcl can be built or not.
Many people had errors about couldn't find tcl.h if tcl isn't installed.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2188 726aef4b-f618-498e-8847-2d620e286838
2010-12-20 04:30:24 +00:00
darthgandalf
0bc606a928 Modperl uses some features of Perl 5.10, so let it depend on it.
Now we check version of perl in ./configure and on runtime when modperl is loaded.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2183 726aef4b-f618-498e-8847-2d620e286838
2010-12-05 06:27:09 +00:00
psychon
fcd8df5c87 Increase the version number to 0.097
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2169 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 14:57:13 +00:00
psychon
27c129633f Increase the version number to 0.096
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2167 726aef4b-f618-498e-8847-2d620e286838
2010-11-06 14:55:25 +00:00
darthgandalf
3c1b5d8f70 Fix bug in UI that was introduced in r1794.
ZNC shouldn't tell people to use unexistant options to ./configure

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2166 726aef4b-f618-498e-8847-2d620e286838
2010-10-26 16:20:57 +00:00
psychon
0f9f24683f Use poll() instead of select() by default
ZNC now uses poll() unless it is disabled by ./configure --disable-poll. This
should get rid of the limit to FD_SETSIZE sockets (~1024).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2153 726aef4b-f618-498e-8847-2d620e286838
2010-09-29 16:53:07 +00:00
psychon
5b32bc8659 configure: Correctly indent multi-line messages
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2121 726aef4b-f618-498e-8847-2d620e286838
2010-09-08 15:42:03 +00:00
darthgandalf
a44e6eaada Big update of modperl module.
Old modperl had several flaws and was very outdated.
New modperl makes the whole ZNC API accessible from inside perl.
Modperl API was changed, so old perl modules are not supported,
but they weren't used much anyway.

Modperl needs --enable-perl option to ./configure.

This introduces new dependence on SWIG, which is needed only while
compiling ZNC. So to use modperl, you need to install SWIG or
to download several files and use --disable-swig option of configure.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2120 726aef4b-f618-498e-8847-2d620e286838
2010-09-07 11:13:47 +00:00
psychon
3ca36c4af7 Increase the version number to 0.095
configure is now generated by autoconf 2.67 instead of 2.65.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2106 726aef4b-f618-498e-8847-2d620e286838
2010-08-20 14:14:52 +00:00
psychon
e1b4abe05c Increase the version number to 0.094
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2104 726aef4b-f618-498e-8847-2d620e286838
2010-08-20 14:12:15 +00:00
psychon
09c4f1466a Beware of flying spaghetti monsters, they bite.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2103 726aef4b-f618-498e-8847-2d620e286838
2010-08-18 07:59:55 +00:00
psychon
a4f8133e15 Fix a NULL pointer dereference in route_replies
When there was only one client with a pending request and that client
disconnected from ZNC, we didn't destroy the timeout. This means that the
associated timer eventually fired and then tried to display which request caused
the timeout. But since we already cleaned up the rest, this resulted in a NULL
pointer dereference.

This commit fixes also another bug: If two different clients got pending
requests and the client whose request was currently handled disconnected, we
didn't send the other client's request to the IRCd.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2102 726aef4b-f618-498e-8847-2d620e286838
2010-08-18 07:57:23 +00:00
psychon
6d33c5702b Print the prefix at the end of configure
This should help people who have to compile ZNC twice because they used the
wrong prefix the first time. ;)

Idea for this and the last commit are (c) SHiZNO (well, they were his ideas).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2080 726aef4b-f618-498e-8847-2d620e286838
2010-07-10 07:15:21 +00:00
psychon
e1d214bf03 Remove a bogus AC_MSG_RESULT
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2069 726aef4b-f618-498e-8847-2d620e286838
2010-07-05 17:23:19 +00:00
psychon
eb307ddc6f Use AC_PROG_INSTALL to find a usable install
Thanks to LeftWing aka Joshua M. Clulow. This patch is based on his work.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2067 726aef4b-f618-498e-8847-2d620e286838
2010-07-05 16:35:48 +00:00
psychon
17e7b0f4cf Increase the version number to 0.093
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2059 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 09:39:39 +00:00
psychon
4c69e66dec Make --with-openssl do more
It now also adds lib64 to the library search path. On 32-bit systems this won't
hurt because such a directory most likely does not exist.

Also, because we are trying to find pkg-config via openssl first, the
appropriate dirs are also added to $PKG_CONFIG_PATH.

Thanks to DarthGandalf for some good suggestions on this one.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2056 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 07:56:04 +00:00
psychon
a4d46e8c3c Check for c-ares 1.5.0 or later in configure
There was an API change to the callback type of ares_gethostbyname() in 1.5.0,
so znc won't compile with anything older than that.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2055 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 07:52:46 +00:00
psychon
811b04dfce Add aclocal.m4 and regenerate configure
The always-changing versions of the pkg-config m4 macros are mildly annoying.
To work around this, we now have a file aclocal.m4 (generated by aclocal) that
contains all the needed external macros. If you just call "autoconf", it will
use the macros from that file. "autoreconf" will call "aclocal" and "autoconf"
so that both files are up-to-date.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2054 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 07:50:22 +00:00
psychon
68c5ee5909 Try to use pkg-config for finding openssl
If using pkg-config fails, we fall back to the old method with AC_CHECK_LIB().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2018 726aef4b-f618-498e-8847-2d620e286838
2010-06-07 19:34:20 +00:00
psychon
39a215f35b configure: Really automatically disable perl if it's not found
Since r1895 configure tries to disable perl if it doesn't find the perl binary
or libperl, but there was a bug. If the perl binary existed but libperl wasn't
found, it pretended to disable modperl but didn't really. Whoops.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2017 726aef4b-f618-498e-8847-2d620e286838
2010-06-07 19:05:51 +00:00
psychon
35ef37acc4 Increase the version number to 0.091
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2009 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:26:05 +00:00
psychon
501c76a4d5 Increase the version number to 0.090
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2007 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:23:52 +00:00
psychon
1794ecd8c2 Better error message if pkg-config is not found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1983 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 18:44:25 +00:00
psychon
e2c694c933 configure: Check earlier for dlopen()
Linking against libcrypto.a apparently needs libdl, so we should check for this
before trying to find openssl's libs.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1969 726aef4b-f618-498e-8847-2d620e286838
2010-05-04 19:27:58 +00:00
cflakes
d72fc441d2 Added some more flags to the "summary" that configure prints at the end.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1950 726aef4b-f618-498e-8847-2d620e286838
2010-04-28 23:01:18 +00:00
cflakes
dee94a0bb8 Added the necessary checks for (lib)iconv in order to enable
the charset module from extra to do its thing. This has been
a pain in the ass and I'd like to thank psychon who made most
of the autofoo happen and BrianC for finding out that BSD sucks
and for testing! Yay!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1947 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:40:24 +00:00
psychon
5f1a1d0153 Outsmart autoconf
When checking for libperl, evil little autoconf thought we intent to use perl
everywhere (HAHA, no!) so it went forward and added -lperl to $LIBS. Despite
this being a bad idea in general (come on, it's perl!), this also made
subsequent checks fail because the linker didn't find libperl (we reverted back
LDFLAGS to an older value after checking for perl and so the path to libperl got
lost).

Fix this by outsmarting autoconf. Let's wait for the autofail to strike back!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1946 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:30:50 +00:00
psychon
0f6c1f9e16 Look, an invisible pink unicorn!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1928 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 16:38:03 +00:00
psychon
fe6a930a01 Add ./configure --enable-run-from-source
Unless this flag is used, znc will no longer look for modules in ./modules/
because this might be exploitable by lucky attackers.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1927 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 16:27:21 +00:00
psychon
57cfa9502f Re-intend stuff I was previously to lazy to
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1897 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 19:28:39 +00:00
psychon
16464664e8 Fail less badly if perl isn't found
After this, perl, c-ares and openssl now are handled similar if they aren't
found.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1895 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:55:27 +00:00
psychon
521695fbd9 Fail less badly if openssl isn't found
Instead of erroring out, openssl is now disabled with a warning if it's not
found, unless you explicitly used --enable-openssl in which case configure will
error out again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1894 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:30:55 +00:00