]> git.proxmox.com Git - gfs2-utils.git/blob - Makefile
add sources for gfs2-utils-3.1.8
[gfs2-utils.git] / Makefile
1 RELEASE=3.0
2
3 PACKAGE=gfs2-utils
4 PKGREL=1
5 GFSUVER=3.1.3
6 GFSUDIR=gfs2-utils
7 GFSUSRC=gfs2-utils-${GFSUVER}.tar.gz
8
9 GITVERSION:=$(shell cat .git/refs/heads/master)
10
11 DEB=${PACKAGE}_${GFSUVER}-${PKGREL}_amd64.deb
12
13 all: ${DEB}
14
15 ${DEB} deb: ${GFSUSRC}
16 rm -rf ${GFSUDIR}
17 tar xf ${GFSUSRC}
18 cd ${GFSUDIR}; ./autogen.sh
19 cp -av debian ${GFSUDIR}/debian
20 cat ${GFSUDIR}/doc/COPYRIGHT >>${GFSUDIR}/debian/copyright
21 echo "git clone git://git.proxmox.com/git/gfs2-utils.git\\ngit checkout ${GITVERSION}" > ${GFSUDIR}/debian/SOURCE
22 cd ${GFSUDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
23 lintian -X copyright-file ${DEB}
24
25 .PHONY: upload
26 upload: ${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 distclean: clean
36
37 clean:
38 rm -rf *~ debian/*~ *.deb ${GFSUDIR} ${PACKAGE}_*
39
40 .PHONY: dinstall
41 dinstall: ${DEB}
42 dpkg -i ${DEB}