diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a23a04e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +bpftune (0-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #nnnn) + + -- Bernd Zeimetz Thu, 28 Nov 2024 21:39:29 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b67c608 --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: bpftune +Section: admin +Priority: optional +Maintainer: Bernd Zeimetz +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + python3-docutils, + libbpf-dev, + libcap-dev, + clang, + llvm, + bpftool, + libnl-3-dev, + libnl-route-3-dev, + iperf3 +Standards-Version: 4.7.0 +Homepage: https://github.com/oracle/bpftune/tree/main +#Vcs-Browser: https://salsa.debian.org/debian/bpftune +#Vcs-Git: https://salsa.debian.org/debian/bpftune.git + +Package: bpftune +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Description: BPF driven auto-tuning + bpftune aims to provide lightweight, always-on auto-tuning + of system behaviour via BPF observability. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b25aba7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,57 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/oracle/bpftune +Upstream-Name: bpftune +Upstream-Contact: https://github.com/oracle/bpftune/issues + +Files: + * +Copyright: + 2023 Oracle and/or its affiliates +License: GPL-2.0 WITH Linux-syscall-note + 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 package. If not, see . + . + With an explicit syscall exception, as stated: + . + SPDX-Exception-Identifier: Linux-syscall-note + SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html + SPDX-Licenses: GPL-2.0 + Usage-Guide: + This exception is used together with one of the above SPDX-Licenses + to mark user space API (uapi) header files so they can be included + into non GPL compliant user space application code. + To use this exception add it with the keyword WITH to one of the + identifiers in the SPDX-Licenses tag: + SPDX-License-Identifier: WITH Linux-syscall-note + License-Text: + . + NOTE! This copyright does *not* cover user programs that use kernel + services by normal system calls - this is merely considered normal use + of the kernel, and does *not* fall under the heading of "derived work". + Also note that the GPL below is copyrighted by the Free Software + Foundation, but the instance of code that it refers to (the Linux + kernel) is copyrighted by me and others who actually wrote it. + . + Also note that the only valid version of the GPL as far as the kernel + is concerned is _this_ particular version of the license (ie v2, not + v2.2 or v3.x or whatever), unless explicitly otherwise stated. +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". + + +Files: + debian/* +Copyright: + 2024 Bernd Zeimetz +License: GPL-2.0 WITH Linux-syscall-note diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3285c0d --- /dev/null +++ b/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +# See debhelper(7) (uncomment to enable). +# Output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# See FEATURE AREAS in dpkg-buildflags(1). +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# See ENVIRONMENT in dpkg-buildflags(1). +# Package maintainers to append CFLAGS. +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# Package maintainers to append LDFLAGS. +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +export libdir=lib + +%: + dh $@ + +clean: + dh $@ + rm -f src/*.plist + +override_dh_auto_test: + # no test for now, needs root and more magic. + +override_dh_auto_install: + dh_auto_install + rm -rf debian/bpftune/etc + +# dh_make generated override targets. +# This is an example for Cmake (see ). +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..11a64c6 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,10 @@ +# For more information on what jobs are run see: +# https://salsa.debian.org/salsa-ci-team/pipeline +# +# To enable the jobs, go to your repository (at salsa.debian.org) +# and click over Settings > CI/CD > Expand (in General pipelines). +# In "CI/CD configuration file" write debian/salsa-ci.yml and click +# in "Save Changes". The CI tests will run after the next commit. +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml 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) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..016b7b8 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,6 @@ +Bug-Database: https://github.com/oracle/bpftune/issues +Bug-Submit: https://github.com/oracle/bpftune/issues/new +Changelog: https://github.com/oracle/bpftune/blob/master/CHANGES +Documentation: https://github.com/oracle/bpftune/wiki +Repository-Browse: https://github.com/oracle/bpftune +Repository: https://github.com/oracle/bpftune.git