]>
Commit | Line | Data |
---|---|---|
cd0d3ac3 | 1 | VERSION=4.13.0 |
cf60e316 | 2 | PKGREL=1 |
c9fc61fd | 3 | |
3cf71090 | 4 | DIR=iproute2-${VERSION} |
cd0d3ac3 | 5 | SRC=iproute2-${VERSION}.orig.tar.xz |
3cf71090 | 6 | |
c9fc61fd | 7 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
3cf71090 | 8 | |
f00001fe DM |
9 | DEBS= \ |
10 | iproute2-doc_${VERSION}-${PKGREL}_all.deb \ | |
11 | iproute2_${VERSION}-${PKGREL}_${ARCH}.deb | |
3cf71090 DM |
12 | |
13 | all: ${DEBS} | |
14 | echo ${DEBS} | |
15 | ||
7550f837 WB |
16 | .PHONY: deb |
17 | ${DEBS} deb: ${SRC} | |
3cf71090 DM |
18 | rm -rf ${DIR} |
19 | tar xf ${SRC} | |
20 | cp -a debian ${DIR}/debian | |
21 | cd ${DIR}; dpkg-buildpackage -rfakeroot -b -us -uc | |
22 | ||
23 | ||
24 | download: | |
cd0d3ac3 | 25 | rm -rf iproute2-${VERSION} $(SRC) |
365d86c5 | 26 | git clone -b v${VERSION} --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION} |
cd0d3ac3 | 27 | tar cJf $(SRC) iproute2-${VERSION}/ |
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 DM |
32 | |
33 | .PHONY: clean | |
34 | clean: | |
cd0d3ac3 | 35 | rm -rf *~ debian/*~ *.changes *.dsc ${DIR} *.deb *.buildinfo |
3cf71090 DM |
36 | |
37 | .PHONY: dinstall | |
38 | dinstall: ${DEBS} | |
39 | dpkg -i ${DEBS} |