mirror of
https://passt.top/passt
synced 2024-12-22 21:55:22 +00:00
contrib: Add example of Debian package files
...using dh_apparmor to ship and apply AppArmor profiles. Tried on current Debian testing (Bookworm, 12). Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
81c2461408
commit
bc925b1da4
@ -345,9 +345,11 @@ speeding up local connections, and usually requiring NAT. _pasta_:
|
|||||||
x86_64 (static builds)
|
x86_64 (static builds)
|
||||||
* ✅ testing on non-x86_64 architectures (aarch64, armv7l, i386, ppc64, ppc64le,
|
* ✅ testing on non-x86_64 architectures (aarch64, armv7l, i386, ppc64, ppc64le,
|
||||||
s390x)
|
s390x)
|
||||||
|
* ✅ example Debian [package files](passt/tree/contrib/debian),
|
||||||
|
example [`spec` file](/passt/tree/contrib/fedora) for Fedora
|
||||||
* 🛠 official
|
* 🛠 official
|
||||||
[OpenSUSE packages](https://build.opensuse.org/package/show/home:mnhauke/passt)
|
[OpenSUSE packages](https://build.opensuse.org/package/show/home:mnhauke/passt)
|
||||||
* ⌚ packages for Debian, Fedora, etc.
|
* ⌚ official packages for Debian, Fedora, etc.
|
||||||
|
|
||||||
### Services
|
### Services
|
||||||
* ✅ built-in [ARP proxy](/passt/tree/arp.c)
|
* ✅ built-in [ARP proxy](/passt/tree/arp.c)
|
||||||
|
8
contrib/debian/README.Debian
Normal file
8
contrib/debian/README.Debian
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
passt for Debian
|
||||||
|
|
||||||
|
Please edit this to provide information specific to
|
||||||
|
this passt Debian package.
|
||||||
|
|
||||||
|
(Describe here)
|
||||||
|
|
||||||
|
-- Stefano Brivio <> Mon, 28 Mar 2022 15:54:11 +0200
|
6
contrib/debian/changelog
Normal file
6
contrib/debian/changelog
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
passt (0+gitXXXXXXXXXXXX-1) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Initial release. Closes: #nnnn
|
||||||
|
<nnnn is the bug number of your ITP>
|
||||||
|
|
||||||
|
-- Stefano Brivio <> Mon, 28 Mar 2022 15:54:11 +0200
|
22
contrib/debian/control
Normal file
22
contrib/debian/control
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Source: passt
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Stefano Brivio <sbrivio@redhat.com>
|
||||||
|
Build-Depends: debhelper-compat (= 12), dh-apparmor
|
||||||
|
Standards-Version: 4.5.0
|
||||||
|
Homepage: https://passt.top/
|
||||||
|
|
||||||
|
Suggests: apparmor
|
||||||
|
Package: passt
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: foreign
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Description: user-mode networking daemons for virtual machines and namespaces
|
||||||
|
passt implements a translation layer between a Layer-2 network interface and
|
||||||
|
native Layer-4 sockets (TCP, UDP, ICMP/ICMPv6 echo) on a host. It doesn't
|
||||||
|
require any capabilities or privileges, and it can be used as a simple
|
||||||
|
replacement for Slirp.
|
||||||
|
pasta (same binary as passt, different command) offers equivalent functionality,
|
||||||
|
for network namespaces: traffic is forwarded using a tap interface inside the
|
||||||
|
namespace, without the need to create further interfaces on the host, hence not
|
||||||
|
requiring any capabilities or privileges.
|
13
contrib/debian/copyright
Normal file
13
contrib/debian/copyright
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: passt
|
||||||
|
Upstream-Contact: Stefano Brivio <sbrivio@redhat.com>
|
||||||
|
Upstream-Contact: passt-dev@passt.top
|
||||||
|
Source: https://passt.top/
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2020-2022, Red Hat GmbH, Stefano Brivio <sbrivio@redhat.com>
|
||||||
|
License: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
Files: checksum.c
|
||||||
|
Copyright: 2021, Red Hat GmbH, Stefano Brivio <sbrivio@redhat.com>
|
||||||
|
License: AGPL-3.0-or-later AND BSD-3-Clause
|
12
contrib/debian/rules
Executable file
12
contrib/debian/rules
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install -- prefix=/usr
|
||||||
|
mkdir -p debian/passt/etc/apparmor.d/
|
||||||
|
cp contrib/apparmor/usr.bin.passt debian/passt/etc/apparmor.d/usr.bin.passt
|
||||||
|
dh_apparmor --profile-name=usr.bin.passt -ppasst
|
||||||
|
cp contrib/apparmor/usr.bin.pasta debian/passt/etc/apparmor.d/usr.bin.pasta
|
||||||
|
dh_apparmor --profile-name=usr.bin.pasta -ppasst
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
2
contrib/debian/watch
Normal file
2
contrib/debian/watch
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# You must remove unused comment lines for the released package.
|
||||||
|
version=3
|
Loading…
Reference in New Issue
Block a user