Skip to content

Commit 7eed18c

Browse files
committed
Basic debian packaging
1 parent 29d0a00 commit 7eed18c

File tree

7 files changed

+145
-0
lines changed

7 files changed

+145
-0
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bpftune (0-1) UNRELEASED; urgency=medium
2+
3+
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
4+
5+
-- Bernd Zeimetz <[email protected]> Thu, 28 Nov 2024 21:39:29 +0100

debian/control

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Source: bpftune
2+
Section: admin
3+
Priority: optional
4+
Maintainer: Bernd Zeimetz <[email protected]>
5+
Rules-Requires-Root: no
6+
Build-Depends:
7+
debhelper-compat (= 13),
8+
python3-docutils,
9+
libbpf-dev,
10+
libcap-dev,
11+
clang,
12+
llvm,
13+
bpftool,
14+
libnl-3-dev,
15+
libnl-route-3-dev,
16+
iperf3
17+
Standards-Version: 4.7.0
18+
Homepage: https://github.com/oracle/bpftune/tree/main
19+
#Vcs-Browser: https://salsa.debian.org/debian/bpftune
20+
#Vcs-Git: https://salsa.debian.org/debian/bpftune.git
21+
22+
Package: bpftune
23+
Architecture: any
24+
Depends:
25+
${shlibs:Depends},
26+
${misc:Depends},
27+
Description: BPF driven auto-tuning
28+
bpftune aims to provide lightweight, always-on auto-tuning
29+
of system behaviour via BPF observability.

debian/copyright

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Source: https://github.com/oracle/bpftune
3+
Upstream-Name: bpftune
4+
Upstream-Contact: https://github.com/oracle/bpftune/issues
5+
6+
Files:
7+
*
8+
Copyright:
9+
2023 Oracle and/or its affiliates
10+
License: GPL-2.0 WITH Linux-syscall-note
11+
This package 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 2 of the License, or
14+
(at your option) any later version.
15+
.
16+
This package 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 this package. If not, see <https://www.gnu.org/licenses/>.
23+
.
24+
With an explicit syscall exception, as stated:
25+
.
26+
SPDX-Exception-Identifier: Linux-syscall-note
27+
SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html
28+
SPDX-Licenses: GPL-2.0
29+
Usage-Guide:
30+
This exception is used together with one of the above SPDX-Licenses
31+
to mark user space API (uapi) header files so they can be included
32+
into non GPL compliant user space application code.
33+
To use this exception add it with the keyword WITH to one of the
34+
identifiers in the SPDX-Licenses tag:
35+
SPDX-License-Identifier: <SPDX-License> WITH Linux-syscall-note
36+
License-Text:
37+
.
38+
NOTE! This copyright does *not* cover user programs that use kernel
39+
services by normal system calls - this is merely considered normal use
40+
of the kernel, and does *not* fall under the heading of "derived work".
41+
Also note that the GPL below is copyrighted by the Free Software
42+
Foundation, but the instance of code that it refers to (the Linux
43+
kernel) is copyrighted by me and others who actually wrote it.
44+
.
45+
Also note that the only valid version of the GPL as far as the kernel
46+
is concerned is _this_ particular version of the license (ie v2, not
47+
v2.2 or v3.x or whatever), unless explicitly otherwise stated.
48+
Comment:
49+
On Debian systems, the complete text of the GNU General
50+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
51+
52+
53+
Files:
54+
debian/*
55+
Copyright:
56+
2024 Bernd Zeimetz <[email protected]>
57+
License: GPL-2.0 WITH Linux-syscall-note

debian/rules

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/make -f
2+
3+
# See debhelper(7) (uncomment to enable).
4+
# Output every command that modifies files on the build system.
5+
#export DH_VERBOSE = 1
6+
7+
8+
# See FEATURE AREAS in dpkg-buildflags(1).
9+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10+
11+
# See ENVIRONMENT in dpkg-buildflags(1).
12+
# Package maintainers to append CFLAGS.
13+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
14+
# Package maintainers to append LDFLAGS.
15+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
16+
17+
export libdir=lib
18+
19+
%:
20+
dh $@
21+
22+
clean:
23+
dh $@
24+
rm -f src/*.plist
25+
26+
override_dh_auto_test:
27+
# no test for now, needs root and more magic.
28+
29+
override_dh_auto_install:
30+
dh_auto_install
31+
rm -rf debian/bpftune/etc
32+
33+
# dh_make generated override targets.
34+
# This is an example for Cmake (see <https://bugs.debian.org/641051>).
35+
#override_dh_auto_configure:
36+
# dh_auto_configure -- \
37+
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

debian/salsa-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# For more information on what jobs are run see:
2+
# https://salsa.debian.org/salsa-ci-team/pipeline
3+
#
4+
# To enable the jobs, go to your repository (at salsa.debian.org)
5+
# and click over Settings > CI/CD > Expand (in General pipelines).
6+
# In "CI/CD configuration file" write debian/salsa-ci.yml and click
7+
# in "Save Changes". The CI tests will run after the next commit.
8+
---
9+
include:
10+
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/upstream/metadata

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Bug-Database: https://github.com/oracle/bpftune/issues
2+
Bug-Submit: https://github.com/oracle/bpftune/issues/new
3+
Changelog: https://github.com/oracle/bpftune/blob/master/CHANGES
4+
Documentation: https://github.com/oracle/bpftune/wiki
5+
Repository-Browse: https://github.com/oracle/bpftune
6+
Repository: https://github.com/oracle/bpftune.git

0 commit comments

Comments
 (0)