]>
Commit | Line | Data |
---|---|---|
d69c4df4 | 1 | # also add entry in changelog.Debian |
fe2404bd DM |
2 | OVSVER=2.7.0 |
3 | PKGRELEASE=1 | |
fefd5377 DM |
4 | |
5 | OVSDIR=openvswitch-${OVSVER} | |
6 | OVSSRC=openvswitch-${OVSVER}.tar.gz | |
7 | ||
8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
6a37cd0e | 9 | GITVERSION:=$(shell cat .git/refs/heads/master) |
fefd5377 DM |
10 | |
11 | DEBS= \ | |
12 | openvswitch-common_${OVSVER}-${PKGRELEASE}_${ARCH}.deb \ | |
13 | openvswitch-switch_${OVSVER}-${PKGRELEASE}_${ARCH}.deb | |
14 | ||
15 | all: ${DEBS} | |
16 | echo ${DEBS} | |
17 | ||
65695f88 FG |
18 | .PHONY: deb |
19 | deb: ${DEBS} | |
20 | ${DEBS}: ${OVSSRC} | |
fefd5377 DM |
21 | rm -rf ${OVSDIR} |
22 | tar xf ${OVSSRC} | |
dbdf1e31 DM |
23 | cd ${OVSDIR}; ln -s ../pvepatches patches |
24 | cd ${OVSDIR}; quilt push -a | |
d69c4df4 DM |
25 | mv ${OVSDIR}/debian/changelog ${OVSDIR}/debian/changelog.org |
26 | cat changelog.Debian ${OVSDIR}/debian/changelog.org> ${OVSDIR}/debian/changelog | |
6a37cd0e DM |
27 | echo "git clone git://git.proxmox.com/git/openvswitch.git\\ngit checkout ${GITVERSION}" > ${OVSDIR}/debian/SOURCE |
28 | echo "debian/SOURCE" >> ${OVSDIR}/debian/openvswitch-common.docs | |
29 | echo "debian/SOURCE" >> ${OVSDIR}/debian/openvswitch-switch.docs | |
ec3daa27 | 30 | cd ${OVSDIR}; dpkg-buildpackage -b -jauto -us -uc |
fefd5377 DM |
31 | |
32 | .PHONY: download | |
33 | ${OVSSRC} download: | |
ba7db73e WL |
34 | rm -rf ${OVSDIR} ${OVSSRC} |
35 | git clone https://github.com/openvswitch/ovs.git -b v${OVSVER} ${OVSDIR}.git | |
36 | cd ${OVSDIR}.git; git archive --format=tar.gz -o ../${OVSSRC}.tmp v${OVSVER} --prefix=${OVSDIR}/ | |
37 | mv ${OVSSRC}.tmp ${OVSSRC} | |
fefd5377 DM |
38 | |
39 | .PHONY: upload | |
40 | upload: ${DEBS} | |
df73a571 | 41 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload |
fefd5377 DM |
42 | |
43 | .PHONY: distclean | |
44 | distclean: clean | |
45 | ||
46 | .PHONY: clean | |
47 | clean: | |
ba7db73e | 48 | rm -rf *~ ${OVSSRC}.tmp ${OVSDIR} *.deb *.changes ${OVSDIR}.git |
fefd5377 DM |
49 | |
50 | .PHONY: dinstall | |
51 | dinstall: ${DEBS} | |
52 | dpkg -i ${DEBS} |