]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - ulogd2/ulogd2.nm
libsodium: New package
[people/amarx/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.4
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 --sysconfdir=/etc \
44 --libdir=%{prefix}/lib
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
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 /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
85 end
86
87 package %{name}-debuginfo
88 template DEBUGINFO
89 end
90 end