mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-25 23:25:12 +00:00
buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ef761f510f
commit
049d789bb1
19
Makefile
19
Makefile
@ -1,8 +1,10 @@
|
|||||||
VERSION=5.1
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
PACKAGE=libpve-access-control
|
include /usr/share/dpkg/architecture.mk
|
||||||
PKGREL=10
|
|
||||||
|
|
||||||
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
PACKAGE=libpve-access-control
|
||||||
|
|
||||||
|
|
||||||
|
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
@ -16,13 +18,10 @@ ZSHCOMPLDIR=${PREFIX}/share/zsh/vendor-completions/
|
|||||||
|
|
||||||
export PERLDIR=${PREFIX}/share/perl5
|
export PERLDIR=${PREFIX}/share/perl5
|
||||||
|
|
||||||
export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
|
|
||||||
|
|
||||||
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
||||||
GITVERSION:=$(shell cat .git/refs/heads/master)
|
GITVERSION:=$(shell cat .git/refs/heads/master)
|
||||||
|
|
||||||
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
|
||||||
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
|
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||||
|
|
||||||
# this requires package pve-doc-generator
|
# this requires package pve-doc-generator
|
||||||
export NOVIEW=1
|
export NOVIEW=1
|
||||||
@ -80,7 +79,7 @@ ${DSC}: ${BUILDDIR}
|
|||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: ${DEB}
|
||||||
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
|
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${DEB_BUILD_ARCH}
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user