]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - ulogd2/ulogd2.nm
tmux: New package.
[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
bfbf8f56 7version = 2.0.4
856a1edb 8release = 1
811ceba0 9epoch = 1
bfbf8f56 10
900ca389 11thisapp = ulogd-%{version}
ab6e2138 12
802ea3af
MT
13groups = Networking/Statistics
14url = http://netfilter.org/projects/ulogd/index.html
15license = GPLv2
16summary = The userspace logging daemon for netfilter.
ab6e2138 17
802ea3af
MT
18description
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
24end
25
856a1edb 26source_dl = http://ftp.netfilter.org/pub/ulogd/
802ea3af
MT
27sources = %{thisapp}.tar.bz2
28
29build
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
SS
43 --sysconfdir=/etc \
44 --libdir=%{prefix}/lib
802ea3af
MT
45
46 install_cmds
47 mkdir -pv %{BUILDROOT}/etc
48 cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}/etc/ulogd.conf
49
50 mkdir -pv %{BUILDROOT}/var/log/ulogd
51 sqlite3 -echo %{BUILDROOT}/var/log/ulogd/ulogd.db < %{DIR_SOURCE}/sqlite3.table
52 end
53end
54
55packages
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
SS
63 configfiles
64 /etc/ulogd.conf
65 end
66
67 script postin
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 systemctl enable ulogd.service >/dev/null 2>&1 || :
70 end
71
72 script preun
73 systemctl --no-reload disable ulogd.service >/dev/null 2>&1 || :
74 systemctl stop ulogd.service >/dev/null 2>&1 || :
75 end
76
77 script postun
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80
81 script postup
82 systemctl daemon-reload >/dev/null 2>&1 || :
83 systemctl try-restart ulogd.service >/dev/null 2>&1 || :
84 end
a772829d 85 end
1f9bc2f0
MT
86
87 package %{name}-debuginfo
88 template DEBUGINFO
89 end
802ea3af 90end