]> git.ipfire.org Git - ipfire-3.x.git/blob - ulogd2/ulogd2.nm
Drop epoch from all files
[ipfire-3.x.git] / ulogd2 / ulogd2.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = ulogd2
7 version = 2.0.8
8 release = 1
9 thisapp = ulogd-%{version}
10
11 groups = Networking/Statistics
12 url = https://netfilter.org/projects/ulogd/index.html
13 license = GPLv2
14 summary = The userspace logging daemon for netfilter
15
16 description
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.
22 end
23
24 source_dl = https://www.netfilter.org/projects/ulogd/files/
25 sources = %{thisapp}.tar.bz2
26
27 build
28 requires
29 libmnl-devel
30 libnfnetlink-devel >= 1.0.1
31 libnetfilter_acct-devel >= 1.0.1
32 libnetfilter_conntrack-devel >= 1.0.2
33 libnetfilter_log-devel
34 libpcap-devel
35 sqlite-devel
36 end
37
38 # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins
39 # to this folder.
40 configure_options+= \
41 --libdir=%{prefix}/lib
42
43 install_cmds
44 mkdir -pv %{BUILDROOT}%{sysconfdir}
45 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}%{sysconfdir}/ulogd.conf
46
47 mkdir -pv %{BUILDROOT}%{sharedstatedir}/ulogd
48 sqlite3 -echo %{BUILDROOT}%{sharedstatedir}/ulogd/ulogd.db \
49 < %{DIR_SOURCE}/sqlite3.table
50 end
51 end
52
53 packages
54 package %{name}
55 requires
56 libnfnetlink >= 1.0.1
57 libnetfilter_acct >= 1.0.1
58 libnetfilter_conntrack >= 1.0.2
59 end
60
61 configfiles
62 %{sysconfdir}/ulogd.conf
63 end
64
65 datafiles
66 %{sharedstatedir}/ulogd/ulogd.db
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
87 end
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
92 end