]> git.proxmox.com Git - resource-agents-pve.git/blob - Makefile
increase version for wheezy to 3.9.2-4
[resource-agents-pve.git] / Makefile
1 RELEASE=3.0
2
3 PACKAGE=resource-agents-pve
4 PKGREL=4
5 RAVER=3.9.2
6 RADIR=resource-agents-${RAVER}
7 RASRC=${RADIR}.tar.bz2
8
9 DEB=${PACKAGE}_${RAVER}-${PKGREL}_amd64.deb
10
11 all: ${DEB}
12
13 ${DEB} deb: ${RASRC}
14 rm -rf ${RADIR}
15 tar xf ${RASRC}
16 cp -av debian ${RADIR}/debian
17 cat ${RADIR}/AUTHORS >>${RADIR}/debian/copyright
18 cd ${RADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
19 lintian -X copyright-file ${DEB}
20
21 .PHONY: upload
22 upload: ${DEB}
23 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
24 mkdir -p /pve/${RELEASE}/extra
25 rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
26 rm -f /pve/${RELEASE}/extra/Packages*
27 cp ${DEB} /pve/${RELEASE}/extra
28 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
29 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
30
31 distclean: clean
32
33 clean:
34 rm -rf *~ debian/*~ *.deb ${RADIR} ${PACKAGE}_*
35
36 .PHONY: dinstall
37 dinstall: ${DEB}
38 dpkg -i ${DEB}