frr/Makefile
Alexandre Derumier bb341265f1 bump to 7.5.1-99+pve~really7.4
[ Thomas: fix changelog format and add a bit to it ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-08-24 10:31:24 +02:00

45 lines
912 B
Makefile

PACKAGE=frr
VER=7.5.1
PKGREL=99+pve~really7.4
SRCDIR=frr
BUILDDIR=${SRCDIR}.tmp
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell git rev-parse HEAD)
DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
all: ${DEB}
@echo ${DEB}
.PHONY: submodule
submodule:
test -f "${SRCDIR}/debian/changelog" || git submodule update --init
.PHONY: deb
deb: ${DEB}
${DEB}: | submodule
rm -f *.deb
rm -rf $(BUILDDIR)
cp -rpa ${SRCDIR} ${BUILDDIR}
rm $(BUILDDIR)/debian/changelog
cp -R debian/* $(BUILDDIR)/debian/
cd ${BUILDDIR}; DEB_BUILD_PROFILES=pkg.frr.nortrlib dpkg-buildpackage -rfakeroot -b -uc -us
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}