]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - ulogd2/ulogd2.nm
elfutils: Correctly configure debuginfod
[people/pmueller/ipfire-3.x.git] / ulogd2 / ulogd2.nm
CommitLineData
ab6e2138 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
ab6e2138
MT
4###############################################################################
5
900ca389 6name = ulogd2
d8eda5ee 7version = 2.0.8
fb0b5f5a 8release = 1.1
900ca389 9thisapp = ulogd-%{version}
ab6e2138 10
802ea3af 11groups = Networking/Statistics
d8eda5ee 12url = https://netfilter.org/projects/ulogd/index.html
802ea3af 13license = GPLv2
d8eda5ee 14summary = The userspace logging daemon for netfilter
ab6e2138 15
802ea3af
MT
16description
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
ab6e2138 21 ethernet devices directly.
802ea3af
MT
22end
23
d8eda5ee 24source_dl = https://www.netfilter.org/projects/ulogd/files/
802ea3af
MT
25sources = %{thisapp}.tar.bz2
26
27build
28 requires
811ceba0 29 libmnl-devel
856a1edb
MT
30 libnfnetlink-devel >= 1.0.1
31 libnetfilter_acct-devel >= 1.0.1
32 libnetfilter_conntrack-devel >= 1.0.2
802ea3af
MT
33 libnetfilter_log-devel
34 libpcap-devel
802ea3af
MT
35 sqlite-devel
36 end
37
811ceba0
SS
38 # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins
39 # to this folder.
802ea3af 40 configure_options+= \
811ceba0 41 --libdir=%{prefix}/lib
802ea3af
MT
42
43 install_cmds
ce284ff3
MT
44 mkdir -pv %{BUILDROOT}%{sysconfdir}
45 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}%{sysconfdir}/ulogd.conf
802ea3af 46
ce284ff3
MT
47 mkdir -pv %{BUILDROOT}%{sharedstatedir}/ulogd
48 sqlite3 -echo %{BUILDROOT}%{sharedstatedir}/ulogd/ulogd.db \
49 < %{DIR_SOURCE}/sqlite3.table
802ea3af
MT
50 end
51end
52
53packages
54 package %{name}
856a1edb
MT
55 requires
56 libnfnetlink >= 1.0.1
57 libnetfilter_acct >= 1.0.1
58 libnetfilter_conntrack >= 1.0.2
59 end
60
811ceba0 61 configfiles
ce284ff3
MT
62 %{sysconfdir}/ulogd.conf
63 end
64
65 datafiles
66 %{sharedstatedir}/ulogd/ulogd.db
811ceba0
SS
67 end
68
69 script postin
70 systemctl daemon-reload >/dev/null 2>&1 || :
71 systemctl enable ulogd.service >/dev/null 2>&1 || :
72 end
73
74 script preun
75 systemctl --no-reload disable ulogd.service >/dev/null 2>&1 || :
76 systemctl stop ulogd.service >/dev/null 2>&1 || :
77 end
78
79 script postun
80 systemctl daemon-reload >/dev/null 2>&1 || :
81 end
82
83 script postup
84 systemctl daemon-reload >/dev/null 2>&1 || :
85 systemctl try-restart ulogd.service >/dev/null 2>&1 || :
86 end
a772829d 87 end
1f9bc2f0
MT
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
802ea3af 92end