From 9ce00d2fbcb42fbef5e5f7eb8d462c6c1ba3412c Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Thu, 2 Apr 2020 14:29:16 +0200 Subject: [PATCH 1/1] Add Debian Buildsystem config Signed-off-by: Wolfgang Link --- .gitignore | 5 +++++ Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 17 +++++++++++++++++ debian/copyright | 22 ++++++++++++++++++++++ debian/lintian-overrides | 1 + debian/rules | 7 +++++++ 8 files changed, 98 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/lintian-overrides create mode 100755 debian/rules diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..334442b --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.deb +*.dsc +*.buildinfo +*.changes + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5ed0522 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +include /usr/share/dpkg/pkg-info.mk + +PACKAGE=libproxmox-acme-perl + +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} +GITVERSION:=$(shell git rev-parse HEAD) + +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc + +all: $(DEB) + +$(BUILDDIR): src debian + rm -rf $(BUILDDIR) + rsync -a src/ debian $(BUILDDIR) + # remove if repository exists + # echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE + +.PHONY: deb +deb: $(DEB) +$(DEB): $(BUILDDIR) + cd $(BUILDDIR); dpkg-buildpackage -b -us -uc + lintian $(DEB) + +.PHONY: dsc +dsc: ${DSC} +${DSC}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d + lintian ${DSC} + +dinstall: $(DEB) + dpkg -i $(DEB) + +.PHONY: clean +clean: + rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz + +.PHONY: upload +upload: ${DEB} + tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster --arch ${DEB_BUILD_ARCH} diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8edee45 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libproxmox-acme-perl (1.0.0-1+pvetest1) unstable; urgency=medium + + * Initial 1.0.0 package + + -- Proxmox Support Team Wed, 06 Nov 2019 09:14:59 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..87ba731 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: libproxmox-acme-perl +Section: admin +Priority: optional +Maintainer: Proxmox Support Team +Build-Depends: debhelper (>= 10), + dh-systemd, +Standards-Version: 1.0.0 +Homepage: https://www.proxmox.com + +Package: libproxmox-acme-perl +Architecture: all +Description: easy and small shell script to automatically issue + and renew the free certificates from Let's Encrypt. +Depends: curl (>= 7.64.0-1), + coreutils (>= 8.30-1), + sed (>= 4.7-1) +Recommends: idn diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bbacf4e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Copyright (C) 2010-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 Affero General Public License as published by +the Free Software Foundation, either version 3 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 Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +The part DNSAPI of the project acme.sh[1] which is under GLP-3[2] +was used for this packet. + +1.) https://github.com/acmesh-official/acme.sh +2.) https://www.gnu.org/licenses/gpl-3.0.txt diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..4f3e835 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1 @@ +libproxmox-acme-perl: script-not-executable \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f00dbc2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +%: + dh $@ -- 2.39.2