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