1 include /usr
/share
/dpkg
/default.mk
6 BUILDDIR
=$(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
8 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
9 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
11 MAIN_DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
13 frr-doc_
$(DEB_VERSION
)_all.deb \
14 frr-pythontools_
$(DEB_VERSION
)_all.deb \
15 frr-snmp_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb \
18 frr-dbgsym_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb \
19 frr-snmp-dbgsym_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb \
21 DEBS
=$(MAIN_DEB
) $(OTHER_DEBS
) $(DBG_DEBS
)
28 test -f
"$(SRCDIR)/debian/changelog" || git submodule update
--init
30 # FIXME: fully merge our and upstream (which is also the upstream for debian's "downstream") packaging
31 # so that the top-level debian directory is the canonical source.
32 $(BUILDDIR
): submodule debian
/changelog
34 cp
-a
$(SRCDIR
) $@.tmp
35 rm $@.tmp
/debian
/changelog
$@.tmp
/debian
/compat
36 sed
-i
'/frrinit\.sh/d' $@.tmp
/debian
/rules
37 cp
-a debian
/* $@.tmp
/debian
/
40 $(ORIG_SRC_TAR
): $(BUILDDIR
)
41 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
45 $(OTHER_DEBS
) $(DBG_DEBS
): $(MAIN_DEB
)
46 $(MAIN_DEB
): $(BUILDDIR
)
47 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
--build-profiles
="pkg.frr.nortrlib"
52 rm -rf
$(BUILDDIR
) $(ORIG_SRC_TAR
) $(DSC
)
56 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
57 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
--build-profiles
="pkg.frr.nortrlib" -d
60 sbuild
--profiles
="pkg.frr.nortrlib" $<
64 tar cf
- $(DEBS
)|ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist bullseye
71 rm -rf
$(PACKAGE
)-[0-9]*/
72 rm -rf
$(PACKAGE
)*.
tar* *.deb
*.dsc
*.changes
*.dsc
*.buildinfo
*.build