]> git.proxmox.com Git - proxmox-acme.git/commitdiff
Add Debian Buildsystem config
authorWolfgang Link <w.link@proxmox.com>
Thu, 2 Apr 2020 12:29:16 +0000 (14:29 +0200)
committerWolfgang Link <w.link@proxmox.com>
Thu, 2 Apr 2020 12:29:16 +0000 (14:29 +0200)
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
.gitignore [new file with mode: 0644]
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/lintian-overrides [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..334442b
--- /dev/null
@@ -0,0 +1,5 @@
+*.deb
+*.dsc
+*.buildinfo
+*.changes
+
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
index 0000000..8edee45
--- /dev/null
@@ -0,0 +1,5 @@
+libproxmox-acme-perl (1.0.0-1+pvetest1) unstable; urgency=medium
+
+  * Initial 1.0.0 package
+
+ -- Proxmox Support Team <support@proxmox.com>  Wed, 06 Nov 2019 09:14:59 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..f599e28
--- /dev/null
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..87ba731
--- /dev/null
@@ -0,0 +1,17 @@
+Source: libproxmox-acme-perl
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@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 (file)
index 0000000..bbacf4e
--- /dev/null
@@ -0,0 +1,22 @@
+Copyright (C) 2010-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 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/>.
+
+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 (file)
index 0000000..4f3e835
--- /dev/null
@@ -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 (executable)
index 0000000..f00dbc2
--- /dev/null
@@ -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 $@