1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 thisapp = ulogd-%{version}
13 groups = Networking/Statistics
14 url = http://netfilter.org/projects/ulogd/index.html
16 summary = The userspace logging daemon for netfilter.
19 This package contains utilities for configuring the linux ethernet
20 bridge. The linux ethernet bridge can be used for connecting multiple
21 ethernet devices together. The connecting is fully transparent: hosts
22 connected to one ethernet device see hosts connected to the other
23 ethernet devices directly.
26 source_dl = http://ftp.netfilter.org/pub/ulogd/
27 sources = %{thisapp}.tar.bz2
32 libnfnetlink-devel >= 1.0.1
33 libnetfilter_acct-devel >= 1.0.1
34 libnetfilter_conntrack-devel >= 1.0.2
35 libnetfilter_log-devel
40 # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins
43 --libdir=%{prefix}/lib
46 mkdir -pv %{BUILDROOT}%{sysconfdir}
47 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}%{sysconfdir}/ulogd.conf
49 mkdir -pv %{BUILDROOT}%{sharedstatedir}/ulogd
50 sqlite3 -echo %{BUILDROOT}%{sharedstatedir}/ulogd/ulogd.db \
51 < %{DIR_SOURCE}/sqlite3.table
59 libnetfilter_acct >= 1.0.1
60 libnetfilter_conntrack >= 1.0.2
64 %{sysconfdir}/ulogd.conf
68 %{sharedstatedir}/ulogd/ulogd.db
72 systemctl daemon-reload >/dev/null 2>&1 || :
73 systemctl enable ulogd.service >/dev/null 2>&1 || :
77 systemctl --no-reload disable ulogd.service >/dev/null 2>&1 || :
78 systemctl stop ulogd.service >/dev/null 2>&1 || :
82 systemctl daemon-reload >/dev/null 2>&1 || :
86 systemctl daemon-reload >/dev/null 2>&1 || :
87 systemctl try-restart ulogd.service >/dev/null 2>&1 || :
91 package %{name}-debuginfo