mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-09-28 15:41:45 +02:00
Fox build system for rpm
This commit is contained in:
parent
9015e35742
commit
33e603a718
@ -1 +1,30 @@
|
||||
Please build on same Linux distro version as target platform for best results.
|
||||
|
||||
First of all, please install Epel repo:
|
||||
- CentOS 6: ```rpm -ihv http://fedora-mirror01.rbc.ru/pub/epel/6/i386/epel-release-6-8.noarch.rpm```
|
||||
- CentOS 7: ```yum install -y epel-release```
|
||||
|
||||
Enable ntop repo: ```vim /etc/yum.repos.d/ntop.repo```
|
||||
|
||||
Repo file:
|
||||
```bash
|
||||
[ntop]
|
||||
name=ntop packages
|
||||
baseurl=http://www.nmon.net/centos-stable/$releasever/$basearch/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri
|
||||
[ntop-noarch]
|
||||
name=ntop packages
|
||||
baseurl=http://www.nmon.net/centos-stable/$releasever/noarch/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri
|
||||
```
|
||||
|
||||
And install pfring kernel module and libs:
|
||||
```bash
|
||||
yum install -y pfring
|
||||
```
|
||||
|
||||
If you want build rpm package manually please use script [build_rpm.sh](https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/src/build_rpm.sh).
|
||||
|
@ -11,8 +11,8 @@ mkdir vzapi-$VERSION
|
||||
|
||||
mkdir -p /root/rpmbuild/SOURCES
|
||||
# Folder inside archive should be named as "fastnetmon-1.1.1"
|
||||
#wget https://github.com/FastVPSEestiOu/fastnetmon/archive/master.zip -O"/root/rpmbuild/SOURCES/fastnetmon-$VERSION.tar.gz"
|
||||
wget https://github.com/FastVPSEestiOu/fastnetmon/archive/v1.1.1.tar.gz -O"/root/rpmbuild/SOURCES/fastnetmon-$VERSION.tar.gz"
|
||||
wget https://github.com/FastVPSEestiOu/fastnetmon/archive/master.zip -O"/root/rpmbuild/SOURCES/fastnetmon-$VERSION.tar.gz"
|
||||
#wget https://github.com/FastVPSEestiOu/fastnetmon/archive/v1.1.1.tar.gz -O"/root/rpmbuild/SOURCES/fastnetmon-$VERSION.tar.gz"
|
||||
|
||||
# Download spec file
|
||||
wget https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/src/fastnetmon.spec -Ofastnetmon.spec
|
||||
|
@ -38,7 +38,11 @@ Provides: fastnetmon
|
||||
A high performance DoS/DDoS load analyzer built on top of multiple packet capture engines (NetFlow, IPFIX, sFLOW, netmap, PF_RING, PCAP).
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# For production
|
||||
# %setup -n fastnetmon-%{version}
|
||||
# Testing
|
||||
# Specify name of folder inside rpm package
|
||||
%setup -n fastnetmon-master
|
||||
|
||||
%build
|
||||
cd src
|
||||
|
Loading…
Reference in New Issue
Block a user