Module: ngircd.git
Branch: master
Commit: 419ff38a07cb0b1637b444c96cd6868a7a9e5524
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=419ff38a…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Jan 27 12:25:58 2013 +0100
autogen.sh: Don't use "egrep -o", use "sed"
"egrep -o" isn't portable and not available on OpenBSD, for example. So
let's use sed instead to get the automake version. The expression used
now is less specific but should work as well ...
---
autogen.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autogen.sh b/autogen.sh
index b1fa883..08cd4c2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -153,7 +153,7 @@ echo "Searching for required tools ..."
[ -z "$AUTOMAKE" ] && Notfound automake
[ -z "$AUTOCONF" ] && Notfound autoconf
-AM_VERSION=`$AUTOMAKE --version|head -n 1|egrep -o "([1-9]\.[0-9]+(\.[0-9]+)*)"`
+AM_VERSION=`$AUTOMAKE --version | head -n 1 | sed -e 's/.* //g'`
ifs=$IFS; IFS="."; set $AM_VERSION; IFS=$ifs
AM_MAJOR="$1"; AM_MINOR="$2"; AM_PATCHLEVEL="$3"
echo "Detected automake $AM_VERSION ..."
Module: ngircd.git
Branch: master
Commit: d38d153f51738da31d40036c7c48b32d82234018
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=d38d153f…
Author: Alexander Barton <alex(a)barton.de>
Date: Sat Jan 26 16:52:41 2013 +0100
Streamline punctuation of log messages
Make sure that all log messages end with a correct punctuation mark.
The rules for formatting log messages are:
1. Add punctuation marks to all messages passed to the actual logging
functions like Log() and LogDebug().
2. Don't add any punctuation marks to messages that are stored in
variables for later use or are passed over the network.
3. IP addresses, DNS host names and IRC server names should be quoted.
4. Messages originating in the network should be quoted (at least if
they are "untrusted" or variable).
Most probably this patch doesn't fix all mistakes, but it should be a
good starting point ...
---
src/ngircd/channel.c | 4 ++--
src/ngircd/client.c | 41 ++++++++++++++++++++++++++---------------
src/ngircd/conn.c | 29 +++++++++++++----------------
src/ngircd/io.c | 2 +-
src/ngircd/irc-login.c | 11 ++++++-----
src/ngircd/irc-server.c | 4 ++--
src/ngircd/irc.c | 2 +-
src/ngircd/ngircd.c | 22 ++++++++++++----------
8 files changed, 63 insertions(+), 52 deletions(-)
Diff: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=d38d…
Module: ngircd.git
Branch: master
Commit: a551942635bf2569851013e5a92d8ae918af7ca0
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=a5519426…
Author: DNS <dns(a)rbose.org>
Date: Tue Jan 22 21:36:03 2013 +0100
contrib/Debian/rules: Do no compress Commands.txt
This is required, because ngIRCd can't use a compressed file as
help text ...
(cherry picked from commit 6d09b4f366f656f6d2732ea96a653e086380e458)
---
contrib/Debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/Debian/rules b/contrib/Debian/rules
index 0aecde5..e02db22 100755
--- a/contrib/Debian/rules
+++ b/contrib/Debian/rules
@@ -216,7 +216,7 @@ binary-arch: build install
dh_installdocs -a
dh_installinit -a
dh_strip -a --no-package=ngircd-full-dbg
- dh_compress -a
+ dh_compress -a -XCommands.txt
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
Module: ngircd.git
Branch: master
Commit: 3d49e8ac84b49be07565bc1a19759184b4006317
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=3d49e8ac…
Author: Alexander Barton <alex(a)barton.de>
Date: Wed Jan 23 00:41:02 2013 +0100
ngircd.service: Use "forking" service type
Don't run ngIRCd in forground mode but let it daemonize itself. This
enhances the log output of "systemctl status ngircd.service", because
now ngIRCd doesn't print out its PID and timestamp on each log message
which is redundant: it becomes logged by systemd/journald already.
---
contrib/ngircd.service | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/ngircd.service b/contrib/ngircd.service
index b5bab06..b71eef2 100644
--- a/contrib/ngircd.service
+++ b/contrib/ngircd.service
@@ -3,8 +3,8 @@ Description=Next Generation IRC Daemon
After=network.target
[Service]
-# don't daemonize to simplify stuff
-ExecStart=/usr/sbin/ngircd -n
+Type=forking
+ExecStart=/usr/sbin/ngircd
ExecReload=/bin/kill -HUP $MAINPID
[Install]