]> git.proxmox.com Git - vzquota.git/blame - Makefile
increase version for wheezy to 3.1-2
[vzquota.git] / Makefile
CommitLineData
21984808 1RELEASE=3.0
5cd8abee
DM
2
3# wget http://download.openvz.org/utils/vzquota/3.1/src/vzquota-3.1.tar.bz2
4
5PACKAGE=vzquota
6PKGVER=3.1
068e0e32 7PACKAGERELEASE=2
5cd8abee
DM
8
9ARCH=amd64
10DEB=${PACKAGE}_${PKGVER}-${PACKAGERELEASE}_${ARCH}.deb
11
12SRCDIR=vzquota-${PKGVER}
13SRC=${SRCDIR}.tar.bz2
14
15all: ${DEB}
16
17${DEB}: ${SRC}
18 rm -rf ${SRCDIR}
19 tar xf ${SRC}
20 cp -a debian ${SRCDIR}
21 cd ${SRCDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
22 lintian ${DEB}
23
24
9ebab9a4
DM
25.PHONY: upload
26upload: ${DEB}
27 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
28 mkdir -p /pve/${RELEASE}/extra
29 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
30 rm -f /pve/${RELEASE}/extra/Packages*
31 cp ${DEB} /pve/${RELEASE}/extra
32 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
33 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
34
35.PHONY: distclean
36distclean: clean
37
38.PHONY: clean
5cd8abee 39clean:
9ebab9a4
DM
40 rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
41
e806e843
DM
42.PHONY: dinstall
43dinstall: ${DEB}
44 dpkg -i ${DEB}
45