update to 3.1.8
[fence-agents-pve.git] / Makefile
1 RELEASE=2.1
2
3 PACKAGE=fence-agents-pve
4 PKGREL=1
5 FAVER=3.1.8
6 FADIR=fence-agents-${FAVER}.6-723b
7 FASRC=${FADIR}.tar.gz
8
9
10 DEB=${PACKAGE}_${FAVER}-${PKGREL}_amd64.deb
11
12 all: ${DEB}
13
14 ${DEB} deb: ${FASRC}
15         rm -rf ${FADIR}
16         tar xf ${FASRC}
17         cp -av debian ${FADIR}/debian
18         cat ${FADIR}/doc/COPYRIGHT >>${FADIR}/debian/copyright
19         cd ${FADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
20         lintian ${DEB}
21
22 ${RHCSRC} download:
23         rm -rf fence-agents.git
24         git clone git://git.fedorahosted.org/fence-agents.git fence-agents.git
25         cd fence-agents.git; ./autogen.sh; ./configure; make dist
26         mv fence-agents.git/fence-agents-*.tar.gz .
27
28 .PHONY: upload
29 upload: ${DEB}
30         umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
31         mkdir -p /pve/${RELEASE}/extra
32         rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
33         rm -f /pve/${RELEASE}/extra/Packages*
34         cp ${DEB} /pve/${RELEASE}/extra
35         cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
36         umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
37
38 distclean: clean
39
40 clean:
41         rm -rf *~ debian/*~ *.deb ${FADIR} ${PACKAGE}_* fence-agents.git
42
43 .PHONY: dinstall
44 dinstall: ${DEB}
45         dpkg -i ${DEB}