]> git.proxmox.com Git - glusterfs.git/blame - Makefile
create missing log directory (bug reported to debian)
[glusterfs.git] / Makefile
CommitLineData
49a969e6
DM
1RELEASE=3.0
2
3GLUSTERFSVER=3.4.0
4DEBRELEASE=2
5
6GLUSTERFSSRC=glusterfs_${GLUSTERFSVER}.orig.tar.gz
7GLUSTERFSDIR=glusterfs-${GLUSTERFSVER}
8DEBSRC=glusterfs_${GLUSTERFSVER}-${DEBRELEASE}.debian.tar.gz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
12DEBS= \
13 glusterfs-common_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
14 glusterfs-client_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb \
15 glusterfs-server_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb
16
17all: deb
18
19.PHONY: dinstall
20dinstall: deb
21 dpkg -i ${DEBS}
22
23.PHONY: deb
24deb ${DEBS}: ${GLUSTERFSSRC} ${DEBSRC}
25 rm -rf ${GLUSTERFSDIR}
26 tar xf ${GLUSTERFSSRC}
27 cd ${GLUSTERFSDIR}; tar xvf ../${DEBSRC}
58aca40c
DM
28 # Hack - create missing log directory
29 echo "/var/log/glusterfs" >> ${GLUSTERFSDIR}/debian/glusterfs-client.dirs
49a969e6
DM
30 cd ${GLUSTERFSDIR}; dpkg-buildpackage -b -uc -us
31
32.PHONY: upload
33upload:
34 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
35 mkdir -p /pve/${RELEASE}/extra
36 rm -rf /pve/${RELEASE}/extra/glusterfs-common_*.deb
37 rm -rf /pve/${RELEASE}/extra/glusterfs-client_*.deb
38 rm -rf /pve/${RELEASE}/extra/glusterfs-server_*.deb
39 rm -rf /pve/${RELEASE}/extra/Packages*
40 cp ${DEBS} /pve/${RELEASE}/extra
41 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
42 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
43
44.PHONY: clean
45clean:
46 rm -rf *~ *_${ARCH}.deb *_${ARCH}.udeb *.changes *.dsc ${GLUSTERFSDIR}