From patchwork Mon Nov 25 17:52:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2606 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 47MF454Pvdz43WL for ; Mon, 25 Nov 2019 17:52:37 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 47MF452rNQz2bZ; Mon, 25 Nov 2019 17:52:37 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 47MF450lS4z2yZj; Mon, 25 Nov 2019 17:52:37 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 47MF425kDVz2xlf; Mon, 25 Nov 2019 17:52:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 47MF415jbKz1yl; Mon, 25 Nov 2019 17:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1574704354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yeFiA4ft9ky1J4OR/41IpGuQHzT6nxFJRPcfUg013zM=; b=d6KipbDn3BBc7eNf008iWcmTQ3LeklWcoEomd6Tfl7xFHvNKlJ91ThGnMSUJ1rMb8Jo/2U ow9ny2H2RVUtQ8R6ZG2873S2/mr04jChWovm/nq9qv2R3D5optQVItISQeKidBv1mok8E5 xcAq5T/PRG1SXkiAZO1qHV+Z5r/xPh0u6td3gqHliyPnme78F8aeYtHpYY6N3oSuYhHGi8 Pr+C8QjpKMEGE14nZjTsG1skzPbpECR3XbwKcUmTTt1q6Oq2i44fIFGMJpCIXl8i+1FmU/ D4JAZqNkBxb8XjdoZ6nlYK19CNCkPUEScKBeogWXzpkSmhRqKccGXRjlGqkF8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1574704354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yeFiA4ft9ky1J4OR/41IpGuQHzT6nxFJRPcfUg013zM=; b=OUe6FcINbvkmY8Yw4MgqYnQdB9WVrfQWSfuShk6js6nacd5a+bMW5Gi6Nq8UHgWdZm6C2j vEGfWp7eS47PCuCQ== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH] Add support for packaging debian (deb) packages Date: Mon, 25 Nov 2019 18:52:29 +0100 Message-Id: <20191125175229.3364-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Signed-off-by: Stefan Schantl --- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 52 +++++++++++++++++++++++++++++++++ debian/copyright | 26 +++++++++++++++++ debian/libloc-dev.install | 3 ++ debian/libloc-perl.install | 1 + debian/libloc.install | 6 ++++ debian/libloc.lintian-overrides | 1 + debian/libloc.manpages | 2 ++ debian/rules | 13 +++++++++ debian/source/format | 1 + 11 files changed, 111 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libloc-dev.install create mode 100644 debian/libloc-perl.install create mode 100644 debian/libloc.install create mode 100644 debian/libloc.lintian-overrides create mode 100644 debian/libloc.manpages create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0a47a3d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libloc (0.9.0-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #XXXXXX) + + -- Stefan Schantl Sun, 27 Oct 2019 18:55:44 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..85e2f04 --- /dev/null +++ b/debian/control @@ -0,0 +1,52 @@ +Source: libloc +Maintainer: Stefan Schantl +Section: misc +Priority: optional +Standards-Version: 4.3.0 +Build-Depends: + debhelper (>= 11), + dh-python , + libpython3-all-dev , + libsystemd-dev, + python3-all-dev:any , +Rules-Requires-Root: no +Homepage: https://location.ipfire.org/ +Vcs-Git: https://git.ipfire.org/pub/git/location/libloc.git +Vcs-Browser: https://git.ipfire.org/pub/git/location/libloc.git + +Package: libloc +Architecture: any +Pre-Depends: + ${misc:Pre-Depends} +Depends: + perl, + ${shlibs:Depends}, + ${misc:Depends}, + ${python3:Depends}, +Multi-Arch: same +Description: Location library + A library to determine the location of someone on the Internet + +Package: libloc-dev +Architecture: any +Section: libdevel +Depends: + libloc (= ${binary:Version}), + ${misc:Depends}, +Suggests: + pkg-config, +Multi-Arch: same +Description: Development files for libloc. + Install this package if you wish to develop your own programs using + libloc. + +Package: libloc-perl +Architecture: any +Section: perl +Depends: + ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends} +Multi-Arch: same +Description: Perl bindings for libloc + This package contains simple perl bindings for libloc. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..151d53a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libloc +Upstream-Contact: Michael Tremer +Source: https://location.ipfire.org/download + +Files: * +Copyright: 2017-2019 IPFire Development team +License: LGPL-2.1 + +Files: debian/* +Copyright: 2019 Stefan Schantl stefan.schantl@ipfire.org> +License: LGPL-2.1 + +License: LGPL-2.1 + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; version 2.1 of the License, or (at + your option) any later version. + . + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/LGPL-2.1 file. + . diff --git a/debian/libloc-dev.install b/debian/libloc-dev.install new file mode 100644 index 0000000..d93d217 --- /dev/null +++ b/debian/libloc-dev.install @@ -0,0 +1,3 @@ +usr/include/libloc +usr/lib/*/libloc.so +usr/lib/*/pkgconfig diff --git a/debian/libloc-perl.install b/debian/libloc-perl.install new file mode 100644 index 0000000..08e8cc4 --- /dev/null +++ b/debian/libloc-perl.install @@ -0,0 +1 @@ +usr/lib/*/perl/ diff --git a/debian/libloc.install b/debian/libloc.install new file mode 100644 index 0000000..55567b1 --- /dev/null +++ b/debian/libloc.install @@ -0,0 +1,6 @@ +usr/bin/location-downloader +usr/bin/location-query +usr/lib/*/libloc.so.* +usr/lib/python3*/*-packages/*.so +src/systemd/*.service /lib/systemd/system/ +src/systemd/*.timer /lib/systemd/system/ diff --git a/debian/libloc.lintian-overrides b/debian/libloc.lintian-overrides new file mode 100644 index 0000000..ca2589e --- /dev/null +++ b/debian/libloc.lintian-overrides @@ -0,0 +1 @@ +libloc: package-name-doesnt-match-sonames libloc0 diff --git a/debian/libloc.manpages b/debian/libloc.manpages new file mode 100644 index 0000000..c2f1630 --- /dev/null +++ b/debian/libloc.manpages @@ -0,0 +1,2 @@ +man/location-downloader.8 +man/location-query.8 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..55d4334 --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +# enable verbose mode +#export DH_VERBOSE=1 + +# enable all hardening build flags +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ --with python3 --with-systemd + +override_dh_perl: + dh_perl -d diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)