-RELEASE=3.1
+RELEASE=4.0
-VERSION=3.0
+VERSION=4.0
PACKAGE=libpve-access-control
-PKGREL=8
+PKGREL=6
DESTDIR=
PREFIX=/usr
mv $@.tmp $@
.PHONY: install
-install: pveum.1.pod pveum.1.gz
+install: pveum.1.pod pveum.1.gz oathkeygen
install -d ${DESTDIR}${BINDIR}
install -d ${DESTDIR}${SBINDIR}
install -m 0755 pveum ${DESTDIR}${SBINDIR}
+ install -m 0755 oathkeygen ${DESTDIR}${BINDIR}
make -C PVE install
perl -I. ./pveum verifyapi
install -d ${DESTDIR}/usr/share/man/man1
install -d -m 0755 build/DEBIAN
sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >build/DEBIAN/control
echo "git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout ${GITVERSION}" > build/${DOCDIR}/SOURCE
+ install -m 0644 triggers build/DEBIAN
install -D -m 0644 copyright build/${DOCDIR}/copyright
install -m 0644 changelog.Debian build/${DOCDIR}/
gzip -9 build/${DOCDIR}/changelog.Debian