diff --git a/.gitignore b/.gitignore index 3ce5ba5..5adefe5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ target Cargo.lock -vpncloud-* +vpncloud-oldnodes ._* vpncloud.1* diff --git a/deb/.gitignore b/deb/.gitignore new file mode 100644 index 0000000..c15a75b --- /dev/null +++ b/deb/.gitignore @@ -0,0 +1,9 @@ +vpncloud/debian/vpncloud* +vpncloud/debian/files +vpncloud/vpncloud +vpncloud-nocrypto/debian/vpncloud* +vpncloud-nocrypto/debian/files +vpncloud-nocrypto/vpncloud +*.deb +*.build +*.changes diff --git a/deb/Makefile b/deb/Makefile new file mode 100644 index 0000000..0fd8711 --- /dev/null +++ b/deb/Makefile @@ -0,0 +1,18 @@ +PACKAGE=vpncloud +DEPENDENCIES=debhelper devscripts + +.PHONY: default +default: clean build + +.PHONY: build +build: $(PACKAGE)_*.deb $(PACKAGE)-nocrypto_*.deb +$(PACKAGE)_*.deb: + (cd $(PACKAGE); make clean; debuild -b -us -uc; cd ..) +$(PACKAGE)-nocrypto_*.deb: + (cd $(PACKAGE)-nocrypto; make clean; debuild -b -us -uc; cd ..) + +.PHONY: clean +clean: + (cd $(PACKAGE); debuild clean; cd ..) + (cd $(PACKAGE)-nocrypto; debuild clean; cd ..) + rm -rf $(PACKAGE)_* $(PACKAGE)-nocrypto_* diff --git a/deb/vpncloud-nocrypto/Makefile b/deb/vpncloud-nocrypto/Makefile new file mode 100644 index 0000000..1d35745 --- /dev/null +++ b/deb/vpncloud-nocrypto/Makefile @@ -0,0 +1,20 @@ +build: vpncloud.1 vpncloud + +vpncloud.1: vpncloud.1.ronn + ronn -r vpncloud.1.ronn + +vpncloud.1.ronn: ../../vpncloud.md + cp ../../vpncloud.md vpncloud.1.ronn + +clean: + rm -f vpncloud.1* vpncloud ../../target/release/vpncloud + +vpncloud: ../../target/release/vpncloud + cp ../../target/release/vpncloud vpncloud + +../../target/release/vpncloud: ../../src/*.rs ../../Cargo.toml ../../src/usage.txt ../../src/c/* + (cd ../..; cargo build --release) + +install: + install -d $(DESTDIR)/usr/bin + install -m 755 vpncloud $(DESTDIR)/usr/bin/vpncloud diff --git a/deb/vpncloud-nocrypto/debian/changelog b/deb/vpncloud-nocrypto/debian/changelog new file mode 100644 index 0000000..1903fad --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/changelog @@ -0,0 +1,5 @@ +vpncloud-nocrypto (0.1.0) stable; urgency=medium + + * Initial release + + -- Dennis Schwerdel Tue, 24 Nov 2015 09:31:47 +0100 diff --git a/deb/vpncloud-nocrypto/debian/compat b/deb/vpncloud-nocrypto/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/compat @@ -0,0 +1 @@ +7 diff --git a/deb/vpncloud-nocrypto/debian/control b/deb/vpncloud-nocrypto/debian/control new file mode 100644 index 0000000..f5a09e7 --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/control @@ -0,0 +1,12 @@ +Source: vpncloud-nocrypto +Section: misc +Priority: extra +Maintainer: Dennis Schwerdel +Build-Depends: debhelper (>= 7), ruby-ronn, rust-stable +Standards-Version: 3.8.3 + +Package: vpncloud-nocrypto +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: vpncloud +Description: Peer-to-peer VPN (built without crypto support) diff --git a/deb/vpncloud-nocrypto/debian/copyright b/deb/vpncloud-nocrypto/debian/copyright new file mode 100644 index 0000000..0ea8a2f --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/copyright @@ -0,0 +1,31 @@ +Upstream Author: + + Dennis Schwerdel + +Copyright: + + Copyright (C) 2015 Dennis Schwerdel, University of Kaiserslautern + +License: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +The Debian packaging is: + + Copyright (C) 2015 Dennis Schwerdel, University of Kaiserslautern + +and is licensed under the GPL version 3, see above. diff --git a/deb/vpncloud-nocrypto/debian/dbackup.substvars b/deb/vpncloud-nocrypto/debian/dbackup.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/dbackup.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/deb/vpncloud-nocrypto/debian/manpages b/deb/vpncloud-nocrypto/debian/manpages new file mode 100644 index 0000000..6a85aae --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/manpages @@ -0,0 +1 @@ +vpncloud.1 diff --git a/deb/vpncloud-nocrypto/debian/rules b/deb/vpncloud-nocrypto/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/deb/vpncloud-nocrypto/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ diff --git a/deb/vpncloud/Makefile b/deb/vpncloud/Makefile new file mode 100644 index 0000000..b0b77ee --- /dev/null +++ b/deb/vpncloud/Makefile @@ -0,0 +1,20 @@ +build: vpncloud.1 vpncloud + +vpncloud.1: vpncloud.1.ronn + ronn -r vpncloud.1.ronn + +vpncloud.1.ronn: ../../vpncloud.md + cp ../../vpncloud.md vpncloud.1.ronn + +clean: + rm -f vpncloud.1* vpncloud ../../target/release/vpncloud + +vpncloud: ../../target/release/vpncloud + cp ../../target/release/vpncloud vpncloud + +../../target/release/vpncloud: ../../src/*.rs ../../Cargo.toml ../../src/usage.txt ../../src/c/* + (cd ../..; cargo build --release --features "crypto") + +install: + install -d $(DESTDIR)/usr/bin + install -m 755 vpncloud $(DESTDIR)/usr/bin/vpncloud diff --git a/deb/vpncloud/debian/changelog b/deb/vpncloud/debian/changelog new file mode 100644 index 0000000..77a50ad --- /dev/null +++ b/deb/vpncloud/debian/changelog @@ -0,0 +1,5 @@ +vpncloud (0.1.0) stable; urgency=medium + + * Initial release + + -- Dennis Schwerdel Tue, 24 Nov 2015 09:31:47 +0100 diff --git a/deb/vpncloud/debian/compat b/deb/vpncloud/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/deb/vpncloud/debian/compat @@ -0,0 +1 @@ +7 diff --git a/deb/vpncloud/debian/control b/deb/vpncloud/debian/control new file mode 100644 index 0000000..df0dede --- /dev/null +++ b/deb/vpncloud/debian/control @@ -0,0 +1,12 @@ +Source: vpncloud +Section: misc +Priority: extra +Maintainer: Dennis Schwerdel +Build-Depends: debhelper (>= 7), ruby-ronn, rust-stable, libsodium-dev +Standards-Version: 3.8.3 + +Package: vpncloud +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, libsodium13 +Conflicts: vpncloud-nocrypto +Description: Peer-to-peer VPN diff --git a/deb/vpncloud/debian/copyright b/deb/vpncloud/debian/copyright new file mode 100644 index 0000000..0ea8a2f --- /dev/null +++ b/deb/vpncloud/debian/copyright @@ -0,0 +1,31 @@ +Upstream Author: + + Dennis Schwerdel + +Copyright: + + Copyright (C) 2015 Dennis Schwerdel, University of Kaiserslautern + +License: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +The Debian packaging is: + + Copyright (C) 2015 Dennis Schwerdel, University of Kaiserslautern + +and is licensed under the GPL version 3, see above. diff --git a/deb/vpncloud/debian/dbackup.substvars b/deb/vpncloud/debian/dbackup.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/deb/vpncloud/debian/dbackup.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/deb/vpncloud/debian/manpages b/deb/vpncloud/debian/manpages new file mode 100644 index 0000000..6a85aae --- /dev/null +++ b/deb/vpncloud/debian/manpages @@ -0,0 +1 @@ +vpncloud.1 diff --git a/deb/vpncloud/debian/rules b/deb/vpncloud/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/deb/vpncloud/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@