-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathnprobe.spec.in
116 lines (103 loc) · 3.76 KB
/
nprobe.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Summary: network probe
Name: nprobe
Version: @PACKAGE_VERSION@
Release: 0
License: GPL
Group: Networking/Utilities
URL: http://www.ntop.org/nProbe.html
Source: nProbe-%{version}.tgz
Packager: Fernanda Weiden <[email protected]>
# Temporary location where the RPM will be built
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: libpcap >= 0.8.3 glibc >= 2.3.4 @GEOIP_DEP@
%description
nprobe is a software NetFlow v5/v9/IPFIX and nFlow probe that allows to turn
a PC into a NetFlow probe. It has been designed to be compact, easy to
embed, an memory/CPU savvy.
%prep
%setup -q
%build
PATH=/usr/bin:/bin:/usr/sbin:/sbin
if [ -x ./configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure
else
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh
fi
make
#
cd $RPM_BUILD_DIR/%{name}-%{version}/utils
make
# Installation may be a matter of running an install make target or you
# may need to manually install files with the install command.
%install
PATH=/usr/bin:/bin:/usr/sbin:/sbin
if [ -d $RPM_BUILD_ROOT ]; then
\rm -rf $RPM_BUILD_ROOT
fi
make DESTDIR=$RPM_BUILD_ROOT install
#
DST=$RPM_BUILD_ROOT/usr/local/nprobe
SRC=$RPM_BUILD_DIR/%{name}-%{version}
mkdir -p $DST/python
mkdir -p $DST/conf
cp $SRC/python/nprobeStats.py $DST/python
cp $SRC/utils/nf_reflector.conf.example $DST/conf/
cp -r $SRC/html $DST
cp $SRC/utils/nf_reflector $RPM_BUILD_ROOT/usr/local/bin/
# Clean out our build directory
%clean
rm -fr $RPM_BUILD_ROOT
%files
/usr/local/bin/nprobe
/usr/local/lib/libnprobe-@[email protected]
/usr/local/lib/libnprobe.a
/usr/local/lib/libnprobe.la
/usr/local/lib/libnprobe.so
#/usr/local/lib/nprobe/plugins/librtpPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/librtpPlugin.a
#/usr/local/lib/nprobe/plugins/librtpPlugin.la
#/usr/local/lib/nprobe/plugins/librtpPlugin.so
#/usr/local/lib/nprobe/plugins/libsipPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libsipPlugin.a
#/usr/local/lib/nprobe/plugins/libsipPlugin.la
#/usr/local/lib/nprobe/plugins/libsipPlugin.so
#/usr/local/lib/nprobe/plugins/libdbPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libdbPlugin.a
#/usr/local/lib/nprobe/plugins/libdbPlugin.la
#/usr/local/lib/nprobe/plugins/libdbPlugin.so
#/usr/local/lib/nprobe/plugins/libsmtpPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libsmtpPlugin.a
#/usr/local/lib/nprobe/plugins/libsmtpPlugin.la
#/usr/local/lib/nprobe/plugins/libsmtpPlugin.so
#/usr/local/lib/nprobe/plugins/libdumpPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libdumpPlugin.a
#/usr/local/lib/nprobe/plugins/libdumpPlugin.la
#/usr/local/lib/nprobe/plugins/libdumpPlugin.so
#/usr/local/lib/nprobe/plugins/libhttpPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libhttpPlugin.a
#/usr/local/lib/nprobe/plugins/libhttpPlugin.la
#/usr/local/lib/nprobe/plugins/libhttpPlugin.so
#/usr/local/lib/nprobe/plugins/libl7Plugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libl7Plugin.a
#/usr/local/lib/nprobe/plugins/libl7Plugin.la
#/usr/local/lib/nprobe/plugins/libl7Plugin.so
#/usr/local/lib/nprobe/plugins/libmysqlPlugin-@[email protected]
#/usr/local/lib/nprobe/plugins/libmysqlPlugin.a
#/usr/local/lib/nprobe/plugins/libmysqlPlugin.la
#/usr/local/lib/nprobe/plugins/libmysqlPlugin.so
#
/usr/local/lib/nprobe/plugins/libntopPlugin-@[email protected]
/usr/local/lib/nprobe/plugins/libntopPlugin.la
/usr/local/lib/nprobe/plugins/libntopPlugin.so
/usr/local/lib/nprobe/plugins/libntopPlugin.a
/usr/local/nprobe/html
/usr/local/nprobe/python
/usr/local/bin/nf_reflector
/usr/local/nprobe/conf/nf_reflector.conf.example
# Set the default attributes of all of the files specified to have an
# owner and group of root and to inherit the permissions of the file
# itself.
%defattr(-, root, root)
%changelog
* Fri Jan 27 2006 Fernanda Weiden <[email protected]> 4.0
- Original upstream version