]> git.proxmox.com Git - resource-agents-pve.git/blame - Makefile
increase version for wheezy to 3.9.2-4
[resource-agents-pve.git] / Makefile
CommitLineData
1c981d67 1RELEASE=3.0
60d3f066
DM
2
3PACKAGE=resource-agents-pve
d0e6b5ae 4PKGREL=4
60d3f066
DM
5RAVER=3.9.2
6RADIR=resource-agents-${RAVER}
7RASRC=${RADIR}.tar.bz2
8
60d3f066
DM
9DEB=${PACKAGE}_${RAVER}-${PKGREL}_amd64.deb
10
11all: ${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
1c981d67 19 lintian -X copyright-file ${DEB}
60d3f066
DM
20
21.PHONY: upload
22upload: ${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
31distclean: clean
32
33clean:
34 rm -rf *~ debian/*~ *.deb ${RADIR} ${PACKAGE}_*
35
36.PHONY: dinstall
37dinstall: ${DEB}
38 dpkg -i ${DEB}