prepare for debcargo packaging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-01-21 15:47:44 +01:00
parent 5bd0c5620f
commit 634239cc56
6 changed files with 48 additions and 12 deletions

View File

@ -5,6 +5,11 @@ version = "0.1.0"
authors = [
"Wolfgang Bumiller <w.bumiller@proxmox.com>",
]
license = "AGPL-3"
description = "Proxmox LXC seccomp-proxy syscall handler daemon"
homepage = "https://www.proxmox.com"
exclude = [ "build", "debian" ]
[dependencies]
bitflags = "1.2"

2
debian/compat vendored
View File

@ -1 +1 @@
11
12

View File

@ -1,11 +1,3 @@
Source: pve-lxc-syscalld
Section: admin
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper (>= 10),
Standards-Version: 3.9.5
Homepage: https://www.proxmox.com
Package: pve-lxc-syscalld
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},

2
debian/copyright vendored
View File

@ -1,4 +1,4 @@
Copyright (C) 2019 Proxmox Server Solutions GmbH
Copyright (C) 2019,2020 Proxmox Server Solutions GmbH
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>

11
debian/debcargo.toml vendored Normal file
View File

@ -0,0 +1,11 @@
overlay = "."
crate_src_path = "."
[source]
maintainer = "Proxmox Support Team <support@proxmox.com>"
section = "admin"
build_depends = [ "debhelper (>= 12~)", "bash-completion" ]
build_depends_excludes = [ "debhelper (>=11)" ]
# TODO:
vcs_git = ""
vcs_browser = ""

32
debian/rules vendored
View File

@ -1,9 +1,37 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
DH_VERBOSE = 1
include /usr/share/dpkg/pkg-info.mk
include /usr/share/rustc/architecture.mk
export BUILD_MODE=release
CARGO=/usr/share/cargo/bin/cargo
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
export CARGO_HOME = $(CURDIR)/debian/cargo_home
export DEB_CARGO_CRATE=pve-lxc-syscalld_$(DEB_VERSION_UPSTREAM)
export DEB_CARGO_PACKAGE=pve-lxc-syscalld
%:
dh $@
dh $@
override_dh_auto_configure:
$(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system
dh_auto_configure
override_dh_missing:
dh_missing --fail-missing
#override_dh_installinit:
# dh_installinit
# dh_installinit --name pve-lxc-syscalld
# # workaround https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933541
# # TODO: remove once available (Debian 11 ?)
# override_dh_dwz:
# dh_dwz --no-dwz-multifile