]> git.proxmox.com Git - proxmox-backup.git/commitdiff
add Makefile to build debian package
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 30 Nov 2018 12:39:40 +0000 (13:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 30 Nov 2018 12:41:26 +0000 (13:41 +0100)
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/install [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b465b8e
--- /dev/null
+++ b/Makefile
@@ -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
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..18c5e33
--- /dev/null
@@ -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
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..f599e28
--- /dev/null
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..9c106b2
--- /dev/null
@@ -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.
diff --git a/debian/install b/debian/install
new file mode 100644 (file)
index 0000000..91b7d9b
--- /dev/null
@@ -0,0 +1 @@
+target/release/api-test-server /usr/sbin
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..9699f8a
--- /dev/null
@@ -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