]> git.ipfire.org Git - pakfire.git/commitdiff
debian: Add some files to create packages for Debian
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2024 15:25:46 +0000 (15:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2024 15:25:46 +0000 (15:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
debian/.gitignore [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/libpakfire-dev.install [new file with mode: 0644]
debian/libpakfire0.install [new file with mode: 0644]
debian/not-installed [new file with mode: 0644]
debian/pakfire.install [new file with mode: 0644]
debian/python3-pakfire.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644 (file)
index 0000000..8190b92
--- /dev/null
@@ -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 (file)
index 0000000..343eea7
--- /dev/null
@@ -0,0 +1,5 @@
+pakfire (0.9.29-1) UNRELEASED; urgency=medium
+
+  * Initial Debian package build
+
+ -- Michael Tremer <michael.tremer@ipfire.org>  Wed, 23 Oct 2024 13:42:57 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..960e955
--- /dev/null
@@ -0,0 +1,89 @@
+Source: pakfire
+Section: devel
+Priority: optional
+Maintainer: Michael Tremer <michael.tremer@ipfire.org>
+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 (file)
index 0000000..8963532
--- /dev/null
@@ -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 <michael.tremer@ipfire.org>
+
+Files:
+ *
+Copyright:
+ 2013-2024 Michael Tremer <michael.tremer@ipfire.org>
+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 <https://www.gnu.org/licenses/>
+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 (file)
index 0000000..1175ecb
--- /dev/null
@@ -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 (file)
index 0000000..7a709a0
--- /dev/null
@@ -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 (file)
index 0000000..ed3a708
--- /dev/null
@@ -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 (file)
index 0000000..446287e
--- /dev/null
@@ -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 (file)
index 0000000..4606faa
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/python3*
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..bfac62f
--- /dev/null
@@ -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 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)