]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - ulogd2/ulogd2.nm
ulogd2: Update to version 2.0.0.
[people/ms/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
811ceba0
SS
7version = 2.0.0
8release = 1
9epoch = 1
900ca389 10thisapp = ulogd-%{version}
ab6e2138 11
802ea3af
MT
12groups = Networking/Statistics
13url = http://netfilter.org/projects/ulogd/index.html
14license = GPLv2
15summary = The userspace logging daemon for netfilter.
ab6e2138 16
802ea3af
MT
17description
18 This package contains utilities for configuring the linux ethernet
19 bridge. The linux ethernet bridge can be used for connecting multiple
20 ethernet devices together. The connecting is fully transparent: hosts
21 connected to one ethernet device see hosts connected to the other
ab6e2138 22 ethernet devices directly.
802ea3af
MT
23end
24
25source_dl += http://ftp.netfilter.org/pub/ulogd/
26sources = %{thisapp}.tar.bz2
27
28build
29 requires
811ceba0 30 libmnl-devel
802ea3af 31 libnfnetlink-devel
811ceba0 32 libnetfilter_acct-devel
802ea3af
MT
33 libnetfilter_conntrack-devel
34 libnetfilter_log-devel
35 libpcap-devel
802ea3af
MT
36 sqlite-devel
37 end
38
811ceba0
SS
39 # Set libdir to "/usr/lib" for every architecture to install the ulogd2 plugins
40 # to this folder.
802ea3af 41 configure_options+= \
811ceba0
SS
42 --sysconfdir=/etc \
43 --libdir=%{prefix}/lib
802ea3af
MT
44
45 install_cmds
46 mkdir -pv %{BUILDROOT}/etc
47 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}/etc/ulogd.conf
48
49 mkdir -pv %{BUILDROOT}/var/log/ulogd
50 sqlite3 -echo %{BUILDROOT}/var/log/ulogd/ulogd.db < %{DIR_SOURCE}/sqlite3.table
51 end
52end
53
54packages
55 package %{name}
811ceba0
SS
56 configfiles
57 /etc/ulogd.conf
58 end
59
60 script postin
61 systemctl daemon-reload >/dev/null 2>&1 || :
62 systemctl enable ulogd.service >/dev/null 2>&1 || :
63 end
64
65 script preun
66 systemctl --no-reload disable ulogd.service >/dev/null 2>&1 || :
67 systemctl stop ulogd.service >/dev/null 2>&1 || :
68 end
69
70 script postun
71 systemctl daemon-reload >/dev/null 2>&1 || :
72 end
73
74 script postup
75 systemctl daemon-reload >/dev/null 2>&1 || :
76 systemctl try-restart ulogd.service >/dev/null 2>&1 || :
77 end
78 end
1f9bc2f0
MT
79
80 package %{name}-debuginfo
81 template DEBUGINFO
82 end
802ea3af 83end