]> git.proxmox.com Git - proxmox-backup-meta.git/commitdiff
initial commit
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Nov 2019 10:49:34 +0000 (11:49 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Nov 2019 11:00:26 +0000 (12:00 +0100)
13 files changed:
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/grub/proxmox-backup.cfg [new file with mode: 0644]
debian/postinst [new file with mode: 0755]
debian/postrm [new file with mode: 0755]
debian/proxmox-backup.docs [new file with mode: 0644]
debian/proxmox-backup.install [new file with mode: 0644]
debian/proxmox-backup.lintian-overrides [new file with mode: 0644]
debian/proxmox-ve-release-6.x.gpg [new file with mode: 0644]
debian/rules [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
index 0000000..ce15869
--- /dev/null
@@ -0,0 +1,5 @@
+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
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..48082f7
--- /dev/null
@@ -0,0 +1 @@
+12
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..9f56fca
--- /dev/null
@@ -0,0 +1,18 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..29d08aa
--- /dev/null
@@ -0,0 +1,21 @@
+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'.
diff --git a/debian/grub/proxmox-backup.cfg b/debian/grub/proxmox-backup.cfg
new file mode 100644 (file)
index 0000000..d316d17
--- /dev/null
@@ -0,0 +1 @@
+GRUB_DISTRIBUTOR="Proxmox Backup Server"
diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..0c8a87d
--- /dev/null
@@ -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 (executable)
index 0000000..2ee5c14
--- /dev/null
@@ -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 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE
diff --git a/debian/proxmox-backup.install b/debian/proxmox-backup.install
new file mode 100644 (file)
index 0000000..5541490
--- /dev/null
@@ -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 (file)
index 0000000..03a167d
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..c482a3c
--- /dev/null
@@ -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: