]> git.proxmox.com Git - pve-sheepdog.git/blob - Makefile
new init.d script, now scans /var/lib/sheepdog/disk[0-9]/startup
[pve-sheepdog.git] / Makefile
1 RELEASE=2.1
2
3 PACKAGE=pve-sheepdog
4 PKGREL=6
5 SDVER=0.4.0
6
7 DEB=${PACKAGE}_${SDVER}-${PKGREL}_amd64.deb
8
9 SDDIR=sheepdog-${SDVER}
10 SDSRC=${SDDIR}.tar.gz
11
12 all: ${DEB}
13
14 ${DEB} deb: ${SDSRC}
15 rm -rf ${SDDIR}
16 tar xf ${SDSRC}
17 cp -av debian ${SDDIR}/debian
18 cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
19 lintian ${DEB}
20
21 .PHONY: download
22 ${SDSRC} download:
23 rm -rf ${SDDIR} sheepdog.git
24 git clone git://github.com/collie/sheepdog.git sheepdog.git
25 #cd sheepdog.git; git checkout -b local v${SDVER}
26 rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
27 tar czf ${SDSRC}.tmp ${SDDIR}
28 rm -rf ${SDDIR}
29 mv ${SDSRC}.tmp ${SDSRC}
30
31 .PHONY: upload
32 upload: ${DEB}
33 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
34 mkdir -p /pve/${RELEASE}/extra
35 rm -f /pve/${RELEASE}/extra/pve-sheepdog*.deb
36 rm -f /pve/${RELEASE}/extra/Packages*
37 cp ${DEB} /pve/${RELEASE}/extra
38 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
39 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
40
41 clean:
42 distclean: clean
43 rm -rf sheepdog.git
44
45 .PHONY: clean
46 clean:
47 rm -rf *~ debian/*~ *.deb *.changes *.dsc ${SDDIR} ${SDSRC}.tmp
48
49 .PHONY: dinstall
50 dinstall: ${DEB}
51 dpkg -i ${DEB}
52