mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-01 04:14:36 +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
d8ff724d8d
commit
a9fc6893f6
19
Makefile
19
Makefile
@ -1,8 +1,12 @@
|
|||||||
PACKAGE=libpve-http-server-perl
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
PKGVER=2.0
|
include /usr/share/dpkg/architecture.mk
|
||||||
PKGREL=13
|
|
||||||
|
|
||||||
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
|
PACKAGE=libpve-http-server-perl
|
||||||
|
|
||||||
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||||
|
|
||||||
|
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
@ -33,9 +37,10 @@ all:
|
|||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}:
|
${DEB}:
|
||||||
rm -rf build
|
rm -rf ${BUILDDIR}
|
||||||
rsync -a * build
|
rsync -a * ${BUILDDIR}
|
||||||
cd build; dpkg-buildpackage -b -us -uc
|
echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
|
||||||
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
download_bootstrap:
|
download_bootstrap:
|
||||||
|
1
debian/docs
vendored
Normal file
1
debian/docs
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
debian/SOURCE
|
Loading…
Reference in New Issue
Block a user