summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian6
-rw-r--r--debian/README.source33
-rw-r--r--debian/changelog157
-rw-r--r--debian/compat1
-rw-r--r--debian/control31
-rw-r--r--debian/copyright331
-rw-r--r--debian/docs3
l---------debian/ipmiutil.cron.daily1
l---------debian/ipmiutil.ipmi_port.init1
l---------debian/ipmiutil.ipmi_port.service1
l---------debian/ipmiutil.ipmiutil_asy.init1
l---------debian/ipmiutil.ipmiutil_asy.service1
l---------debian/ipmiutil.ipmiutil_evt.init1
l---------debian/ipmiutil.ipmiutil_evt.service1
l---------debian/ipmiutil.ipmiutil_wdt.init1
l---------debian/ipmiutil.ipmiutil_wdt.service1
l---------debian/ipmiutil_wdt.service1
-rw-r--r--debian/maintscript4
-rw-r--r--debian/patches/0100-out-of-bounds.patch61
-rw-r--r--debian/patches/0105-typo.patch103
-rw-r--r--debian/patches/0600-typo-man.patch66
-rw-r--r--debian/patches/0700-init.patch228
-rw-r--r--debian/patches/0705-crontab.patch20
-rw-r--r--debian/patches/0710-systemd.patch21
-rw-r--r--debian/patches/series6
-rwxr-xr-xdebian/postinst41
-rwxr-xr-xdebian/postrm26
-rwxr-xr-xdebian/rules33
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides2
-rw-r--r--debian/watch3
31 files changed, 1187 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..f4058b2
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+ipmiutil for Debian
+-------------------
+
+ Please read the README.gz for setup.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 26 May 2014 13:11:06 +0200
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..66d89d0
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,33 @@
+ipmiutil for Debian
+-------------------
+
+Hello,
+
+now I use the branching model from Vincent Driessen[1].
+
+I use the gitflow-avh[2]. with the Documentation[3].
+The Debian package can be found here[4].
+
+Please upload unattended uploads use a branch feature/<your title>.
+
+
+Many thanks.
+
+[1] http://nvie.com/posts/a-successful-git-branching-model/
+[2] https://github.com/petervanderdoes/gitflow-avh
+[3] https://github.com/petervanderdoes/gitflow-avh/wiki
+[4] https://tracker.debian.org/pkg/git-flow
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 02 Jun 2017 19:00:40 +0200
+
+
+- configure
+ parameter enable-landesk=yes does not work:
+ ipmiapi not found
+
+- copyright
+ Files: hpiutil/SaHpi.*
+ On the site http://www.saforum.org/Page/16627~375335 the file are
+ published under the Artistic License 2.0.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 29 Oct 2014 16:12:18 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..00309e0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,157 @@
+ipmiutil (3.1.2-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Refresh patches.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 03 Aug 2018 18:34:16 +0200
+
+ipmiutil (3.1.1-1) unstable; urgency=high
+
+ * New upstream release.
+ * Declare compliance with Debian Policy 4.1.5 (No changes needed).
+ * Move source.lintian-overrides to the preferred
+ debian/source/lintian-overrides.
+ * debian/copyright:
+ - Use secure copyright format URI.
+ - Change years for Andy Cress.
+ * debian/rules:
+ - Fix FTBFS with dh_installsystemd (Closes: #901731).
+ * debian/control:
+ - Switch Vcs-* to new location.
+ * Refresh debian/patches/0105-typo.patch.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Tue, 10 Jul 2018 18:21:47 +0200
+
+ipmiutil (3.0.8-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Refresh debian/patch/0700-init.patch.
+ * Change to my new mail address:
+ - debian/control,
+ - debian/copyright
+ * Declare compliance with Debian Policy 4.1.3 (No changes needed).
+ * Migrate to debhelper 11:
+ - Change debian/compat to 11.
+ - Bump minimum debhelper version in debian/control to >= 11.
+ * debian/rules (Closes: #877211):
+ - Add --no-parallel to fix frequent parallel FTBFS.
+ Thanks to Adrian Bunk <bunk@debian.org>.
+ - Switch from deprecated dh_systemd_enable to dh_installsystemd.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Tue, 06 Mar 2018 07:43:32 +0100
+
+ipmiutil (3.0.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches:
+ - debian/patches/0700-init.patch.
+ - debian/patches/0705-crontab.patch.
+ * New source.lintian-overrides to override ancient-libtool warning.
+ - With compat level 10 autoreconf called every time.
+ * Add new section at README.source to explain the branching model used.
+ * Declare compliance with Debian Policy 4.1.1. (No changes needed).
+ * Drop autotools-dev from Build-Depends and drop "--with autotools-dev"
+ from dh because this is already default when using dh compatibility
+ level 10.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 14 Oct 2017 19:41:11 +0200
+
+ipmiutil (3.0.1-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Fix configuration issues with service files (Closes: #848861):
+ - debian/rules:
+ + Add override_dh_systemd_enable to install *.service
+ files and add --no-enable option to all services which
+ need an IPMI driver.
+ + Remove override_dh_installinit so no conflicting
+ init scripts are installed.
+ + Add override_dh_system_start with --no-start and
+ --restart-after-upgrade for all daemons which need
+ an IPMI driver.
+ Thanks to Andreas Henriksson <andreas@fatal.se>!
+ * Drop both dh-autoreconf and dh-systemd from both Build-Depends
+ and drop "--with systemd --with autoreconf" from dh because
+ this is already default when using dh compatibility level 10.
+ Thanks to Andreas Henriksson <andreas@fatal.se>!
+ * Migrate to OpenSSL 1.1.0 (Closes: #828353)
+ - debian/control:
+ + Replace libssl1.0-dev with libssl-dev in Build-Depends.
+ + Add openssl to Build-Depends (required for configure script).
+ * Move purge action from prerm to postrm script to
+ properly clean up /var/lib/ipmiutil/ directory.
+ * Remove cruft files from /etc/init.d/:
+ - New debian/maintscript.
+ - debian/control:
+ + Add dpkg to Pre-Depends for maintscript.
+ * debian/copyright:
+ - Update copyright years for 2017.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 03 Jan 2017 03:38:28 +0100
+
+ipmiutil (3.0.0-2) unstable; urgency=medium
+
+ * debian/control:
+ - Switch Build-Depends from libssl-dev to libssl1.0-dev
+ until ipmiutil has been ported to OpenSSL 1.1.0.
+ - Bump debhelper Build-Depends minimum version to 10.
+ - Add missing lsb-base to Depends for binary:ipmiutil
+ as suggested by lintian.
+ * debian/compat:
+ - Bump compat level to 10.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 18 Nov 2016 13:59:54 +0100
+
+ipmiutil (3.0.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/control:
+ - Add missing build dependency libtool-bin.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 24 Aug 2016 20:50:13 +0200
+
+ipmiutil (2.9.9-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+ * debian/control:
+ - Correct Vcs-Git.
+ - Bump Standards-Version to 3.9.8 (no changes required).
+ * New debian/patches/0705-crontab.patch (LP: #1535408):
+ - Prevent running watchdog to send mails and log entries every minute.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 15 May 2016 23:06:42 +0200
+
+ipmiutil (2.9.8-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Refresh patches.
+ * debian/copyright: Add year 2016.
+ * debian/control:
+ - Bump Standards-Version to 3.9.7 (no changes required).
+ - Change Vcs-* to secure uri.
+ * debian/watch: Bump Version to 4 (no changes required).
+ * New debian/patches/0105-typo.patch.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Thu, 18 Feb 2016 03:19:27 +0100
+
+ipmiutil (2.9.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh and rename patches.
+ * Remove erroneous debian/ipmiutuil.ipmi_port.init.
+ * Replace deprecated portmap with rpcbind (Closes: #796364):
+ - debian/patches/0700-init.patch:
+ + Replace portmap with rpcbind in scripts/ipmi_port.sh.
+ - debian/control:
+ + Add rpcbind to Depends.
+ * debian/rules:
+ - Pass "--with autoreconf" to dh.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Thu, 17 Dec 2015 21:42:37 +0100
+
+ipmiutil (2.9.6-1) unstable; urgency=low
+
+ * Initial release (Closes: #753881).
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 29 May 2015 08:27:28 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..fe6b53d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: ipmiutil
+Section: utils
+Priority: optional
+Maintainer: Jörg Frings-Fürst <debian@jff.email>
+Build-Depends:
+ debhelper (>= 11),
+ libfreeipmi-dev (>= 1.1.5) | libopenipmi-dev (>=2.0.18),
+ libssl-dev,
+ libtool-bin,
+ openssl
+Standards-Version: 4.1.5
+Homepage: https://sourceforge.net/projects/ipmiutil/
+Vcs-Git: git://jff.email/opt/git/ipmiutil.git
+Vcs-Browser: https://jff.email/cgit/ipmiutil.git
+
+Package: ipmiutil
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ lsb-base (>= 3.0-6),
+ rpcbind
+Pre-Depends:
+ dpkg (>= 1.15.7.2)
+Description: IPMI management utilities
+ ipmiutil performs a series of common IPMI server management
+ functions to allow administrators to perform management functions
+ without a learning curve. It can gather FRU inventory data,
+ SEL firmware log, sensors, watchdog, power control, health,
+ monitoring, and has an SOL console. It can write sensor thresholds,
+ FRU asset tags, and supports a full IPMI configuration save/restore.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..51bac22
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,331 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ipmiutil
+Source: https://sourceforge.net/projects/ipmiutil/
+
+Files: *
+Copyright: 2002-2004 Service Availability(TM) Forum
+ 1999-2006 Intel Corporation
+ 2003 Sun Microsystems, Inc
+ 2009-2011 Kontron America, Inc
+ 2010-2017 Andy Cress <arcress@users.sourceforge.net>
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2014-2018 Jörg Frings-Fürst <debian@jff.email>
+License: BSD-3-clause
+
+Files: kern/bmcpanic-2.4.*
+ kern/bmcpanic-2.5.*
+Copyright: 2003 Intel Corporation
+License: GPL-2+
+
+Files: kern/ipmi_kcs.patch
+Copyright: 2000 San Mehat <nettwerk@valinux.com>
+License: GPL-2+
+
+Files: kern/linux-ipmi-*
+ kern/openipmi*
+Copyright: 2002 MontaVista Software Inc.
+License: GPL-2+
+
+Files: util/AnsiTerm.*
+Copyright: 2009 Robert Nelson <robertnelson@users.sourceforge.net>
+License: BSD-2-clause
+
+Files: util/md2.h
+Copyright: 2003 FreeIPMI Core Team
+License: GPL-2+ with OpenSSL exception
+
+Files: util/md5.c
+Copyright: 1999-2002 Aladdin Enterprises
+License: Zlib
+
+Files: hpiutil/SaHpi.*
+Copyright: 2002-2004 Service Availability(TM) Forum.
+License: Artistic-2.0
+
+License: Artistic-2.0
+ Everyone is permitted to copy and distribute verbatim copies of this license
+ document, but changing it is not allowed.
+ .
+ Preamble
+ .
+ This license establishes the terms under which a given free software Package
+ may be copied, modified, distributed, and/or redistributed. The intent is that
+ the Copyright Holder maintains some artistic control over the development of
+ that Package while still keeping the Package available as open source and free
+ software.
+ .
+ You are always permitted to make arrangements wholly outside of this license
+ directly with the Copyright Holder of a given Package. If the terms of this
+ license do not permit the full use that you propose to make of the Package,
+ you should contact the Copyright Holder and seek a different licensing
+ arrangement.
+ .
+ Definitions
+ .
+ "Copyright Holder" means the individual(s) or organization(s) named in the
+ copyright notice for the entire Package.
+ .
+ "Contributor" means any party that has contributed code or other material to
+ the Package, in accordance with the Copyright Holder's procedures.
+ .
+ "You" and "your" means any person who would like to copy, distribute, or
+ modify the Package.
+ .
+ "Package" means the collection of files distributed by the Copyright Holder,
+ and derivatives of that collection and/or of those files. A given Package may
+ consist of either the Standard Version, or a Modified Version.
+ .
+ "Distribute" means providing a copy of the Package or making it accessible to
+ anyone else, or in the case of a company or organization, to others outside of
+ your company or organization.
+ .
+ "Distributor Fee" means any fee that you charge for Distributing this Package
+ or providing support for this Package to another party. It does not mean
+ licensing fees.
+ .
+ "Standard Version" refers to the Package if it has not been modified, or has
+ been modified only in ways explicitly requested by the Copyright Holder.
+ .
+ "Modified Version" means the Package, if it has been changed, and such changes
+ were not explicitly requested by the Copyright Holder.
+ .
+ "Original License" means this Artistic License as Distributed with the
+ Standard Version of the Package, in its current version or as it may be
+ modified by The Perl Foundation in the future.
+ .
+ "Source" form means the source code, documentation source, and configuration
+ files for the Package.
+ .
+ "Compiled" form means the compiled bytecode, object code, binary, or any other
+ form resulting from mechanical transformation or translation of the Source form.
+ .
+ Permission for Use and Modification Without Distribution
+ .
+ (1) You are permitted to use the Standard Version and create and use Modified
+ Versions for any purpose without restriction, provided that you do not
+ Distribute the Modified Version.
+ .
+ Permissions for Redistribution of the Standard Version
+ .
+ (2) You may Distribute verbatim copies of the Source form of the Standard
+ Version of this Package in any medium without restriction, either gratis or
+ for a Distributor Fee, provided that you duplicate all of the original
+ copyright notices and associated disclaimers. At your discretion, such
+ verbatim copies may or may not include a Compiled form of the Package.
+ .
+ (3) You may apply any bug fixes, portability changes, and other modifications
+ made available from the Copyright Holder. The resulting Package will still be
+ considered the Standard Version, and as such will be subject to the Original
+ License.
+ .
+ Distribution of Modified Versions of the Package as Source
+ .
+ (4) You may Distribute your Modified Version as Source (either gratis or for a
+ Distributor Fee, and with or without a Compiled form of the Modified Version)
+ provided that you clearly document how it differs from the Standard Version,
+ including, but not limited to, documenting any non-standard features,
+ executables, or modules, and provided that you do at least ONE of the
+ following:
+ .
+ (a) make the Modified Version available to the Copyright Holder of the
+ Standard Version, under the Original License, so that the Copyright Holder may
+ include your modifications in the Standard Version.
+ (b) ensure that installation of your Modified Version does not prevent the
+ user installing or running the Standard Version. In addition, the Modified
+ Version must bear a name that is different from the name of the Standard
+ Version.
+ (c) allow anyone who receives a copy of the Modified Version to make the
+ Source form of the Modified Version available to others under
+ (i) the Original License or
+ (ii) a license that permits the licensee to freely copy, modify and
+ redistribute the Modified Version using the same licensing terms that apply to
+ the copy that the licensee received, and requires that the Source form of the
+ Modified Version, and of any works derived from it, be made freely available
+ in that license fees are prohibited but Distributor Fees are allowed.
+ .
+ Distribution of Compiled Forms of the Standard Version or Modified Versions
+ without the Source
+ .
+ (5) You may Distribute Compiled forms of the Standard Version without the
+ Source, provided that you include complete instructions on how to get the
+ Source of the Standard Version. Such instructions must be valid at the time of
+ your distribution. If these instructions, at any time while you are carrying
+ out such distribution, become invalid, you must provide new instructions on
+ demand or cease further distribution. If you provide valid instructions or
+ cease distribution within thirty days after you become aware that the
+ instructions are invalid, then you do not forfeit any of your rights under
+ this license.
+ .
+ (6) You may Distribute a Modified Version in Compiled form without the Source,
+ provided that you comply with Section 4 with respect to the Source of the
+ Modified Version.
+ .
+ Aggregating or Linking the Package
+ .
+ (7) You may aggregate the Package (either the Standard Version or Modified
+ Version) with other packages and Distribute the resulting aggregation provided
+ that you do not charge a licensing fee for the Package. Distributor Fees are
+ permitted, and licensing fees for other components in the aggregation are
+ permitted. The terms of this license apply to the use and Distribution of the
+ Standard or Modified Versions as included in the aggregation.
+ .
+ (8) You are permitted to link Modified and Standard Versions with other works,
+ to embed the Package in a larger work of your own, or to build stand-alone
+ binary or bytecode versions of applications that include the Package, and
+ Distribute the result without restriction, provided the result does not expose
+ a direct interface to the Package.
+ .
+ Items That are Not Considered Part of a Modified Version
+ .
+ (9) Works (including, but not limited to, modules and scripts) that merely
+ extend or make use of the Package, do not, by themselves, cause the Package to
+ be a Modified Version. In addition, such works are not considered parts of the
+ Package itself, and are not subject to the terms of this license.
+ .
+ General Provisions
+ .
+ (10) Any use, modification, and distribution of the Standard or Modified
+ Versions is governed by this Artistic License. By using, modifying or
+ distributing the Package, you accept this license. Do not use, modify, or
+ distribute the Package, if you do not accept this license.
+ .
+ (11) If your Modified Version has been derived from a Modified Version made by
+ someone other than you, you are nevertheless required to ensure that your
+ Modified Version complies with the requirements of this license.
+ .
+ (12) This license does not grant you the right to use any trademark, service
+ mark, tradename, or logo of the Copyright Holder.
+ .
+ (13) This license includes the non-exclusive, worldwide, free-of-charge patent
+ license to make, have made, use, offer to sell, sell, import and otherwise
+ transfer the Package with respect to any patent claims licensable by the
+ Copyright Holder that are necessarily infringed by the Package. If you
+ institute patent litigation (including a cross-claim or counterclaim) against
+ any party alleging that the Package constitutes direct or contributory patent
+ infringement, then this Artistic License to you shall terminate on the date
+ that such litigation is filed.
+ .
+ (14) Disclaimer of Warranty:
+ THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND
+ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE
+ DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW,
+ NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE
+ PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSD-3-clause
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: BSD-2-clause
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: GPL-2+
+ 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 of the License, 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+
+License: GPL-2+ with OpenSSL exception
+ 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 of the
+ License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful, but
+ is provided AS IS, WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, and
+ NON-INFRINGEMENT. See the GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+ .
+ In addition, as a special exception, the copyright holders give
+ permission to link the code of portions of this program with the
+ OpenSSL library under certain conditions as described in each
+ individual source file, and distribute linked combinations
+ including the two.
+ You must obey the GNU General Public License in all respects
+ for all of the code used other than OpenSSL. If you modify
+ file(s) with this exception, you may extend this exception to your
+ version of the file(s), but you are not obligated to do so. If you
+ do not wish to do so, delete this exception statement from your
+ version. If you delete this exception statement from all source
+ files in the program, then also delete it here.
+
+License: Zlib
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..5502ed8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
diff --git a/debian/ipmiutil.cron.daily b/debian/ipmiutil.cron.daily
new file mode 120000
index 0000000..9241b18
--- /dev/null
+++ b/debian/ipmiutil.cron.daily
@@ -0,0 +1 @@
+../scripts/checksel \ No newline at end of file
diff --git a/debian/ipmiutil.ipmi_port.init b/debian/ipmiutil.ipmi_port.init
new file mode 120000
index 0000000..2ab7329
--- /dev/null
+++ b/debian/ipmiutil.ipmi_port.init
@@ -0,0 +1 @@
+../scripts/ipmi_port.sh \ No newline at end of file
diff --git a/debian/ipmiutil.ipmi_port.service b/debian/ipmiutil.ipmi_port.service
new file mode 120000
index 0000000..f541dda
--- /dev/null
+++ b/debian/ipmiutil.ipmi_port.service
@@ -0,0 +1 @@
+../scripts/ipmi_port.service \ No newline at end of file
diff --git a/debian/ipmiutil.ipmiutil_asy.init b/debian/ipmiutil.ipmiutil_asy.init
new file mode 120000
index 0000000..b710118
--- /dev/null
+++ b/debian/ipmiutil.ipmiutil_asy.init
@@ -0,0 +1 @@
+../scripts/ipmiutil_asy \ No newline at end of file
diff --git a/debian/ipmiutil.ipmiutil_asy.service b/debian/ipmiutil.ipmiutil_asy.service
new file mode 120000
index 0000000..2ffb952
--- /dev/null
+++ b/debian/ipmiutil.ipmiutil_asy.service
@@ -0,0 +1 @@
+../scripts/ipmiutil_asy.service \ No newline at end of file
diff --git a/debian/ipmiutil.ipmiutil_evt.init b/debian/ipmiutil.ipmiutil_evt.init
new file mode 120000
index 0000000..192ca21
--- /dev/null
+++ b/debian/ipmiutil.ipmiutil_evt.init
@@ -0,0 +1 @@
+../scripts/ipmiutil_evt \ No newline at end of file
diff --git a/debian/ipmiutil.ipmiutil_evt.service b/debian/ipmiutil.ipmiutil_evt.service
new file mode 120000
index 0000000..fda1c39
--- /dev/null
+++ b/debian/ipmiutil.ipmiutil_evt.service
@@ -0,0 +1 @@
+../scripts/ipmiutil_evt.service \ No newline at end of file
diff --git a/debian/ipmiutil.ipmiutil_wdt.init b/debian/ipmiutil.ipmiutil_wdt.init
new file mode 120000
index 0000000..73359a6
--- /dev/null
+++ b/debian/ipmiutil.ipmiutil_wdt.init
@@ -0,0 +1 @@
+../scripts/ipmiutil_wdt \ No newline at end of file
diff --git a/debian/ipmiutil.ipmiutil_wdt.service b/debian/ipmiutil.ipmiutil_wdt.service
new file mode 120000
index 0000000..644b77d
--- /dev/null
+++ b/debian/ipmiutil.ipmiutil_wdt.service
@@ -0,0 +1 @@
+../scripts/ipmiutil_wdt.service \ No newline at end of file
diff --git a/debian/ipmiutil_wdt.service b/debian/ipmiutil_wdt.service
new file mode 120000
index 0000000..644b77d
--- /dev/null
+++ b/debian/ipmiutil_wdt.service
@@ -0,0 +1 @@
+../scripts/ipmiutil_wdt.service \ No newline at end of file
diff --git a/debian/maintscript b/debian/maintscript
new file mode 100644
index 0000000..0d95117
--- /dev/null
+++ b/debian/maintscript
@@ -0,0 +1,4 @@
+rm_conffile /etc/init.d/ipmi_port 3.0.0-3~
+rm_conffile /etc/init.d/ipmiutil_asy 3.0.0-3~
+rm_conffile /etc/init.d/ipmiutil_evt 3.0.0-3~
+rm_conffile /etc/init.d/ipmiutil_wdt 3.0.0-3~
diff --git a/debian/patches/0100-out-of-bounds.patch b/debian/patches/0100-out-of-bounds.patch
new file mode 100644
index 0000000..19ba67b
--- /dev/null
+++ b/debian/patches/0100-out-of-bounds.patch
@@ -0,0 +1,61 @@
+Description: prevent out-of-bounds
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: https://sourceforge.net/p/ipmiutil/mailman/ipmiutil-developers/?viewmonth=201410
+Last-Update: 2014-10-29
+---
+Index: trunk/util/ievents.c
+===================================================================
+--- trunk.orig/util/ievents.c
++++ trunk/util/ievents.c
+@@ -193,10 +193,10 @@ static const char *sensor_types[NSTYPES]
+ /* 2Eh */ "ME" /* 0xDC == ME Node Manager */
+ };
+
+-#define NFWERRS 15
++#define NFWERRS 14
+ static struct { /* See Table 36-3, type 0Fh, offset 00h */
+ int code; char *msg;
+- } fwerrs[NFWERRS] = {
++ } fwerrs[NFWERRS + 1] = {
+ { 0x00, "Unspecified"},
+ { 0x01, "No system memory"},
+ { 0x02, "No usable memory"},
+@@ -214,10 +214,10 @@ static struct { /* See Table 36-3, ty
+ { 0x0E, "Reserved" }
+ };
+
+-#define NFWSTAT 27
++#define NFWSTAT 26
+ static struct { /* See Table 36-3, type 0Fh, offset 01h & 02h */
+ int code; char *msg;
+- } fwstat[NFWSTAT] = {
++ } fwstat[NFWSTAT + 1] = {
+ { 0x00, "Unspecified"},
+ { 0x01, "Memory init"},
+ { 0x02, "Hard disk init"},
+Index: trunk/util/ifirewall.h
+===================================================================
+--- trunk.orig/util/ifirewall.h
++++ trunk/util/ifirewall.h
+@@ -82,7 +82,7 @@ struct lun_netfn_support {
+ };
+ struct lun_support {
+ unsigned char support;
+- struct lun_netfn_support netfn[MAX_NETFN_PAIR];
++ struct lun_netfn_support netfn[MAX_NETFN];
+ };
+ struct bmc_fn_support {
+ struct lun_support lun[MAX_LUN];
+Index: trunk/util/iconfig.c
+===================================================================
+--- trunk.orig/util/iconfig.c
++++ trunk/util/iconfig.c
+@@ -1765,7 +1765,7 @@ int SerialIsOptional(int bparam)
+ int optvals[9] = { 5, 9, 10, 11, 12, 13, 14, 20, 21 };
+ int rv = 0;
+ int i;
+- for (i = 0; i < sizeof(optvals); i++) {
++ for (i = 0; i < (sizeof(optvals) / sizeof(int)); i++) {
+ if (optvals[i] == bparam) { rv = 1; break; }
+ }
+ return(rv);
diff --git a/debian/patches/0105-typo.patch b/debian/patches/0105-typo.patch
new file mode 100644
index 0000000..aa7ca54
--- /dev/null
+++ b/debian/patches/0105-typo.patch
@@ -0,0 +1,103 @@
+Description: some source typos
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: Not possible because not authorized
+Last-Update: 2018-06-26
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/util/ihpm.c
+===================================================================
+--- trunk.orig/util/ihpm.c
++++ trunk/util/ihpm.c
+@@ -2741,7 +2741,7 @@ int HpmfwupgGetTargetUpgCapabilities(voi
+ bitField.autRollbackOverride ? 'y' : 'n');
+ lprintf(LOG_NOTICE,"IPMC degraded...........[%c] ", pCtx->resp.GlobalCapabilities.
+ bitField.ipmcDegradedDurinUpg ? 'y' : 'n');
+- lprintf(LOG_NOTICE,"Defered activation......[%c] ", pCtx->resp.GlobalCapabilities.
++ lprintf(LOG_NOTICE,"Deferred activation.....[%c] ", pCtx->resp.GlobalCapabilities.
+ bitField.deferActivation ? 'y' : 'n');
+ lprintf(LOG_NOTICE,"Service affected........[%c] ", pCtx->resp.GlobalCapabilities.
+ bitField.servAffectDuringUpg ? 'y' : 'n');
+@@ -3337,12 +3337,12 @@ int HpmfwupgQueryRollbackStatus(void *in
+ if ( pCtx->resp.rollbackComp.ComponentBits.byte != 0 )
+ {
+ /* Rollback occured */
+- lprintf(LOG_NOTICE,"Rollback occured on component mask: 0x%02x",
++ lprintf(LOG_NOTICE,"Rollback occurred on component mask: 0x%02x",
+ pCtx->resp.rollbackComp.ComponentBits.byte);
+ }
+ else
+ {
+- lprintf(LOG_NOTICE,"No Firmware rollback occured");
++ lprintf(LOG_NOTICE,"No Firmware rollback occurred");
+ }
+ }
+ else if ( rsp->ccode == 0x81 )
+@@ -3476,7 +3476,7 @@ struct ipmi_rs * HpmfwupgSendCmd(void *i
+ {
+ /* keeping the inaccessTimeout to 60 seconds results in almost 2900 retries
+ * So if the target is not available it will be retrying the command for 2900
+- * times which is not effecient -So reducing the Timout to 5 seconds which is
++ * times which is not effecient -So reducing the Timeout to 5 seconds which is
+ * almost 200 retries if it continuously recieves 0xC3 as completion code.
+ */
+ inaccessTimeout = HPMFWUPG_DEFAULT_UPGRADE_TIMEOUT;
+@@ -3747,7 +3747,7 @@ static void HpmfwupgPrintUsage(void)
+ lprintf(LOG_NOTICE," component 0 - BOOT");
+ lprintf(LOG_NOTICE," component 1 - RTK");
+ lprintf(LOG_NOTICE,"upgrade <file> activate - Upgrade the firmware using a valid HPM.1 image <file>");
+- lprintf(LOG_NOTICE," If activate is specified, activate new firmware rigth");
++ lprintf(LOG_NOTICE," If activate is specified, activate new firmware right");
+ lprintf(LOG_NOTICE," away");
+ lprintf(LOG_NOTICE,"activate [norollback] - Activate the newly uploaded firmware");
+ lprintf(LOG_NOTICE,"targetcap - Get the target upgrade capabilities");
+Index: trunk/lib/lanplus/lanplus.c
+===================================================================
+--- trunk.orig/lib/lanplus/lanplus.c
++++ trunk/lib/lanplus/lanplus.c
+@@ -3806,7 +3806,7 @@ ipmi_lanplus_open(struct ipmi_intf * int
+ if (ipmi_get_auth_capabilities_cmd(intf, &auth_cap))
+ {
+ lprintf(LOG_INFO, "Error issuing Get Channel "
+- "Authentication Capabilies request");
++ "Authentication Capabilities request");
+ goto fail;
+ }
+ }
+Index: trunk/hpiutil/hpisel.c
+===================================================================
+--- trunk.orig/hpiutil/hpisel.c
++++ trunk/hpiutil/hpisel.c
+@@ -293,12 +293,12 @@ struct {
+ #define NCRITS 10
+ char * crit_int_str[NCRITS] = { /* Critical Interrupt descriptions */
+ /*00*/ "FP NMI ", /* Front Panel NMI */
+- /*01*/ "Bus Timout",
++ /*01*/ "Bus Timeout",
+ /*02*/ "IOch NMI ", /* IO channel check NMI */
+ /*03*/ "Soft NMI ",
+ /*04*/ "PCI PERR ",
+ /*05*/ "PCI SERR ",
+- /*06*/ "EISA Timout",
++ /*06*/ "EISA Timeout",
+ /*07*/ "Bus Warn ", /* Bus Correctable Error */
+ /*08*/ "Bus Error", /* Bus Uncorrectable Error */
+ /*09*/ "Fatal NMI" };
+Index: trunk/util/ievents.c
+===================================================================
+--- trunk.orig/util/ievents.c
++++ trunk/util/ievents.c
+@@ -275,12 +275,12 @@ static struct {
+ #define NCRITS 10
+ char * crit_int_str[NCRITS] = { /* Critical Interrupt descriptions */
+ /*00*/ "FP NMI ", /* Front Panel NMI */
+- /*01*/ "Bus Timout",
++ /*01*/ "Bus Timeout",
+ /*02*/ "IOch NMI ", /* IO channel check NMI */
+ /*03*/ "Soft NMI ",
+ /*04*/ "PCI PERR ",
+ /*05*/ "PCI SERR ",
+- /*06*/ "EISA Timout",
++ /*06*/ "EISA Timeout",
+ /*07*/ "Bus Warn ", /* Bus Correctable Error */
+ /*08*/ "Bus Error", /* Bus Uncorrectable Error */
+ /*09*/ "Fatal NMI" };
diff --git a/debian/patches/0600-typo-man.patch b/debian/patches/0600-typo-man.patch
new file mode 100644
index 0000000..bbaff1d
--- /dev/null
+++ b/debian/patches/0600-typo-man.patch
@@ -0,0 +1,66 @@
+Description: typo manpages
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Last-Update: 2018-08-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/doc/iekanalyzer.8
+===================================================================
+--- trunk.orig/doc/iekanalyzer.8
++++ trunk/doc/iekanalyzer.8
+@@ -116,7 +116,7 @@ Display point to point physical connecti
+ AMC slot B2 topology:
+ Port 0 =====> On Carrier Device ID 0, Port 3
+ Port 2 =====> AMC slot B1, Port 2
+- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
++ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
+ From Carrier file: carrierfru
+ On Carrier Device ID 0 topology:
+ Port 0 =====> AMC slot B1, Port 4
+@@ -172,7 +172,7 @@ and an AMC module or between 2 AMC modul
+ Link Type: AMC.2 Ethernet
+ Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet link
+ Link Group ID: 0 || Link Asym. Match: exact match
+- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
++ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
+ AMC slot B1 port 1 ==> On-Carrier Device 0 port 12
+ Matching Result
+ From On-Carrier Device ID 0
+@@ -185,7 +185,7 @@ and an AMC module or between 2 AMC modul
+ Link Type: AMC.2 Ethernet
+ Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet link
+ Link Group ID: 0 || Link Asym. Match: exact match
+- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
++ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
+ On-Carrier Device vs AMC slot A2
+ AMC slot A2 port 0 ==> On-Carrier Device 0 port 3
+ Matching Result
+@@ -199,7 +199,7 @@ and an AMC module or between 2 AMC modul
+ Link Type: AMC.2 Ethernet
+ Link Type extension: 1000BASE-BX (SerDES Gigabit) Ethernet link
+ Link Group ID: 0 || Link Asym. Match: exact match
+- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
++ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
+ AMC slot B1 vs AMC slot A2
+ AMC slot A2 port 2 ==> AMC slot B1 port 2
+ Matching Result
+@@ -213,7 +213,7 @@ and an AMC module or between 2 AMC modul
+ Link Type: AMC.3 Storage
+ Link Type extension: Serial Attached SCSI (SAS/SATA)
+ Link Group ID: 0 || Link Asym. Match: FC or SAS interface {exact match}
+- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
++ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
+ .TP
+ \fIunmatch\fP \fBxx=filename\fR \fBxx=filename\fR \fB...\fr
+ .br
+Index: trunk/doc/ifru.8
+===================================================================
+--- trunk.orig/doc/ifru.8
++++ trunk/doc/ifru.8
+@@ -1,6 +1,6 @@
+ .TH IFRU 8 "Version 1.4: 09 Sep 2010"
+ .SH NAME
+-ipmiutil_fru \- show Field Replacable Unit configuration data
++ipmiutil_fru \- show Field Replaceable Unit configuration data
+ .SH SYNOPSIS
+ .B "ipmiutil fru [-abcdeikmsvx -N node -U user -P/-R pswd -EFJTVYZ]"
+
diff --git a/debian/patches/0700-init.patch b/debian/patches/0700-init.patch
new file mode 100644
index 0000000..64993d8
--- /dev/null
+++ b/debian/patches/0700-init.patch
@@ -0,0 +1,228 @@
+Description: include lsb/init-functions
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Last-Update: 2014-08-09
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/scripts/ipmi_port.sh
+===================================================================
+--- trunk.orig/scripts/ipmi_port.sh
++++ trunk/scripts/ipmi_port.sh
+@@ -14,8 +14,8 @@
+ # Provides: ipmi_port
+ # Required-Start: $local_fs $network $remote_fs
+ # Required-Stop: $local_fs $network $remote_fs
+-# Default-Start: 3 4 5 3 4 5
+-# Default-Stop: 0 1 2 6 0 1 2 6
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: ipmi_port reserves the RMCP port from portmap
+ # Description: ipmi_port is used to reserve the RMCP port from portmap
+ ### END INIT INFO
+@@ -29,7 +29,7 @@ name=ipmi_port
+ progdir=/usr/sbin
+ prog="$progdir/$name"
+ lockfile=/var/lock/subsys/$name
+-portmap=/etc/init.d/portmap
++portmap=/etc/init.d/rpcbind
+ shardir=/usr/share
+ mibdir=$shardir/snmp/mibs
+ datadir=$shardir/ipmiutil
+@@ -40,6 +40,8 @@ threshout=${vardir}/thresh_out.txt
+ # This threshold script could be created by ipmiutil sensor -p ...
+ thresh="${vardir}/thresholds.sh"
+
++. /lib/lsb/init-functions
++
+ getpid () {
+ # This is messy if the parent script is same name as $1
+ p=`ps -ef |grep "$1" |grep -v grep |awk '{print $2}'`
+@@ -184,4 +186,3 @@ case "$1" in
+ esac
+
+ exit $?
+-
+Index: trunk/scripts/ipmiutil_asy
+===================================================================
+--- trunk.orig/scripts/ipmiutil_asy
++++ trunk/scripts/ipmiutil_asy
+@@ -13,8 +13,8 @@
+ # Provides: ipmiutil_asy
+ # Required-Start: $local_fs $remote_fs $syslog
+ # Required-Stop: $local_fs $remote_fs $syslog
+-# Default-Start: 3 4 5 3 4 5
+-# Default-Stop: 0 1 2 6 0 1 2 6
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: ipmiutil async bridge agent init script
+ # Description: Init script starts ipmiutil async bridge agent for remote reset
+ ### END INIT INFO
+@@ -37,6 +37,8 @@ getpid () {
+ echo $p
+ }
+
++. /lib/lsb/init-functions
++
+ start()
+ {
+ echo -n "Starting $dname: "
+@@ -152,4 +154,3 @@ case "$1" in
+ exit 2
+ esac
+ exit $?
+-
+Index: trunk/scripts/ipmiutil_wdt
+===================================================================
+--- trunk.orig/scripts/ipmiutil_wdt
++++ trunk/scripts/ipmiutil_wdt
+@@ -14,8 +14,8 @@
+ # Provides: ipmiutil_wdt
+ # Required-Start: $local_fs $remote_fs $syslog
+ # Required-Stop: $local_fs $remote_fs $syslog
+-# Default-Start: 3 4 5 3 4 5
+-# Default-Stop: 0 1 2 6 0 1 2 6
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: ipmiutil watchdog timer init script
+ # Description: Init script to enable and reset ipmiutil watchdog timer via cron
+ ### END INIT INFO
+@@ -28,6 +28,8 @@ LOCKFILE=/var/lock/subsys/$name
+ wdtlog=/var/log/$name
+ wdtsec=150 # default 150 seconds for watchdog timeout (2*60 + 30)
+
++. /lib/lsb/init-functions
++
+ start() {
+ echo -n "Starting $prog: "
+ echo
+@@ -123,10 +125,13 @@ case "$1" in
+ restart)
+ restart
+ ;;
++ force-reload)
++ restart
++ ;;
+ reload)
+ restart
+ ;;
+ *)
+- echo "Usage: $0 {start|stop|status|restart|reload}"
++ echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
+ exit 1
+ esac
+Index: trunk/scripts/ipmiutil_evt
+===================================================================
+--- trunk.orig/scripts/ipmiutil_evt
++++ trunk/scripts/ipmiutil_evt
+@@ -15,8 +15,8 @@
+ # Provides: ipmiutil_evt
+ # Required-Start: $local_fs $remote_fs $syslog
+ # Required-Stop: $local_fs $remote_fs $syslog
+-# Default-Start: 3 4 5 3 4 5
+-# Default-Stop: 0 1 2 6 0 1 2 6
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: ipmiutil event monitoring init script
+ # Description: Init script starts ipmiutil event monitoring service
+ ### END INIT INFO
+@@ -40,6 +40,8 @@ getpid () {
+ echo $p
+ }
+
++. /lib/lsb/init-functions
++
+ start()
+ {
+ echo -n "Starting $name: "
+@@ -155,4 +157,3 @@ case "$1" in
+ exit 2
+ esac
+ exit $?
+-
+Index: trunk/scripts/ipmi_info
+===================================================================
+--- trunk.orig/scripts/ipmi_info
++++ trunk/scripts/ipmi_info
+@@ -11,8 +11,8 @@
+ # Provides: ipmi_info
+ # Required-Start: $local_fs $network $remote_fs
+ # Required-Stop: $local_fs $network $remote_fs
+-# Default-Start:
+-# Default-Stop:
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: ipmi_info saves OS info to the IPMI system info
+ # Description: ipmi_info saves OS info to the IPMI system info
+ ### END INIT INFO
+@@ -21,6 +21,8 @@ name=ipmi_info
+ iuprog=/usr/bin/ipmiutil
+ tmp=/tmp/ipmi_info.tmp
+
++. /lib/lsb/init-functions
++
+ getosver() {
+ if [ -f /etc/os-release ]; then
+ . /etc/os-release
+@@ -121,4 +123,3 @@ case "$1" in
+ esac
+
+ exit $?
+-
+Index: trunk/scripts/ipmiutil_asy.service
+===================================================================
+--- trunk.orig/scripts/ipmiutil_asy.service
++++ trunk/scripts/ipmiutil_asy.service
+@@ -11,4 +11,3 @@ ExecStart=/usr/bin/ipmiutil getevt -a -b
+
+ [Install]
+ WantedBy=multi-user.target
+-
+Index: trunk/scripts/ipmiutil_evt.service
+===================================================================
+--- trunk.orig/scripts/ipmiutil_evt.service
++++ trunk/scripts/ipmiutil_evt.service
+@@ -11,5 +11,3 @@ ExecStart=/usr/bin/ipmiutil getevt $IPMI
+
+ [Install]
+ WantedBy=multi-user.target
+-
+-
+Index: trunk/scripts/ipmiutil_wdt.service
+===================================================================
+--- trunk.orig/scripts/ipmiutil_wdt.service
++++ trunk/scripts/ipmiutil_wdt.service
+@@ -10,5 +10,3 @@ RemainAfterExit=1
+
+ [Install]
+ WantedBy=multi-user.target
+-
+-
+Index: trunk/scripts/ipmi_port.service
+===================================================================
+--- trunk.orig/scripts/ipmi_port.service
++++ trunk/scripts/ipmi_port.service
+@@ -11,5 +11,3 @@ ExecStart=-/usr/sbin/ipmi_port -b
+
+ [Install]
+ WantedBy=multi-user.target
+-
+-
+Index: trunk/configure.ac
+===================================================================
+--- trunk.orig/configure.ac
++++ trunk/configure.ac
+@@ -410,11 +410,11 @@ else
+ MD2_CFLAGS="-DSKIP_MD2"
+ init0=/etc/rc.d/init.d
+ fi
+- if test $isredhat -eq 0 ; then
++# if test $isredhat -eq 0 ; then
+ # set default start/stop for init scripts
+- sed -i 's/# Default-Start:/# Default-Start: 3 4 5/' $init_scripts
+- sed -i 's/# Default-Stop:/# Default-Stop: 0 1 2 6/' $init_scripts
+- fi
++# sed -i 's/# Default-Start:/# Default-Start: 3 4 5/' $init_scripts
++# sed -i 's/# Default-Stop:/# Default-Stop: 0 1 2 6/' $init_scripts
++# fi
+ # The openssl rpm might not be installed
+ sslver=""
+ which rpm >/dev/null 2>&1
diff --git a/debian/patches/0705-crontab.patch b/debian/patches/0705-crontab.patch
new file mode 100644
index 0000000..f19523e
--- /dev/null
+++ b/debian/patches/0705-crontab.patch
@@ -0,0 +1,20 @@
+Description: Prevent watchdog to send minutly emails and log entries
+Author: Harry Coin <hcoin@quietfountain.com>
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ipmiutil/+bug/1535408
+Last-Update: 2016-05-15
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/scripts/ipmiutil_wdt
+===================================================================
+--- trunk.orig/scripts/ipmiutil_wdt
++++ trunk/scripts/ipmiutil_wdt
+@@ -51,7 +51,8 @@ start() {
+ if [ $RETVAL -eq 0 ]; then
+ # restart the watchdog every 60 seconds via /etc/cron.d
+ cat - <<%%% >$wdtcron
+-* * * * * root $prog -r >/dev/null
++MAILTO=''
++* * * * * root $prog -r > $prog.lastrun 2&>1
+ %%%
+ # make crond re-read the /etc/cron.d
+ $restart_cron >>$wdtlog
diff --git a/debian/patches/0710-systemd.patch b/debian/patches/0710-systemd.patch
new file mode 100644
index 0000000..77ddc1b
--- /dev/null
+++ b/debian/patches/0710-systemd.patch
@@ -0,0 +1,21 @@
+Description: Escape not allowed characters at ExecStart
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848861
+Forwarded: https://sourceforge.net/p/ipmiutil/mailman/ipmiutil-developers/thread/1482238056.9870.6.camel%40jff-webhosting.net/#msg35561807
+Last-Update: 2016-12-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/scripts/ipmi_port.service
+===================================================================
+--- trunk.orig/scripts/ipmi_port.service
++++ trunk/scripts/ipmi_port.service
+@@ -6,7 +6,8 @@ After=network.target
+ Type=forking
+ PIDFile=/run/ipmi_port.pid
+ EnvironmentFile=/usr/share/ipmiutil/ipmiutil.env
+-ExecStart=/usr/share/ipmiutil/ipmiutil.setup >/dev/null && /usr/sbin/ipmi_port -b || :
++ExecStartPre=/usr/share/ipmiutil/ipmiutil.setup
++ExecStart=-/usr/sbin/ipmi_port -b
+
+ [Install]
+ WantedBy=multi-user.target
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6fce8b9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,6 @@
+#0100-out-of-bounds.patch
+0105-typo.patch
+0700-init.patch
+0600-typo-man.patch
+0705-crontab.patch
+#0710-systemd.patch
diff --git a/debian/postinst b/debian/postinst
new file mode 100755
index 0000000..399957f
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Debian postinstall script
+#
+# see: dh_installdeb(1)
+set -e
+case "$1" in
+ configure)
+ sbindir=/usr/bin
+ vardir=/var/lib/ipmiutil
+ sensorout=$vardir/sensor_out.txt
+
+ mkdir -p $vardir
+
+ # Run some ipmiutil command to see if any IPMI interface works.
+ IPMIcmd=true
+ $sbindir/ipmiutil sel -v >/dev/null 2>&1 || IPMIcmd=false
+
+ # If IPMIcmd is still true, then the IPMI command was successful, and IPMI is enabled locally.
+ if $IPMIcmd ; then
+ # Capture a snapshot of IPMI sensor data once now for later reuse.
+ if [ ! -f $sensorout ]; then
+ $sbindir/ipmiutil sensor -q >$sensorout
+ fi
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100755
index 0000000..69a8150
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Debian postrm script
+#
+set -e
+
+case "$1" in
+ purge)
+ if [ -d /var/lib/ipmiutil/ ]
+ then
+ rm -Rf /var/lib/ipmiutil/*
+ fi
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..502eb97
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+CFLAGS += -fPIC
+CONFPARA = --enable-gpl --enable-useflags --enable-libsensors
+
+%:
+ dh $@ --no-parallel
+
+override_dh_auto_configure:
+ $(CURDIR)/beforeconf.sh
+ dh_auto_configure -- $(CONFPARA)
+
+override_dh_autoreconf:
+ dh_autoreconf --exclude=mkinstalldirs
+
+override_dh_installchangelogs:
+ dh_installchangelogs ChangeLog
+
+override_dh_installman:
+ dh_installman doc/iseltime.8
+ dh_installman
+
+override_dh_installsystemd:
+ dh_installsystemd --name ipmiutil_wdt
+ dh_installsystemd --name ipmi_port --no-enable --no-start
+ dh_installsystemd --name ipmiutil_asy --no-enable --no-start
+ dh_installsystemd --name ipmiutil_evt --no-enable --no-start
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..07a7e84
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# with compat 10 autoreconf run all times
+ancient-libtool ltconfig
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1f8940e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/\.(tar.*|tgz|zip|gz|bz2)$// \
+http://sf.net/ipmiutil/ipmiutil-?_?([\d+\.]+|\d+)\.(tar.*|tgz|zip|gz|bz2)