]>
Commit | Line | Data |
---|---|---|
2e33af16 | 1 | RELEASE=4.0 |
1c268b5e DM |
2 | |
3 | PACKAGE=gfs2-utils | |
4 | PKGREL=1 | |
2e33af16 TL |
5 | GFSUVER=3.1.8 |
6 | GFSUDIR=gfs2-utils-${GFSUVER} | |
1c268b5e DM |
7 | GFSUSRC=gfs2-utils-${GFSUVER}.tar.gz |
8 | ||
a66c117d | 9 | GITVERSION:=$(shell cat .git/refs/heads/master) |
1c268b5e DM |
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 | |
a66c117d | 21 | echo "git clone git://git.proxmox.com/git/gfs2-utils.git\\ngit checkout ${GITVERSION}" > ${GFSUDIR}/debian/SOURCE |
1c268b5e | 22 | cd ${GFSUDIR}; dpkg-buildpackage -rfakeroot -b -us -uc |
cd14a66a | 23 | lintian -X copyright-file ${DEB} |
1c268b5e DM |
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} |