]> git.proxmox.com Git - parted.git/blame - Makefile
add backport release number (~bpo70+1)
[parted.git] / Makefile
CommitLineData
a4d91749
DM
1RELEASE=3.3
2
3PACKAGE=parted
4PKGVERSION=3.2
5PKGRELEASE=6
585b262d 6BPORELEASE=~bpo70+1
a4d91749
DM
7
8PKGDIR=${PACKAGE}-${PKGVERSION}
9PKGSRC=${PACKAGE}_${PKGVERSION}.orig.tar.xz
10DEBSRC=${PACKAGE}_${PKGVERSION}-${PKGRELEASE}.debian.tar.xz
11
12ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
13
14DEBS= \
585b262d
DM
15${PACKAGE}_${PKGVERSION}-${PKGRELEASE}${BPORELEASE}_${ARCH}.deb \
16libparted2_${PKGVERSION}-${PKGRELEASE}${BPORELEASE}_${ARCH}.deb
a4d91749
DM
17
18
19all: ${DEBS}
20 echo ${DEBS}
21
585b262d 22${DEBS}: ${PKGSRC} changelog.pve
a4d91749
DM
23 rm -rf ${PKGDIR} debian
24 tar xf ${PKGSRC}
25 tar xf ${DEBSRC}
26 cp -a debian ${PKGDIR}/debian
585b262d
DM
27 mv ${PKGDIR}/debian/changelog ${PKGDIR}/debian/changelog.org
28 cat changelog.pve ${PKGDIR}/debian/changelog.org > ${PKGDIR}/debian/changelog
a4d91749
DM
29 cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
30
31.PHONY: upload
32upload: ${DEBS}
33 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
34 mkdir -p /pve/${RELEASE}/extra
35 rm -f /pve/${RELEASE}/extra/Packages*
36 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
37 rm -f /pve/${RELEASE}/extra/libparted2_*.deb
5b1e47d1 38 cp ${DEBS} /pve/${RELEASE}/extra
a4d91749
DM
39 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
40 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
41
42distclean: clean
43
44.PHONY: clean
45clean:
46 rm -rf *~ debian *_${ARCH}.deb *_all.deb *.udeb *.changes *.dsc ${PKGDIR}
47
48.PHONY: dinstall
49dinstall: ${DEB}
50 dpkg -i ${DEBS}