increase version for wheezy to 3.1-2
[vzquota.git] / Makefile
index d5e7157..3b3f66a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
-RELEASE=2.2
+RELEASE=3.0
 
 # wget http://download.openvz.org/utils/vzquota/3.1/src/vzquota-3.1.tar.bz2
 
 PACKAGE=vzquota
 PKGVER=3.1
 
 # wget http://download.openvz.org/utils/vzquota/3.1/src/vzquota-3.1.tar.bz2
 
 PACKAGE=vzquota
 PKGVER=3.1
-PACKAGERELEASE=1
+PACKAGERELEASE=2
 
 ARCH=amd64
 DEB=${PACKAGE}_${PKGVER}-${PACKAGERELEASE}_${ARCH}.deb
 
 ARCH=amd64
 DEB=${PACKAGE}_${PKGVER}-${PACKAGERELEASE}_${ARCH}.deb
@@ -22,5 +22,24 @@ ${DEB}: ${SRC}
        lintian ${DEB}
 
 
        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
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
 clean:
 clean:
-       rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
\ No newline at end of file
+       rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
+
+.PHONY: dinstall
+dinstall: ${DEB}
+       dpkg -i ${DEB}
+