From: Dietmar Maurer Date: Thu, 14 Nov 2019 10:49:34 +0000 (+0100) Subject: initial commit X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=50b1017c81efbffc6c222646bd053ca12eca34a6;p=proxmox-backup-meta.git initial commit --- 50b1017c81efbffc6c222646bd053ca12eca34a6 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22ef34a --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +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 {} ';' diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ce15869 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +proxmox-backup (1.0-1) pbs; urgency=medium + + * first public release + + -- Proxmox Support Team Thu, 14 Nov 2019 11:35:06 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9f56fca --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: proxmox-backup +Section: admin +Priority: optional +Build-Depends: debhelper (>=12~), + lintian +Maintainer: Proxmox Support Team + +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..29d08aa --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Copyright (C) 2019 Proxmox Server Solutions GmbH + +This software is written by Proxmox Server Solutions GmbH + + + 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'. diff --git a/debian/grub/proxmox-backup.cfg b/debian/grub/proxmox-backup.cfg new file mode 100644 index 0000000..d316d17 --- /dev/null +++ b/debian/grub/proxmox-backup.cfg @@ -0,0 +1 @@ +GRUB_DISTRIBUTOR="Proxmox Backup Server" diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..0c8a87d --- /dev/null +++ b/debian/postinst @@ -0,0 +1,15 @@ +#!/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 diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..2ee5c14 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,19 @@ +#! /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 + diff --git a/debian/proxmox-backup.docs b/debian/proxmox-backup.docs new file mode 100644 index 0000000..8696672 --- /dev/null +++ b/debian/proxmox-backup.docs @@ -0,0 +1 @@ +debian/SOURCE diff --git a/debian/proxmox-backup.install b/debian/proxmox-backup.install new file mode 100644 index 0000000..5541490 --- /dev/null +++ b/debian/proxmox-backup.install @@ -0,0 +1,2 @@ +debian/proxmox-ve-release-6.x.gpg etc/apt/trusted.gpg.d/ +debian/grub/proxmox-backup.cfg etc/default/grub.d/ diff --git a/debian/proxmox-backup.lintian-overrides b/debian/proxmox-backup.lintian-overrides new file mode 100644 index 0000000..03a167d --- /dev/null +++ b/debian/proxmox-backup.lintian-overrides @@ -0,0 +1 @@ +proxmox-backup: package-installs-apt-keyring etc/apt/trusted.gpg.d/proxmox-ve-release-* diff --git a/debian/proxmox-ve-release-6.x.gpg b/debian/proxmox-ve-release-6.x.gpg new file mode 100644 index 0000000..efebf1c Binary files /dev/null and b/debian/proxmox-ve-release-6.x.gpg differ diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..c482a3c --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/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: