]>
Commit | Line | Data |
---|---|---|
0234a966 AD |
1 | PACKAGE=iproute2 |
2 | VER=4.15.0 | |
3 | PKGREL=5 | |
c9fc61fd | 4 | |
0234a966 AD |
5 | SRCDIR=iproute2 |
6 | BUILDDIR=${SRCDIR}.tmp | |
3cf71090 | 7 | |
c9fc61fd | 8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
3cf71090 | 9 | |
f00001fe DM |
10 | DEBS= \ |
11 | iproute2-doc_${VERSION}-${PKGREL}_all.deb \ | |
4c3ba283 | 12 | iproute2-dbgsym_${VERSION}-${PKGREL}_all.deb \ |
f00001fe | 13 | iproute2_${VERSION}-${PKGREL}_${ARCH}.deb |
3cf71090 DM |
14 | |
15 | all: ${DEBS} | |
16 | echo ${DEBS} | |
17 | ||
0234a966 AD |
18 | .PHONY: submodule |
19 | submodule: | |
20 | test -f "${SRCDIR}/README" || git submodule update --init | |
3cf71090 | 21 | |
0234a966 AD |
22 | .PHONY: deb |
23 | ${DEBS} deb: | submodule | |
0234a966 | 24 | rm -rf $(BUILDDIR) |
dc9d6863 TL |
25 | cp -a $(SRCDIR) $(BUILDDIR) |
26 | cp -a debian $(BUILDDIR)/debian | |
0234a966 | 27 | cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us |
3cf71090 DM |
28 | |
29 | .PHONY: upload | |
30 | upload: ${DEBS} | |
ced20272 | 31 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
3cf71090 | 32 | |
dc9d6863 | 33 | .PHONY: clean distclean |
0234a966 | 34 | distclean: clean |
3cf71090 | 35 | clean: |
0234a966 | 36 | rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo |
3cf71090 DM |
37 | |
38 | .PHONY: dinstall | |
0234a966 AD |
39 | dinstall: deb |
40 | dpkg -i ${DEB} |