Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/ulogd/files: ulogd.init ulogd.service ulogd-2.0.5-remove-db-automagic.patch ulogd.logrotate ulogd-2-ng.init ulogd-2.logrotate
Date: Sat, 30 May 2015 09:38:33
Message-Id: 20150530093829.9B5B6A0C@oystercatcher.gentoo.org
1 idella4 15/05/30 09:38:29
2
3 Added: ulogd.init ulogd.service
4 ulogd-2.0.5-remove-db-automagic.patch
5 ulogd.logrotate
6 Removed: ulogd-2-ng.init ulogd-2.logrotate
7 Log:
8 revbump; upgrade -2.0.4 with support of systemd via new system files listed. bump; additional support as for revbump, all files and patches by maintainer from bug #550330, add use flag ulog to metadata, rm old version -2.0.3
9
10 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
11
12 Revision Changes Path
13 1.1 app-admin/ulogd/files/ulogd.init
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd.init?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd.init?rev=1.1&content-type=text/plain
17
18 Index: ulogd.init
19 ===================================================================
20 #!/sbin/runscript
21 # Copyright 1999-2015 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23 # $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/files/ulogd.init,v 1.1 2015/05/30 09:38:29 idella4 Exp $
24
25 extra_started_commands="reload reopen"
26
27 : ${ULOGD_BINARY:=/usr/sbin/ulogd}
28 : ${ULOGD_PIDFILE:=/run/${SVCNAME}.pid}
29 : ${ULOGD_OPTS:=--daemon --uid ulogd --pidfile ${ULOGD_PIDFILE}}
30
31 depend() {
32 before iptables ip6tables ebtables firewall
33 after mysql postgresql
34 }
35
36 start() {
37 ebegin "Starting ${SVCNAME}"
38 start-stop-daemon --start \
39 --exec ${ULOGD_BINARY} --pidfile ${ULOGD_PIDFILE} \
40 -- ${ULOGD_OPTS}
41 eend $?
42 }
43
44 stop() {
45 ebegin "Stopping ${SVCNAME}"
46 start-stop-daemon --stop --pidfile ${ULOGD_PIDFILE}
47 eend $?
48 }
49
50 reload() {
51 ebegin "Reloading ${SVCNAME} configuration"
52 start-stop-daemon --signal USR1 --pidfile ${ULOGD_PIDFILE}
53 eend $?
54 }
55
56 reopen() {
57 ebegin "Reopening ${SVCNAME} logfiles"
58 start-stop-daemon --signal HUP --pidfile ${ULOGD_PIDFILE}
59 eend $?
60 }
61
62
63
64 1.1 app-admin/ulogd/files/ulogd.service
65
66 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd.service?rev=1.1&view=markup
67 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd.service?rev=1.1&content-type=text/plain
68
69 Index: ulogd.service
70 ===================================================================
71 [Unit]
72 Description=A userspace logging daemon for netfilter/iptables related logging
73 Before=iptables.service ip6tables.service
74 After=mysql.service postgresql.service
75
76 [Service]
77 Type=simple
78 ExecStart=/usr/sbin/ulogd --uid ulogd --pidfile /run/ulogd.pid
79 ExecReload=/bin/kill -USR1 $MAINPID
80
81 [Install]
82 WantedBy=network.target
83
84
85
86 1.1 app-admin/ulogd/files/ulogd-2.0.5-remove-db-automagic.patch
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd-2.0.5-remove-db-automagic.patch?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd-2.0.5-remove-db-automagic.patch?rev=1.1&content-type=text/plain
90
91 Index: ulogd-2.0.5-remove-db-automagic.patch
92 ===================================================================
93 commit c61c05c2d050410c24346d42b013d7cb39149949
94 Author: Harald Welte <laforge@××××××××.org>
95 Date: Sun May 3 11:08:54 2015 +0200
96
97 configure.ac: Add --without-{mysql,pgsql}
98
99 In some cases you may not want to build a certain output plugin, even
100 if the headers/libraries actually exist on the build host.
101
102 diff --git a/configure.ac b/configure.ac
103 index c814bec..1a7f8de 100644
104 --- a/configure.ac
105 +++ b/configure.ac
106 @@ -85,7 +85,10 @@ if [! test "x$enable_nfacct" = "xyes"]; then
107 enable_nfacct="no"
108 fi
109
110 -CT_CHECK_POSTGRES_DB()
111 +AC_ARG_WITH([pgsql], AS_HELP_STRING([--without-pgsql], [Build without postgresql output plugin [default=test]]))
112 +AS_IF([test "x$with_pgsql" != "xno"], [
113 + CT_CHECK_POSTGRES_DB()
114 +])
115 AM_CONDITIONAL(HAVE_PGSQL, test "x$PQLIBPATH" != "x")
116 if test "x$PQLIBPATH" != "x"; then
117 enable_pgsql="yes"
118 @@ -93,7 +96,10 @@ else
119 enable_pgsql="no"
120 fi
121
122 -CT_CHECK_MYSQL_DB()
123 +AC_ARG_WITH([mysql], AS_HELP_STRING([--without-mysql], [Build without mysql output plugin [default=test]]))
124 +AS_IF([test "x$with_mysql" != "xno"], [
125 + CT_CHECK_MYSQL_DB()
126 +])
127 AM_CONDITIONAL(HAVE_MYSQL, test "x$MYSQL_LIB" != "x")
128 if test "x$MYSQL_LIB" != "x"; then
129 enable_mysql="yes"
130 @@ -101,6 +107,7 @@ else
131 enable_mysql="no"
132 fi
133
134 +
135 AC_ARG_WITH([sqlite], AS_HELP_STRING([--without-sqlite], [Build without SQLITE3 output plugin [default=test]]))
136 AS_IF([test "x$with_sqlite" != "xno"], [
137 PKG_CHECK_MODULES([libsqlite3], [sqlite3], [], [:])
138
139
140
141 1.1 app-admin/ulogd/files/ulogd.logrotate
142
143 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd.logrotate?rev=1.1&view=markup
144 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/ulogd/files/ulogd.logrotate?rev=1.1&content-type=text/plain
145
146 Index: ulogd.logrotate
147 ===================================================================
148 /var/log/ulogd/*.log {
149 sharedscripts
150 missingok
151 notifempty
152 create 0640 ulogd
153 postrotate
154 [ -f /run/ulogd.pid ] && /bin/kill -HUP $(cat /run/ulogd.pid)
155 endscript
156 }