Initial packaging
Shengjing Zhu
4 years ago
0 | golang-github-cilium-ebpf (0.0~git20200413.48fb86d-1) unstable; urgency=medium | |
1 | ||
2 | * Initial release (Closes: 956909) | |
3 | ||
4 | -- Shengjing Zhu <zhsj@debian.org> Thu, 16 Apr 2020 22:36:23 +0800 |
0 | Source: golang-github-cilium-ebpf | |
1 | Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org> | |
2 | Uploaders: Shengjing Zhu <zhsj@debian.org>, | |
3 | Section: devel | |
4 | Testsuite: autopkgtest-pkg-go | |
5 | Priority: optional | |
6 | Build-Depends: debhelper-compat (= 12), | |
7 | dh-golang, | |
8 | golang-any, | |
9 | golang-golang-x-sys-dev, | |
10 | golang-golang-x-xerrors-dev, | |
11 | Standards-Version: 4.5.0 | |
12 | Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-cilium-ebpf | |
13 | Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-cilium-ebpf.git | |
14 | Homepage: https://github.com/cilium/ebpf | |
15 | Rules-Requires-Root: no | |
16 | XS-Go-Import-Path: github.com/cilium/ebpf | |
17 | ||
18 | Package: golang-github-cilium-ebpf-dev | |
19 | Architecture: all | |
20 | Depends: golang-golang-x-sys-dev, | |
21 | golang-golang-x-xerrors-dev, | |
22 | ${misc:Depends}, | |
23 | Description: eBPF Library for Go | |
24 | eBPF is a pure Go library that provides utilities for loading, compiling, | |
25 | and debugging eBPF programs. It has minimal external dependencies and | |
26 | is intended to be used in long running processes. |
0 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
1 | Upstream-Name: ebpf | |
2 | Source: https://github.com/cilium/ebpf | |
3 | ||
4 | Files: * | |
5 | Copyright: 2017 Nathan Sweet | |
6 | 2018-2019 Cloudflare | |
7 | 2019 Cilium | |
8 | License: Expat | |
9 | ||
10 | Files: example_sock_extract_dist_test.go | |
11 | Copyright: 2015-2017 Cloudflare | |
12 | License: BSD-3-clause | |
13 | Redistribution and use in source and binary forms, with or without | |
14 | modification, are permitted provided that the following conditions are | |
15 | met: | |
16 | . | |
17 | * Redistributions of source code must retain the above copyright | |
18 | notice, this list of conditions and the following disclaimer. | |
19 | * Redistributions in binary form must reproduce the above | |
20 | copyright notice, this list of conditions and the following disclaimer | |
21 | in the documentation and/or other materials provided with the | |
22 | distribution. | |
23 | * Neither the name of the Cloudflare, Inc. nor the names of its | |
24 | contributors may be used to endorse or promote products derived from | |
25 | this software without specific prior written permission. | |
26 | . | |
27 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
28 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
29 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
30 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
31 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
32 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
33 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
34 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
35 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
36 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
37 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
38 | ||
39 | Files: debian/* | |
40 | Copyright: 2020 Shengjing Zhu <zhsj@debian.org> | |
41 | License: Expat | |
42 | Comment: Debian packaging is licensed under the same terms as upstream | |
43 | ||
44 | License: Expat | |
45 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
46 | of this software and associated documentation files (the "Software"), to deal | |
47 | in the Software without restriction, including without limitation the rights | |
48 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
49 | copies of the Software, and to permit persons to whom the Software is | |
50 | furnished to do so, subject to the following conditions: | |
51 | . | |
52 | The above copyright notice and this permission notice shall be included in all | |
53 | copies or substantial portions of the Software. | |
54 | . | |
55 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
56 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
57 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
58 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
59 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
60 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
61 | SOFTWARE. |
0 | # auto-generated, DO NOT MODIFY. | |
1 | # The authoritative copy of this file lives at: | |
2 | # https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go | |
3 | ||
4 | image: stapelberg/ci2 | |
5 | ||
6 | test_the_archive: | |
7 | artifacts: | |
8 | paths: | |
9 | - before-applying-commit.json | |
10 | - after-applying-commit.json | |
11 | script: | |
12 | # Create an overlay to discard writes to /srv/gopath/src after the build: | |
13 | - "rm -rf /cache/overlay/{upper,work}" | |
14 | - "mkdir -p /cache/overlay/{upper,work}" | |
15 | - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src" | |
16 | - "export GOPATH=/srv/gopath" | |
17 | - "export GOCACHE=/cache/go" | |
18 | # Build the world as-is: | |
19 | - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json" | |
20 | # Copy this package into the overlay: | |
21 | - "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'" | |
22 | - "pgt-gopath -dsc /tmp/export/*.dsc" | |
23 | # Rebuild the world: | |
24 | - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json" | |
25 | - "ci-diff before-applying-commit.json after-applying-commit.json" |
0 | # Testdata | |
1 | arch-dependent-file-in-usr-share usr/share/gocode/src/github.com/cilium/ebpf/testdata/*.elf | |
2 | # Testdata | |
3 | arch-independent-package-contains-binary-or-object usr/share/gocode/src/github.com/cilium/ebpf/testdata/*.elf | |
4 | # Testdata | |
5 | unstripped-binary-or-object usr/share/gocode/src/github.com/cilium/ebpf/testdata/*.elf |
0 | #!/usr/bin/make -f | |
1 | ||
2 | %: | |
3 | dh $@ --buildsystem=golang --with=golang | |
4 | ||
5 | # In most environments, tests are running in schroot, | |
6 | # which has no permission to run bpf programs. | |
7 | override_dh_auto_test: | |
8 | -dh_auto_test |
0 | 3.0 (quilt) |
0 | # Source is testdata/loader.c | |
1 | source-is-missing testdata/loader-*.elf | |
2 | # Testdata | |
3 | source-contains-prebuilt-binary testdata/*.elf |
0 | version=4 | |
1 | opts="mode=git, pgpmode=none" \ | |
2 | https://github.com/cilium/ebpf.git \ | |
3 | HEAD debian | |
4 | ||
5 | # Use the following when upstream starts to tag releases: | |
6 | # | |
7 | #version=4 | |
8 | #opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%golang-github-cilium-ebpf-$1.tar.gz%,\ | |
9 | # uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/" \ | |
10 | # https://github.com/cilium/ebpf/tags .*/v?(\d\S*)\.tar\.gz debian |