Skip to content

Commit 17cb005

Browse files
committed
adding debian-bookworm support
1 parent 6e6cf0b commit 17cb005

7 files changed

Lines changed: 95 additions & 0 deletions

File tree

manifest.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,40 @@
2222
"zfsutils (>= 2.2)",
2323
"zfsutils (<< 2.3)"
2424
],
25+
"debian": [
26+
"zfsutils-linux (>= 2.2)",
27+
"zfsutils-linux (<< 2.3)"
28+
],
2529
"rocky_common": [
2630
"zfs >= 2.2",
2731
"zfs < 2.3"
2832
]
2933
},
3034
"builds": [
35+
{
36+
"group": "ubuntu",
37+
"os_name": "ubuntu-focal",
38+
"image": "ci.cr.45d.io/ci/zfs/ubuntu-focal:1"
39+
},
40+
{
41+
"group": "ubuntu",
42+
"os_name": "ubuntu-jammy",
43+
"image": "ci.cr.45d.io/ci/zfs/ubuntu-jammy:1"
44+
},
3145
{
3246
"group": "rocky",
3347
"os_name": "rocky-el8",
3448
"image": "ci.cr.45d.io/ci/zfs/rocky-el8:1"
49+
},
50+
{
51+
"group": "rocky",
52+
"os_name": "rocky-el9",
53+
"image": "ci.cr.45d.io/ci/zfs/rocky-el9:1"
54+
},
55+
{
56+
"group": "debian",
57+
"os_name": "debian-bookworm",
58+
"image": "ci.cr.45d.io/ci/zfs/debian-bookworm:1"
3559
}
3660
],
3761
"repos": [

packaging/debian-bookworm/changelog

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Source: {{ name }}
2+
Section: utils
3+
Priority: optional
4+
Maintainer: {{ author }}
5+
Build-Depends: debhelper-compat (= 13), python3-all, python3-setuptools, dh-python
6+
Standards-Version: 4.4.1
7+
X-Python3-Version: >= 3.6
8+
Homepage: {{ git_url }}
9+
Vcs-Git: {{ git_url }}
10+
11+
Package: {{ name }}
12+
Architecture: {{ architecture.ubuntu }}
13+
Depends: {{ dependencies.ubuntu_common | join(',') }}
14+
Description: {{ description }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: "{{ name }}"
3+
Upstream-Contact: "{{ author }}"
4+
Source: "{{ git_url }}"
5+
6+
Files: *
7+
Copyright: 2021 Your Name <email@45drives.com>
8+
License: GPL-3.0+
9+
10+
License: GPL-3.0+
11+
This program is free software: you can redistribute it and/or modify
12+
it under the terms of the GNU General Public License as published by
13+
the Free Software Foundation, either version 3 of the License, or
14+
(at your option) any later version.
15+
.
16+
This program is distributed in the hope that it will be useful,
17+
but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
GNU General Public License for more details.
20+
.
21+
You should have received a copy of the GNU General Public License
22+
along with the Onboard package. If not, please have a look at
23+
/usr/share/common-licenses or <http://www.gnu.org/licenses/>.

packaging/debian-bookworm/pybuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build_ext]
2+
inplace=1

packaging/debian-bookworm/rules

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
export DH_VERBOSE = 1
5+
6+
# see FEATURE AREAS in dpkg-buildflags(1)
7+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8+
export PYBUILD_NAME=libzfs
9+
10+
# see ENVIRONMENT in dpkg-buildflags(1)
11+
# package maintainers to append CFLAGS
12+
# export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
13+
# package maintainers to append LDFLAGS
14+
# export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
15+
16+
%:
17+
dh $@ --with python3 --buildsystem=pybuild
18+
19+
# dh_make generated override targets
20+
# This is example for Cmake (See https://bugs.debian.org/641051 )
21+
# override_dh_auto_configure:
22+
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
23+
24+
override_dh_auto_configure:
25+
./configure --prefix=/usr
26+
dh_auto_configure
27+
28+
override_dh_install:
29+
mkdir -p debian/usr/share/py-libzfs
30+
dh_install ./libzfs.c usr/share/py-libzfs/
31+
dh_install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)