1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = ulogd-%{version}
11 groups = Networking/Statistics
12 url = https://netfilter.org/projects/ulogd/index.html
14 summary = The userspace logging daemon for netfilter
17 This package contains utilities for configuring the linux ethernet
18 bridge. The linux ethernet bridge can be used for connecting multiple
19 ethernet devices together. The connecting is fully transparent: hosts
20 connected to one ethernet device see hosts connected to the other
21 ethernet devices directly.
24 source_dl = https://www.netfilter.org/projects/ulogd/files/
25 sources = %{thisapp}.tar.bz2
30 libnfnetlink-devel >= 1.0.1
31 libnetfilter_acct-devel >= 1.0.1
32 libnetfilter_conntrack-devel >= 1.0.2
33 libnetfilter_log-devel
38 # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins
41 --libdir=%{prefix}/lib
44 mkdir -pv %{BUILDROOT}%{sysconfdir}
45 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}%{sysconfdir}/ulogd.conf
47 mkdir -pv %{BUILDROOT}%{sharedstatedir}/ulogd
48 sqlite3 -echo %{BUILDROOT}%{sharedstatedir}/ulogd/ulogd.db \
49 < %{DIR_SOURCE}/sqlite3.table
57 libnetfilter_acct >= 1.0.1
58 libnetfilter_conntrack >= 1.0.2
62 %{sysconfdir}/ulogd.conf
66 %{sharedstatedir}/ulogd/ulogd.db
70 systemctl daemon-reload >/dev/null 2>&1 || :
71 systemctl enable ulogd.service >/dev/null 2>&1 || :
75 systemctl --no-reload disable ulogd.service >/dev/null 2>&1 || :
76 systemctl stop ulogd.service >/dev/null 2>&1 || :
80 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl daemon-reload >/dev/null 2>&1 || :
85 systemctl try-restart ulogd.service >/dev/null 2>&1 || :
89 package %{name}-debuginfo