[pve-devel] [Patch V2 acme 01/12] Add Debian Buildsystem config

Wolfgang Link w.link at proxmox.com
Tue Mar 31 12:08:29 CEST 2020


Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 .gitignore               |  5 +++++
 Makefile                 | 40 ++++++++++++++++++++++++++++++++++++++++
 debian/changelog         |  5 +++++
 debian/compat            |  1 +
 debian/control           | 17 +++++++++++++++++
 debian/copyright         | 16 ++++++++++++++++
 debian/lintian-overrides |  1 +
 debian/rules             |  7 +++++++
 8 files changed, 92 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 at 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 <support at proxmox.com>  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 <support at proxmox.com>
+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..7466db1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Copyright (C) 2010-2019 Proxmox Server Solutions GmbH
+
+This software is written by Proxmox Server Solutions GmbH <support at proxmox.com>
+
+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 <http://www.gnu.org/licenses/>.
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.20.1





More information about the pve-devel mailing list