--- /dev/null
+RELEASE=2.0
+
+PACKAGE=fence-agents-pve
+PKGREL=1
+FAVER=3.1.5
+FADIR=fence-agents-${FAVER}
+FASRC=${FADIR}.tar.xz
+
+
+DEB=${PACKAGE}_${FAVER}-${PKGREL}_amd64.deb
+
+all: ${DEB}
+
+${DEB} deb: ${FASRC}
+ rm -rf ${FADIR}
+ tar xf ${FASRC}
+ cp -av debian ${FADIR}/debian
+ cat ${FADIR}/doc/COPYRIGHT >>${FADIR}/debian/copyright
+ cd ${FADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
+ lintian ${DEB}
+
+.PHONY: upload
+upload: ${DEB}
+ umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
+ mkdir -p /pve/${RELEASE}/extra
+ rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
+ rm -f /pve/${RELEASE}/extra/Packages*
+ cp ${DEB} /pve/${RELEASE}/extra
+ cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
+ umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+
+distclean: clean
+
+clean:
+ rm -rf *~ debian/*~ *.deb ${FADIR} ${PACKAGE}_*
+
+.PHONY: dinstall
+dinstall: ${DEB}
+ dpkg -i ${DEB}
--- /dev/null
+fence-agents-pve (3.1.5-1) unstable; urgency=low
+
+ [ Proxmox Support Team ]
+ * Initial release
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 29 Aug 2011 13:56:36 +0200
--- /dev/null
+Source: fence-agents-pve
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev
+Standards-Version: 3.8.4
+
+Package: fence-agents-pve
+Architecture: any
+Depends: ${perl:Depends}, ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: fence agents for redhat cluster suite
+ This package provides various fence agents.
--- /dev/null
+This work was packaged for Debian by:
+
+ Proxmox Support Team <support@proxmox.com> on Mon, 29 Aug 2011 13:49:31 +0200
+
+It was downloaded from:
+
+ <https://fedorahosted.org/cluster/wiki/HomePage>
+
+Upstream Author(s):
+
+ See Copyright section below.
+
+License:
+
+ Libraries:
+
+ You can redistribute them and/or modify them under the terms of
+ the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 2.1 of the License, or (at
+ your option) any later version.
+
+ The libraries are distributed in the hope that they will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the GNU Lesser General Public License for more details.
+
+ Applications:
+
+ You can redistribute them and/or modify them 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.
+
+ The applications are distributed in the hope that they 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 each license is included for your convenience in:
+ /usr/share/common-licenses/LGPL-2.1
+ /usr/share/common-licenses/GPL-2
+
+
+The Debian packaging is:
+
+ Copyright (C) 2011 Proxmox Server Solutions GmbH
+
+and is licensed under the AGPL version 3
+
+Copyright:
+
--- /dev/null
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+AGENTS= \
+alom \
+apc \
+apc_snmp \
+baytech \
+bladecenter \
+brocade \
+bullpap \
+cisco_mds \
+cisco_ucs \
+cpint \
+drac \
+drac5 \
+eaton_snmp \
+egenera \
+eps \
+ibmblade \
+ifmib \
+ilo \
+ilo_mp \
+intelmodular \
+ipmilan \
+ldom \
+lib \
+lpar \
+manual \
+mcdata \
+node_assassin \
+nss_wrapper \
+rackswitch \
+rsa \
+rsb \
+sanbox2 \
+scsi \
+vixel \
+wti \
+xcat \
+zvm
+
+DESTDIR=debian/fence-agents-pve/
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ ./configure \
+ --prefix=/usr \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --docdir=/usr/share/doc/fence-agents-pve \
+ --with-agents="${AGENTS}"
+
+
+override_dh_install:
+ dh_install
+ rmdir ${DESTDIR}/var/run/cluster
+ rmdir ${DESTDIR}/var/run
+ rm ${DESTDIR}/usr/share/doc/fence-agents-pve/COPYING.applications
+ rm ${DESTDIR}/usr/share/doc/fence-agents-pve/COPYING.libraries
+ rm ${DESTDIR}/usr/share/doc/fence-agents-pve/README.licence
+ rm ${DESTDIR}/usr/share/doc/fence-agents-pve/COPYRIGHT
\ No newline at end of file