]> git.proxmox.com Git - pve-access-control.git/blobdiff - Makefile
buildsys: update make upload target
[pve-access-control.git] / Makefile
index 07a3ec67e844e62307db494c769027e2429d01a6..09f1011b466b947b887734c0dfe3fb72f8f12796 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,6 @@
-RELEASE=4.1
-
 VERSION=4.0
 PACKAGE=libpve-access-control
-PKGREL=16
+PKGREL=23
 
 DESTDIR=
 PREFIX=/usr
@@ -46,11 +44,12 @@ install: pveum.1 oathkeygen pveum.bash-completion
        install -d ${DESTDIR}/${MAN1DIR}
        install -d ${DESTDIR}/${DOCDIR}
        install -m 0644 pveum.1 ${DESTDIR}/${MAN1DIR}
-       gzip -9 ${DESTDIR}/${MAN1DIR}/pveum.1
+       gzip -9 -n ${DESTDIR}/${MAN1DIR}/pveum.1
        install -m 0644 -D pveum.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pveum
 
-.PHONY: deb ${DEB}
-deb ${DEB}:
+.PHONY: deb
+deb: ${DEB}
+${DEB}:
        rm -rf build
        mkdir build
        make DESTDIR=`pwd`/build install
@@ -60,21 +59,15 @@ deb ${DEB}:
        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
-       dpkg-deb --build build  
+       gzip -9 -n build/${DOCDIR}/changelog.Debian
+       fakeroot dpkg-deb --build build
        mv build.deb ${DEB}
        #rm -rf build
        lintian ${DEB}
 
 .PHONY: upload
 upload: ${DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist jessie --arch ${ARCH}
 
 .PHONY: clean
 clean: