Fox build system for rpm

This commit is contained in:
Pavel Odintsov 2015-03-24 11:22:05 +03:00
parent 9015e35742
commit 33e603a718
3 changed files with 36 additions and 3 deletions

View File

@ -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).

View File

@ -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

View File

@ -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