]> git.proxmox.com Git - drbd-utils.git/blob - Makefile
update drbd sources to version 8.9.4 (without commit 15009d512ec)
[drbd-utils.git] / Makefile
1 RELEASE=4.0
2
3 PACKAGE=drbd-utils
4 PKGREL=2
5
6 DRBDVER=8.9.3
7 DRBDDIR=${PACKAGE}
8 DRBDSRC=${DRBDDIR}.tgz
9
10 DEBS= \
11 drbd8-utils_${DRBDVER}-${PKGREL}_amd64.deb \
12 drbd-utils_${DRBDVER}-${PKGREL}_amd64.deb
13
14 all: ${DEBS}
15 echo ${DEBS}
16
17 .PHONY: deb
18 deb ${DEBS}: ${DRBDSRC}
19 rm -rf ${DRBDDIR}
20 tar xzf ${DRBDSRC}
21 mv ${DRBDDIR}/debian ${DRBDDIR}/debian.old
22 rsync -a debian ${DRBDDIR}
23 cd ${DRBDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
24 -lintian ${DEBS}
25
26 .PHONY: download
27 download ${DRBDSRC}:
28 rm -rf ${DRBDDIR} ${DRBDSRC}
29 git clone --recursive git://git.drbd.org/drbd-utils
30 # this commite breaks installation, so we revert for 8.9.4
31 cd ${DRBDDIR}; git revert --no-edit 15009d512ec0ab0d84ec433b6e96f5917335e769
32 cd ${DRBDDIR}; ./autogen.sh
33 tar czf ${DRBDSRC} ${DRBDDIR}
34
35 .PHONY: upload
36 upload: ${DEBS}
37 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
38 mkdir -p /pve/${RELEASE}/extra
39 rm -f /pve/${RELEASE}/extra/drbd8-utils_*.deb
40 rm -f /pve/${RELEASE}/extra/drbd-utils_*.deb
41 rm -f /pve/${RELEASE}/extra/Packages*
42 cp ${DEBS} /pve/${RELEASE}/extra
43 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
44 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
45
46 distclean: clean
47
48 clean:
49 rm -rf ${DRBDDIR} *.deb *.changes
50 find . -name '*~' -exec rm {} ';'
51
52 .PHONY: dinstall
53 dinstall: ${DEBS}
54 dpkg -i ${DEBS}