]> git.ipfire.org Git - ipfire-3.x.git/blob - ulogd2/ulogd2.nm
kernel: udpate to 5.2
[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.5
8 release = 1
9 epoch = 1
10
11 thisapp = ulogd-%{version}
12
13 groups = Networking/Statistics
14 url = http://netfilter.org/projects/ulogd/index.html
15 license = GPLv2
16 summary = The userspace logging daemon for netfilter.
17
18 description
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.
24 end
25
26 source_dl = http://ftp.netfilter.org/pub/ulogd/
27 sources = %{thisapp}.tar.bz2
28
29 build
30 requires
31 libmnl-devel
32 libnfnetlink-devel >= 1.0.1
33 libnetfilter_acct-devel >= 1.0.1
34 libnetfilter_conntrack-devel >= 1.0.2
35 libnetfilter_log-devel
36 libpcap-devel
37 sqlite-devel
38 end
39
40 # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins
41 # to this folder.
42 configure_options+= \
43 --libdir=%{prefix}/lib
44
45 install_cmds
46 mkdir -pv %{BUILDROOT}%{sysconfdir}
47 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}%{sysconfdir}/ulogd.conf
48
49 mkdir -pv %{BUILDROOT}%{sharedstatedir}/ulogd
50 sqlite3 -echo %{BUILDROOT}%{sharedstatedir}/ulogd/ulogd.db \
51 < %{DIR_SOURCE}/sqlite3.table
52 end
53 end
54
55 packages
56 package %{name}
57 requires
58 libnfnetlink >= 1.0.1
59 libnetfilter_acct >= 1.0.1
60 libnetfilter_conntrack >= 1.0.2
61 end
62
63 configfiles
64 %{sysconfdir}/ulogd.conf
65 end
66
67 datafiles
68 %{sharedstatedir}/ulogd/ulogd.db
69 end
70
71 script postin
72 systemctl daemon-reload >/dev/null 2>&1 || :
73 systemctl enable ulogd.service >/dev/null 2>&1 || :
74 end
75
76 script preun
77 systemctl --no-reload disable ulogd.service >/dev/null 2>&1 || :
78 systemctl stop ulogd.service >/dev/null 2>&1 || :
79 end
80
81 script postun
82 systemctl daemon-reload >/dev/null 2>&1 || :
83 end
84
85 script postup
86 systemctl daemon-reload >/dev/null 2>&1 || :
87 systemctl try-restart ulogd.service >/dev/null 2>&1 || :
88 end
89 end
90
91 package %{name}-debuginfo
92 template DEBUGINFO
93 end
94 end