From d57df2d967ef8a01a3991f0bc877c24664e34dcc Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 8 Apr 2015 13:45:44 +0200 Subject: Add debian packaging. --- README.md | 11 +++++++++++ debian/README | 6 ++++++ debian/changelog | 6 ++++++ debian/compat | 1 + debian/control | 13 +++++++++++++ debian/copyright | 36 ++++++++++++++++++++++++++++++++++++ debian/docs | 1 + debian/lintian | 0 debian/rules | 15 +++++++++++++++ 9 files changed, 89 insertions(+) create mode 100644 debian/README create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/lintian create mode 100755 debian/rules diff --git a/README.md b/README.md index 2405c6f..a9f53e5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Yet another hypervisor detection tool, this time in a high level language and doesn't want root privileges. +## Building + To build it, you need GNAT 4.x or higher (Ada 2005 support required) and gprbuild. Build setup is rather simplistic at this time. @@ -11,6 +13,15 @@ make make install PREFIX= ``` +### Building a Debian package + +Debian packaging is not yet good enough to get it included in Debian, but should +be fine for local use. Install the devscripts package and do: + +``` +debuild -us -uc +``` + If you have your Ada toolchain installed in an unusual location, it's better to ensure you have it in your $PATH. diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..8050cf8 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package hvinfo +------------------------------- + +hvinfo is a hypervisor detection tool for x86 machines. + + -- Daniil Baturin Tue, 07 Apr 2015 19:00:40 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..79a46c5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +hvinfo (1.0.0) unstable; urgency=low + + * Initial release. + + -- Daniil Baturin Tue, 07 Apr 2015 19:14:10 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f383eb7 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: hvinfo +Section: contrib/utilities +Priority: extra +Maintainer: Daniil Baturin +Standards-Version: 3.9.1 +Build-Depends: debhelper (>= 7), gnat (>=4.0), gprbuild + +Package: hvinfo +Depends: libgnat (>= 4.0) +Architecture: i386 amd64 +Description: x86 hypervisor detection tool + An x86 hypervisor detection with support for detecting + KVM, Xen PV or HVM, VMware, and others. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a151dd1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Daniil Baturin on +Tue, 07 Apr 2015. + +It's original content from the GIT repository + + +Upstream Author: + + + +Copyright: + + Copyright (C) 2015 Daniil Baturin + All Rights Reserved. + +License: + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +A copy of the GNU General Public License is available as +`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +You can also obtain it by writing to the Free Software Foundation, +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + +The Debian packaging is (C) 2015, Daniil Baturin and +is licensed under the GPL, see above. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/lintian b/debian/lintian new file mode 100644 index 0000000..e69de29 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..30601ae --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +%: + dh $@ + +override_dh_auto_configure: + # No configure script there + +override_dh_auto_build: + make BUILD_TARGET=$(DEB_BUILD_GNU_TYPE) + +override_dh_auto_clean: + make clean -- cgit v1.2.3