]>
Commit | Line | Data |
---|---|---|
1 | PACKAGE=iproute2 | |
2 | VER=4.15.0 | |
3 | PKGREL=5 | |
4 | ||
5 | SRCDIR=iproute2 | |
6 | BUILDDIR=${SRCDIR}.tmp | |
7 | ||
8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
9 | ||
10 | MAIN_DEB=iproute2_${VERSION}-${PKGREL}_${ARCH}.deb | |
11 | OTHER_DEBS=\ | |
12 | iproute2-doc_${VERSION}-${PKGREL}_all.deb \ | |
13 | iproute2-dbgsym_${VERSION}-${PKGREL}_all.deb \ | |
14 | ||
15 | DEBS=${MAIN_DEB} ${OTHER_DEBS} | |
16 | ||
17 | DSC=${PACKAGE}_${VER}-${PKGREL}.dsc | |
18 | ||
19 | all: ${DEBS} | |
20 | echo ${DEBS} | |
21 | ||
22 | .PHONY: submodule | |
23 | submodule: | |
24 | test -f "${SRCDIR}/README" || git submodule update --init | |
25 | ||
26 | ${BUILDDIR}: | submodule | |
27 | rm -rf $(BUILDDIR) | |
28 | cp -a $(SRCDIR) $(BUILDDIR) | |
29 | cp -a debian $(BUILDDIR)/debian | |
30 | ||
31 | .PHONY: deb | |
32 | deb: ${DEBS} | |
33 | ${OTHER_DEBS}: ${MAIN_DEBS} | |
34 | ${MAIN_DEB}: ${BUILDDIR} | |
35 | cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us | |
36 | ||
37 | .PHONY: dsc | |
38 | dsc: ${DSC} | |
39 | ${DSC}: ${BUILDDIR} | |
40 | cd ${BUILDDIR}; debian/rules clean | |
41 | cd ${BUILDDIR}; tar czf ../${PACKAGE}_${VER}.orig.tar.gz * | |
42 | cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d | |
43 | lintian $@ | |
44 | ||
45 | .PHONY: upload | |
46 | upload: ${DEBS} | |
47 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} | |
48 | ||
49 | .PHONY: clean distclean | |
50 | distclean: clean | |
51 | clean: | |
52 | rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo *.orig.tar.* *.debian.tar.* | |
53 | ||
54 | .PHONY: dinstall | |
55 | dinstall: deb | |
56 | dpkg -i ${DEB} |