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