mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 10:16:34 +00:00
buildsys: cleanup and add target to build DSC
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
374647e8cd
commit
e235ae3903
24
Makefile
24
Makefile
@ -2,6 +2,8 @@ VERSION=5.1
|
|||||||
PACKAGE=libpve-access-control
|
PACKAGE=libpve-access-control
|
||||||
PKGREL=5
|
PKGREL=5
|
||||||
|
|
||||||
|
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
BINDIR=${PREFIX}/bin
|
BINDIR=${PREFIX}/bin
|
||||||
@ -20,6 +22,7 @@ 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}_${VERSION}-${PKGREL}_${ARCH}.deb
|
||||||
|
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
|
||||||
|
|
||||||
# this requires package pve-doc-generator
|
# this requires package pve-doc-generator
|
||||||
export NOVIEW=1
|
export NOVIEW=1
|
||||||
@ -58,23 +61,32 @@ test:
|
|||||||
perl -I. ./pveum verifyapi
|
perl -I. ./pveum verifyapi
|
||||||
perl -I. -T -e "use PVE::CLI::pveum; PVE::CLI::pveum->verify_api();"
|
perl -I. -T -e "use PVE::CLI::pveum; PVE::CLI::pveum->verify_api();"
|
||||||
|
|
||||||
|
${BUILDDIR}:
|
||||||
|
rm -rf ${BUILDDIR}
|
||||||
|
rsync -a * ${BUILDDIR}
|
||||||
|
echo "git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}:
|
${DEB}: ${BUILDDIR}
|
||||||
rm -rf build
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
rsync -a * build
|
|
||||||
echo "git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout ${GITVERSION}" >build/debian/SOURCE
|
|
||||||
cd build; dpkg-buildpackage -b -us -uc
|
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
|
.PHONY: dsc
|
||||||
|
dsc: ${DSC}
|
||||||
|
${DSC}: ${BUILDDIR}
|
||||||
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
|
||||||
|
lintian ${DSC}
|
||||||
|
|
||||||
.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 ${ARCH}
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
rm -rf ${BUILDDIR}
|
||||||
make cleanup-docgen
|
make cleanup-docgen
|
||||||
rm -rf build *.deb *.buildinfo *.changes
|
rm -rf *.deb *.buildinfo *.changes ${PACKAGE}*.tar.gz *.dsc
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -10,13 +10,12 @@ Build-Depends: debhelper (>= 9.0.0~),
|
|||||||
perl (>= 5.10.0-19),
|
perl (>= 5.10.0-19),
|
||||||
pve-cluster,
|
pve-cluster,
|
||||||
pve-doc-generator (>= 5.3-3),
|
pve-doc-generator (>= 5.3-3),
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.8
|
||||||
Homepage: http://www.proxmox.com
|
Homepage: http://www.proxmox.com
|
||||||
|
|
||||||
Package: libpve-access-control
|
Package: libpve-access-control
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: libauthen-pam-perl,
|
Depends: libauthen-pam-perl,
|
||||||
libc6 (>= 2.3),
|
|
||||||
libcrypt-openssl-random-perl,
|
libcrypt-openssl-random-perl,
|
||||||
libcrypt-openssl-rsa-perl,
|
libcrypt-openssl-rsa-perl,
|
||||||
libjson-perl,
|
libjson-perl,
|
||||||
@ -29,6 +28,7 @@ Depends: libauthen-pam-perl,
|
|||||||
libwww-perl,
|
libwww-perl,
|
||||||
perl (>= 5.6.0-16),
|
perl (>= 5.6.0-16),
|
||||||
pve-cluster (>= 5.0-34),
|
pve-cluster (>= 5.0-34),
|
||||||
|
${misc:Depends},
|
||||||
${perl:Depends},
|
${perl:Depends},
|
||||||
Description: Proxmox VE access control library
|
Description: Proxmox VE access control library
|
||||||
This package contains the role based user management and access
|
This package contains the role based user management and access
|
||||||
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.0
|
Loading…
Reference in New Issue
Block a user