From efd6402c146f830303dcd5db8b0869dd96e77129 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 23 Oct 2024 15:25:46 +0000 Subject: [PATCH] debian: Add some files to create packages for Debian Signed-off-by: Michael Tremer --- debian/.gitignore | 11 +++++ debian/changelog | 5 ++ debian/control | 89 ++++++++++++++++++++++++++++++++++ debian/copyright | 25 ++++++++++ debian/libpakfire-dev.install | 4 ++ debian/libpakfire0.install | 2 + debian/not-installed | 2 + debian/pakfire.install | 5 ++ debian/python3-pakfire.install | 1 + debian/rules | 25 ++++++++++ debian/source/format | 1 + 11 files changed, 170 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libpakfire-dev.install create mode 100644 debian/libpakfire0.install create mode 100644 debian/not-installed create mode 100644 debian/pakfire.install create mode 100644 debian/python3-pakfire.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 000000000..8190b92ba --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,11 @@ +/.debhelper +/autoreconf.* +/debhelper-build-stamp +/files +/*/ +*.debhelper +*.log +*.substvars +!/patches/ +!/source/ +!/tests/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..343eea708 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pakfire (0.9.29-1) UNRELEASED; urgency=medium + + * Initial Debian package build + + -- Michael Tremer Wed, 23 Oct 2024 13:42:57 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..960e955d7 --- /dev/null +++ b/debian/control @@ -0,0 +1,89 @@ +Source: pakfire +Section: devel +Priority: optional +Maintainer: Michael Tremer +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + dh-sequence-python3, + asciidoc, + autoconf, + automake, + bison, + flex, + intltool, + libarchive-dev, + libbpf-dev, + libcap-dev, + libcurl4-openssl-dev, + libdw-dev, + libelf-dev, + libpython3-dev, + libjson-c-dev, + libkrb5-dev, + liblzma-dev, + libmagic-dev, + libnl-3-dev, + libnl-route-3-dev, + libssl-dev, + libpcre2-dev, + libseccomp-dev, + libsolv-dev, + libsqlite3-dev, + libsystemd-dev, + libtool, + libzstd-dev, + pkg-config, + uuid-dev, +Standards-Version: 4.6.2 +Homepage: https://pakfire.ipfire.org +Vcs-Browser: https://git.ipfire.org/?p=pakfire.git;a=summary +Vcs-Git: https://git.ipfire.org/pub/git/pakfire.git +Description: IPFire Package Management System + Pakfire builds packages and creates images. + +Package: pakfire +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Description: ${source:Synopsis} (CLI utilities) + ${source:Extended-Description} + +Package: libpakfire0 +Architecture: any +Section: libs +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Multi-Arch: same +Description: ${source:Synopsis} + ${source:Extended-Description} + . + This package provides the shared library. + +Package: libpakfire-dev +Architecture: any +Section: libdevel +Depends: + libpakfire0 (= ${binary:Version}), + ${misc:Depends}, +Multi-Arch: same +Description: ${source:Synopsis} (development files) + ${source:Extended-Description} + . + This package provides the headers and development files needed to use + libpakfire in your own programs. + +Package: python3-pakfire +Architecture: any +Section: python +Depends: + ${misc:Depends}, + ${python3:Depends}, + ${shlibs:Depends}, +Multi-Arch: foreign +Description: ${source:Synopsis} (Python 3 bindings) + ${source:Extended-Description} + . + This package provides the Python 3 bindings for libpakfire. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..8963532a5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://pakfire.ipfire.org +Upstream-Name: pakfire +Upstream-Contact: Michael Tremer + +Files: + * +Copyright: + 2013-2024 Michael Tremer +License: GPL-2+ + This package 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 2 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 +Comment: + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/libpakfire-dev.install b/debian/libpakfire-dev.install new file mode 100644 index 000000000..1175ecbf2 --- /dev/null +++ b/debian/libpakfire-dev.install @@ -0,0 +1,4 @@ +usr/include/pakfire +usr/lib/*/libpakfire.so +usr/share/doc/pakfire +usr/share/man/man5 diff --git a/debian/libpakfire0.install b/debian/libpakfire0.install new file mode 100644 index 000000000..7a709a0f4 --- /dev/null +++ b/debian/libpakfire0.install @@ -0,0 +1,2 @@ +usr/lib/*/libpakfire.so.* +usr/share/locale/*/LC_MESSAGES/pakfire.mo diff --git a/debian/not-installed b/debian/not-installed new file mode 100644 index 000000000..ed3a7083c --- /dev/null +++ b/debian/not-installed @@ -0,0 +1,2 @@ +usr/lib/*/libpakfire.la +usr/lib/python3/dist-packages/pakfire/pakfire.la diff --git a/debian/pakfire.install b/debian/pakfire.install new file mode 100644 index 000000000..446287e51 --- /dev/null +++ b/debian/pakfire.install @@ -0,0 +1,5 @@ +etc/pakfire +usr/bin +lib/systemd/system +usr/lib/pakfire +usr/share/man/man8 diff --git a/debian/python3-pakfire.install b/debian/python3-pakfire.install new file mode 100644 index 000000000..4606faae2 --- /dev/null +++ b/debian/python3-pakfire.install @@ -0,0 +1 @@ +usr/lib/python3* diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..bfac62f98 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +# Output every command that modifies files on the build system +export DH_VERBOSE = 1 + +# Enable hardening +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ --with python3 + +# Enable debug code +override_dh_auto_configure: + dh_auto_configure -- --enable-debug --disable-static + +# Ignore if the testsuite fails +override_dh_auto_test: + make check || true + +# Run some custom commands after "make install" +override_dh_auto_install: + dh_auto_install + + # Remove .la files + find debian/tmp -name "*.la" -exec rm {} + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- 2.39.5