-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathipfixcol-geoip-inter.spec.in
49 lines (39 loc) · 1.29 KB
/
ipfixcol-geoip-inter.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Summary: geoip intermediate plugin for ipfixcol.
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: @RELEASE@
URL: http://www.liberouter.org/
Source: http://homeproj.cesnet.cz/rpm/liberouter/stable/SOURCES/%{name}-%{version}-%{release}.tar.gz
Group: Liberouter
License: BSD
Vendor: CESNET, z.s.p.o.
Packager: @USERNAME@ <@USERMAIL@>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: gcc autoconf libtool make doxygen libxslt GeoIP-devel @BUILDREQS@
BuildRequires: libxml2-devel ipfixcol-devel >= 0.7.1
Requires: libxml2 ipfixcol >= 0.7.1
%description
geoip intermediate plugin for ipfixcol.
%prep
%setup
%post
# Add config only during initial installation, not upgrade
if [ "$1" = "1" ]; then
ipfixconf add -c "%{_sysconfdir}/ipfixcol/internalcfg.xml" -p m -n geoip -t geoip -s "%{_datadir}/ipfixcol/plugins/ipfixcol-geoip-inter.so" -f
fi
%preun
%postun
# Remove config only for uninstall, not upgrade
if [ "$1" = "0" ]; then
ipfixconf remove -c "%{_sysconfdir}/ipfixcol/internalcfg.xml" -p m -n geoip
fi
%build
%configure --with-distro=@DISTRO@
make
%install
make DESTDIR=%{buildroot} install
%files
#intermediate plugins
%config(noreplace) %_datadir/ipfixcol-geoip-inter/GeoIPv6.dat
%{_datadir}/ipfixcol/plugins/ipfixcol-geoip-inter.*
%{_mandir}/man1/ipfixcol-geoip-inter.1*