--- /dev/null
+include /usr/share/dpkg/pkg-info.mk
+
+PACKAGE=proxmox-backup
+
+GITVERSION:=$(shell git rev-parse HEAD)
+
+DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+
+DEBS=${DEB}
+
+BUILD_DIR=build
+
+ARCH=amd64
+DIST=buster
+
+all: ${DEB}
+
+.PHONY: deb
+deb ${CT_DEB}: ${DEB}
+${DEB}: debian
+ rm -rf ${BUILD_DIR}
+ mkdir -p ${BUILD_DIR}/debian
+ cp -ar debian/* ${BUILD_DIR}/debian/
+ echo "git clone git://git.proxmox.com/git/proxmox-backup-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
+ cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
+ lintian ${DEBS}
+
+.PHONY: upload
+upload: ${DEBS}
+ tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist ${DIST} --arch ${ARCH}
+
+clean:
+ rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes
+ find . -name '*~' -exec rm {} ';'
--- /dev/null
+proxmox-backup (1.0-1) pbs; urgency=medium
+
+ * first public release
+
+ -- Proxmox Support Team <support@proxmox.com> Thu, 14 Nov 2019 11:35:06 +0100
--- /dev/null
+Source: proxmox-backup
+Section: admin
+Priority: optional
+Build-Depends: debhelper (>=12~),
+ lintian
+Maintainer: Proxmox Support Team <support@proxmox.com>
+
+Package: proxmox-backup
+Architecture: all
+Depends: libc6,
+ pve-kernel-5.0,
+ pve-kernel-helper,
+ proxmox-backup-server,
+ proxmox-backup-client,
+Description: Proxmox Backup Server metapackage
+ This is a meta package which will install everything needed to run a
+ Proxmox Backup server. This package also depends on the latest
+ available Proxmox kernel.
--- /dev/null
+Copyright (C) 2019 Proxmox Server Solutions GmbH
+
+This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
+
+
+ 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; version 2 dated June, 1991.
+
+ 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, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301 USA
+
+The complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
--- /dev/null
+GRUB_DISTRIBUTOR="Proxmox Backup Server"
--- /dev/null
+#!/bin/sh
+
+# Abort if any command returns an error value
+set -e
+
+case "$1" in
+ configure)
+ # setup kernel links for installation CD (rescue boot)
+ mkdir -p /boot/pve
+ ln -sf /boot/pve/vmlinuz-5.0 /boot/pve/vmlinuz
+ ln -sf /boot/pve/initrd.img-5.0 /boot/pve/initrd.img
+ ;;
+esac
+
+exit 0
--- /dev/null
+#! /bin/sh
+
+# Abort if any command returns an error value
+set -e
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ # remove kernel symlinks
+ rm -f /boot/pve/vmlinuz
+ rm -f /boot/pve/initrd.img
+ rmdir --ignore-fail-on-non-empty /boot/pve/ || true
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
--- /dev/null
+debian/SOURCE
--- /dev/null
+debian/proxmox-ve-release-6.x.gpg etc/apt/trusted.gpg.d/
+debian/grub/proxmox-backup.cfg etc/default/grub.d/
--- /dev/null
+proxmox-backup: package-installs-apt-keyring etc/apt/trusted.gpg.d/proxmox-ve-release-*
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+install:
+ dh_install
+ dh_installdocs
+ dh_lintian
+ dh_installchangelogs
+ dh_installman
+ dh_strip_nondeterminism
+ dh_compress
+ dh_fixperms
+
+binary: install
+ dh_strip
+ dh_makeshlibs
+ dh_shlibdeps
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+.PHONY: build clean
+build clean: