]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = ulogd2 |
ce284ff3 | 7 | version = 2.0.5 |
856a1edb | 8 | release = 1 |
811ceba0 | 9 | epoch = 1 |
bfbf8f56 | 10 | |
900ca389 | 11 | thisapp = ulogd-%{version} |
ab6e2138 | 12 | |
802ea3af MT |
13 | groups = Networking/Statistics |
14 | url = http://netfilter.org/projects/ulogd/index.html | |
15 | license = GPLv2 | |
16 | summary = The userspace logging daemon for netfilter. | |
ab6e2138 | 17 | |
802ea3af MT |
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 | |
ab6e2138 | 23 | ethernet devices directly. |
802ea3af MT |
24 | end |
25 | ||
856a1edb | 26 | source_dl = http://ftp.netfilter.org/pub/ulogd/ |
802ea3af MT |
27 | sources = %{thisapp}.tar.bz2 |
28 | ||
29 | build | |
30 | requires | |
811ceba0 | 31 | libmnl-devel |
856a1edb MT |
32 | libnfnetlink-devel >= 1.0.1 |
33 | libnetfilter_acct-devel >= 1.0.1 | |
34 | libnetfilter_conntrack-devel >= 1.0.2 | |
802ea3af MT |
35 | libnetfilter_log-devel |
36 | libpcap-devel | |
802ea3af MT |
37 | sqlite-devel |
38 | end | |
39 | ||
811ceba0 SS |
40 | # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins |
41 | # to this folder. | |
802ea3af | 42 | configure_options+= \ |
811ceba0 | 43 | --libdir=%{prefix}/lib |
802ea3af MT |
44 | |
45 | install_cmds | |
ce284ff3 MT |
46 | mkdir -pv %{BUILDROOT}%{sysconfdir} |
47 | cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}%{sysconfdir}/ulogd.conf | |
802ea3af | 48 | |
ce284ff3 MT |
49 | mkdir -pv %{BUILDROOT}%{sharedstatedir}/ulogd |
50 | sqlite3 -echo %{BUILDROOT}%{sharedstatedir}/ulogd/ulogd.db \ | |
51 | < %{DIR_SOURCE}/sqlite3.table | |
802ea3af MT |
52 | end |
53 | end | |
54 | ||
55 | packages | |
56 | package %{name} | |
856a1edb MT |
57 | requires |
58 | libnfnetlink >= 1.0.1 | |
59 | libnetfilter_acct >= 1.0.1 | |
60 | libnetfilter_conntrack >= 1.0.2 | |
61 | end | |
62 | ||
811ceba0 | 63 | configfiles |
ce284ff3 MT |
64 | %{sysconfdir}/ulogd.conf |
65 | end | |
66 | ||
67 | datafiles | |
68 | %{sharedstatedir}/ulogd/ulogd.db | |
811ceba0 SS |
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 | |
a772829d | 89 | end |
1f9bc2f0 MT |
90 | |
91 | package %{name}-debuginfo | |
92 | template DEBUGINFO | |
93 | end | |
802ea3af | 94 | end |