diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-04-08 13:45:44 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-04-08 13:45:44 +0200 |
commit | d57df2d967ef8a01a3991f0bc877c24664e34dcc (patch) | |
tree | 02ec67d3c2dcb477cf2c413c1c7b883b3adf0657 | |
parent | 1d0cda353fe1fbea440033db140605a88ec7dd98 (diff) | |
download | hvinfo-d57df2d967ef8a01a3991f0bc877c24664e34dcc.tar.gz hvinfo-d57df2d967ef8a01a3991f0bc877c24664e34dcc.zip |
Add debian packaging.
-rw-r--r-- | README.md | 11 | ||||
-rw-r--r-- | debian/README | 6 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 13 | ||||
-rw-r--r-- | debian/copyright | 36 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/lintian | 0 | ||||
-rwxr-xr-x | debian/rules | 15 |
9 files changed, 89 insertions, 0 deletions
@@ -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=<some dir> ``` +### 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 <daniil@baturin.org> 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 <daniil@baturin.org> 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 <daniil@baturin.org> +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 <daniil@baturin.org> on +Tue, 07 Apr 2015. + +It's original content from the GIT repository + <https://github.com/dmbaturin/hvinfo> + +Upstream Author: + + <daniil@baturin.org> + +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 <daniil@baturin.org> 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 --- /dev/null +++ b/debian/lintian 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 |