Debian packages

This commit is contained in:
Dennis Schwerdel 2015-11-24 10:22:25 +01:00
parent 68e51ad467
commit 4e11501b7e
19 changed files with 176 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
target target
Cargo.lock Cargo.lock
vpncloud-* vpncloud-oldnodes
._* ._*
vpncloud.1* vpncloud.1*

9
deb/.gitignore vendored Normal file
View File

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

18
deb/Makefile Normal file
View File

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

View File

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

View File

@ -0,0 +1,5 @@
vpncloud-nocrypto (0.1.0) stable; urgency=medium
* Initial release
-- Dennis Schwerdel <schwerdel@informatik.uni-kl.de> Tue, 24 Nov 2015 09:31:47 +0100

View File

@ -0,0 +1 @@
7

View File

@ -0,0 +1,12 @@
Source: vpncloud-nocrypto
Section: misc
Priority: extra
Maintainer: Dennis Schwerdel <schwerdel@informatik.uni-kl.de>
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)

View File

@ -0,0 +1,31 @@
Upstream Author:
Dennis Schwerdel <schwerdel@informatik.uni-kl.de>
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 <http://www.gnu.org/licenses/>.
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.

View File

@ -0,0 +1 @@
misc:Depends=

View File

@ -0,0 +1 @@
vpncloud.1

View File

@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@

20
deb/vpncloud/Makefile Normal file
View File

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

View File

@ -0,0 +1,5 @@
vpncloud (0.1.0) stable; urgency=medium
* Initial release
-- Dennis Schwerdel <schwerdel@informatik.uni-kl.de> Tue, 24 Nov 2015 09:31:47 +0100

View File

@ -0,0 +1 @@
7

View File

@ -0,0 +1,12 @@
Source: vpncloud
Section: misc
Priority: extra
Maintainer: Dennis Schwerdel <schwerdel@informatik.uni-kl.de>
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

View File

@ -0,0 +1,31 @@
Upstream Author:
Dennis Schwerdel <schwerdel@informatik.uni-kl.de>
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 <http://www.gnu.org/licenses/>.
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.

View File

@ -0,0 +1 @@
misc:Depends=

View File

@ -0,0 +1 @@
vpncloud.1

3
deb/vpncloud/debian/rules Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@