add Makefile to build debian package
This commit is contained in:
parent
e3871182c5
commit
de7798142a
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
VERSION=0.1
|
||||
PACKAGE=api-test-server
|
||||
PKGREL=1
|
||||
|
||||
|
||||
all: target/release/api-test-server
|
||||
|
||||
target/release/api-test-server:
|
||||
cargo build --release
|
||||
|
||||
deb:
|
||||
rm -rf build
|
||||
# build here to cache results
|
||||
cargo build --release
|
||||
rsync -a debian Cargo.lock Cargo.toml src target build
|
||||
cd build; dpkg-buildpackage -b -us -uc
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
cargo clean
|
7
debian/changelog
vendored
Normal file
7
debian/changelog
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
rust-api-test-server (0.1-1) unstable; urgency=medium
|
||||
|
||||
[ Proxmox Support Team ]
|
||||
* first try
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Fri, 30 Nov 2018 13:03:28 +0100
|
||||
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
10
|
13
debian/control
vendored
Normal file
13
debian/control
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Source: rust-api-test-server
|
||||
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: api-test-server
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: API Test Server
|
||||
This is experimental code used to test Rust.
|
1
debian/install
vendored
Normal file
1
debian/install
vendored
Normal file
@ -0,0 +1 @@
|
||||
target/release/api-test-server /usr/sbin
|
12
debian/rules
vendored
Executable file
12
debian/rules
vendored
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/make -f
|
||||
# See debhelper(7) (uncomment to enable)
|
||||
# output every command that modifies files on the build system.
|
||||
#DH_VERBOSE = 1
|
||||
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
|
||||
override_dh_auto_build:
|
||||
cargo build --release
|
Loading…
Reference in New Issue
Block a user