From 5a23e0539d2447029785591db60f08affd50e314 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 10 Feb 2021 00:57:17 +0100 Subject: [pkg] initial debian package - yet another --- debian/.gitignore | 2 ++ debian/README | 7 +++++++ debian/README.Debian | 6 ++++++ debian/README.source | 10 ++++++++++ debian/changelog | 5 +++++ debian/control | 18 +++++++++++++++++ debian/copyright | 39 ++++++++++++++++++++++++++++++++++++ debian/rules | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + 9 files changed, 144 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/README create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..bbb2ca6 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,2 @@ +riseup-vpn/* +.debhelper/* diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..7a4f677 --- /dev/null +++ b/debian/README @@ -0,0 +1,7 @@ +The Debian Package riseup-vpn +---------------------------- + +Initial debianization of bitmask-vpn repo. This is a native package for +riseup-vpn, branded clients will use a template based on that one. + + -- Kali Kaneko Tue, 09 Feb 2021 20:26:52 +0100 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..dead657 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +riseup-vpn for Debian +-------------------- + + + + -- Kali Kaneko Tue, 09 Feb 2021 20:26:52 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..12435e8 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +riseup-vpn for Debian +-------------------- + + + + + + -- Kali Kaneko Tue, 09 Feb 2021 20:26:52 +0100 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1ee2a71 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +riseup-vpn (0.21.2) unstable; urgency=medium + + * Initial Release. + + -- Kali Kaneko Tue, 09 Feb 2021 20:26:52 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1a2266a --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: riseup-vpn +Section: net +Priority: extra +Maintainer: LEAP Encryption Access Project +Build-Depends: debhelper-compat (= 12), golang-go (>= 2:1.9), make, pkg-config, g++ +Standards-Version: 4.4.1 +Homepage: https://0xacab.org/leap/bitmask-vpn +#Vcs-Browser: https://0xacab.org/leap/bitmask-vpn +#Vcs-Git: https://0xacab.org/leap/bitmask-vpn.git + +Package: riseup-vpn +Architecture: any +Enhances: openvpn +Depends: ${shlibs:Depends}, ${misc:Depends}, openvpn, policykit-1-gnome | polkit-1-auth-agent, python3 +Description: Easy, fast, and secure VPN service from riseup.net. + . + The service does not require a user account, keep logs, or track you in any + way. The service is paid for entirely by donations from users. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9292099 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: riseup-vpn +Upstream-Contact: +Source: + +Files: * +Copyright: + +License: GPL-3.0+ + +Files: debian/* +Copyright: 2021 Kali Kaneko +License: GPL-3.0+ + +License: GPL-3.0+ + 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". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. +# +# If you need, there are some extra license texts available in two places: +# /usr/share/debhelper/dh_make/licenses/ +# /usr/share/common-licenses/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fdc68bd --- /dev/null +++ b/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +export DH_VERBOSE = 1 + +export DH_OPTIONS +export GO111MODULE=on +export GOCACHE=/tmp/gocache + +export DH_GOPKG = 0xacab.org/leap/bitmask-vpn + +export APPNAME = riseup-vpn + +ifeq ($(DEB_HOST_ARCH), i386) + export GOARCH := 386 +else ifeq ($(DEB_HOST_ARCH), amd64) + export GOARCH := amd64 +else ifeq ($(DEB_HOST_ARCH), armhf) + export GOARCH := arm +else ifeq ($(DEB_HOST_ARCH), arm64) + export GOARCH := arm64 +endif + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +override_dh_auto_build: + make build + +override_dh_install: + mkdir -p $(CURDIR)/debian/${APPNAME}/usr/bin + mkdir -p $(CURDIR)/debian/${APPNAME}/usr/sbin + cp $(CURDIR)/helpers/bitmask-root $(CURDIR)/debian/${APPNAME}/usr/sbin/ + mkdir -p $(CURDIR)/debian/${APPNAME}/usr/share/polkit-1/actions + cp $(CURDIR)/helpers/se.leap.bitmask.policy $(CURDIR)/debian/${APPNAME}/usr/share/polkit-1/actions + cp build/qt/release/${APPNAME} $(CURDIR)/debian/${APPNAME}/usr/bin/${APPNAME} + strip $(CURDIR)/debian/${APPNAME}/usr/bin/${APPNAME} + dh_install + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3