mirror of https://github.com/dswd/vpncloud.git
Merge branch 'master' of https://github.com/ZpmFred/vpncloud into ZpmFred-master
This commit is contained in:
commit
a6825504a5
|
@ -0,0 +1,41 @@
|
||||||
|
%define __spec_install_post %{nil}
|
||||||
|
%define __os_install_post %{_dbpath}/brp-compress
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
Name: vpncloud
|
||||||
|
Summary: Peer-to-peer VPN
|
||||||
|
Version: @@VERSION@@
|
||||||
|
Release: 1
|
||||||
|
License: GPL-3.0
|
||||||
|
Group: Applications/System
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
URL: https://vpncloud.ddswd.de
|
||||||
|
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}
|
||||||
|
mkdir -p %{buildroot}/etc/vpncloud
|
||||||
|
mkdir -p %{buildroot}/lib/systemd/system
|
||||||
|
cp %{buildroot}/../../../../../assets/example.net.disabled %{buildroot}/etc/vpncloud/example.net.disabled
|
||||||
|
cp %{buildroot}/../../../../../assets/vpncloud@.service %{buildroot}/lib/systemd/system/vpncloud@.service
|
||||||
|
cp -a * %{buildroot}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
/etc/vpncloud
|
||||||
|
/etc/vpncloud/example.net.disabled
|
||||||
|
/usr/bin/vpncloud
|
||||||
|
/lib/systemd/system/vpncloud@.service
|
||||||
|
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/*
|
15
README.md
15
README.md
|
@ -74,6 +74,21 @@ Debian packages can be built using [cargo-deb](https://github.com/mmstick/cargo-
|
||||||
There is a [VpnCloud package for Arch Linux](https://aur.archlinux.org/packages/vpncloud/)
|
There is a [VpnCloud package for Arch Linux](https://aur.archlinux.org/packages/vpncloud/)
|
||||||
thanks to Oscar Rainford (fourbytes).
|
thanks to Oscar Rainford (fourbytes).
|
||||||
|
|
||||||
|
#### CentOS 7
|
||||||
|
CentOS 7 .rpm package can be built using [cargo-rpm](https://github.com/RustRPM/cargo-rpm): ``cargo rpm``
|
||||||
|
On an CentOS 7:
|
||||||
|
|
||||||
|
1. Install the required build environment (on CentOS 7)
|
||||||
|
|
||||||
|
$> yum install -y cargo
|
||||||
|
|
||||||
|
$> yum groupinstall -y 'Development Tools'
|
||||||
|
|
||||||
|
2. Build the software
|
||||||
|
|
||||||
|
$> cargo rpm build --release
|
||||||
|
|
||||||
|
rpm will be situated in `target/release/rpmbuild/RPMS/`
|
||||||
|
|
||||||
### Contributions welcome
|
### Contributions welcome
|
||||||
There are several areas in which still some work has to be done and where
|
There are several areas in which still some work has to be done and where
|
||||||
|
|
Loading…
Reference in New Issue