From 9e2aa47bf020ee961d90b1346f5da1aa48d04dbc Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Sun, 3 Mar 2019 04:35:04 +0100 Subject: [PATCH] Add Centos packaging instructions --- README.md | 2 +- doc/Centos.md | 11 ++++++++ doc/{windows => Windows.md} | 0 n2n.spec | 52 ------------------------------------- 4 files changed, 12 insertions(+), 53 deletions(-) create mode 100644 doc/Centos.md rename doc/{windows => Windows.md} (100%) delete mode 100644 n2n.spec diff --git a/README.md b/README.md index 27e21ec..06d2a00 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ By defaul the edge will run in background but you can use the `-f` option to kee Windows ------- -Check out doc/windows for compilation and run istuctions. +Check out doc/Windows.md for compilation and run instuctions. Note that `-d`, `-u`, `-g` and `-f` options are not available for Windows. diff --git a/doc/Centos.md b/doc/Centos.md new file mode 100644 index 0000000..b1d2e00 --- /dev/null +++ b/doc/Centos.md @@ -0,0 +1,11 @@ +# Packaging + +``` +./autogen.sh +./configure +make + +cd packages/rpm +./configure +rpmbuild -bb ./n2n.spec +``` diff --git a/doc/windows b/doc/Windows.md similarity index 100% rename from doc/windows rename to doc/Windows.md diff --git a/n2n.spec b/n2n.spec deleted file mode 100644 index 379468c..0000000 --- a/n2n.spec +++ /dev/null @@ -1,52 +0,0 @@ -Summary: N2N peer-to-peer virtual private network system. -Name: n2n -Version: 2.5.0 -Release: 1 -License: GPLv3 -Vendor: ntop.org -Group: None -URL: http://www.ntop.org/ -Source0: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root - -%description -N2N is a peer-to-peer virtual private network system. N2N uses the universal -TUNTAP interface to create TAP network interfaces to an encrypted virtual -LAN. Members of a community share encryption keys which allow exchange of -data. The supernode is used for peer discovery and initial packet relay before -direct peer-to-peer exchange is established. Once direct packet exchange is -established, the supernode is not required. - -N2N-2 introduces additional security features and multiple supernodes. - -%prep - -%setup -q - -echo -e "\n *** Building ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE} ***\n" - -%build -make - -%install -make PREFIX=${RPM_BUILD_ROOT}/usr install - -%clean -rm -rf $RPM_BUILD_ROOT - - -%files -%defattr(-,root,root,-) - /usr/sbin/supernode - /usr/sbin/edge -%doc /usr/share/man/man1/supernode.1.gz -%doc /usr/share/man/man8/edge.8.gz -%doc /usr/share/man/man7/n2n_v2.7.gz - - -%changelog -* Fri Oct 30 2009 Richard Andrews - -- First beta for n2n-2 -* Sat May 3 2008 Richard Andrews - -- Initial build. -