-
Notifications
You must be signed in to change notification settings - Fork 7
/
eemo.spec.in
82 lines (68 loc) · 2.14 KB
/
eemo.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%define __arch_install_post %{nil}
Summary: The Extensible Ethernet Monitor
Name: eemo
Version: _EEMO_VERSION_
Release: 1
Group: System Environment/Daemons
License: BSD
Source0: eemo-%{version}.tar.gz
BuildRequires: libtool
Requires: libconfig >= 1.3.2
Requires: libpcap >= 0.9.4
BuildRequires: libconfig-devel >= 1.3.2
BuildRequires: libpcap-devel >= 0.9.4
BuildRequires: openssl-devel >= 1.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
The Extensible Ethernet Monitor is a pcap-based packet monitor that can be extended using plugins in the form of shared
libraries. It was originally developed to monitor DNS queries to authoritative and recursing name servers.
%package plugins
Summary: Default plugins for the Extensible Ethernet Monitor
Group: System Environment/Libraries
%description plugins
The Extensible Ethernet Monitor is a pcap-based packet monitor that can be extended using plugins in the form of shared
libraries. It was originally developed to monitor DNS queries to authoritative and recursing name servers.
This package contains the included plugins
%prep
%setup -q
%build
./configure \
--prefix=%{buildroot}/usr \
--libdir=%{buildroot}/%{_libdir}
make
%install
rm -rf %{buildroot}
make install
# Install RC script
install -d %{buildroot}%{_initrddir}
install -m0755 eemo.rc %{buildroot}%{_initrddir}/eemo
install -m0755 eemo_mux.rc %{buildroot}%{_initrddir}/eemo_mux
install -m0755 eemo_sensor.rc %{buildroot}%{_initrddir}/eemo_sensor
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_initrddir}/eemo
%{_initrddir}/eemo_mux
%{_initrddir}/eemo_sensor
%{_bindir}/eemo_generate_cert.sh
%{_sbindir}/eemo
%{_sbindir}/eemo_mux
%{_sbindir}/eemo_sensor
%{_docdir}/eemo/AUTHORS
%{_docdir}/eemo/ChangeLog
%{_docdir}/eemo/LICENSE
%{_docdir}/eemo/NEWS
%{_docdir}/eemo/README.md
%{_docdir}/eemo/sample-eemo.conf
%{_docdir}/eemo/sample-eemo_mux.conf
%{_docdir}/eemo/sample-eemo_sensor.conf
%{_docdir}/eemo/eemo.init
%{_docdir}/eemo/eemo_sensor.init
%{_docdir}/eemo/eemo_mux.init
%files plugins
%defattr(-,root,root,-)
%{_libdir}/*
%{_sbindir}/dnsstats_cacti.sh
%{_docdir}/eemo/README-dnsstats
%{_docdir}/eemo/*.xml