mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-01-04 09:17:59 +03:00
98f4d7525c
To better handle the case where firewall requires to parse the SDN config and this package here would like to mount some vnet specific firewall endpoints, without a split we got a cyclic dependency here, and those are painful, especially on bootstrapping. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
PACKAGE=libpve-network-perl
|
|
|
|
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
|
|
|
DEBS=\
|
|
$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb \
|
|
libpve-network-api-perl_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb \
|
|
|
|
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
|
|
|
all: deb
|
|
|
|
.PHONY: dinstall
|
|
dinstall: deb
|
|
dpkg -i $(DEBS)
|
|
|
|
$(BUILDDIR): src debian
|
|
rm -rf $@ $@.tmp
|
|
cp -a src $@.tmp
|
|
cp -a debian $@.tmp/
|
|
echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
|
|
mv $@.tmp $@
|
|
|
|
.PHONY: deb
|
|
deb: $(DEBS)
|
|
$(DEBS): $(BUILDDIR)
|
|
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
|
lintian $(DEBS)
|
|
|
|
.PHONY: dsc
|
|
dsc: clean
|
|
$(MAKE) $(DSC)
|
|
lintian $(DSC)
|
|
|
|
$(DSC): $(BUILDDIR)
|
|
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
|
|
|
|
sbuild: $(DSC)
|
|
sbuild $(DSC)
|
|
|
|
.PHONY: clean distclean
|
|
distclean: clean
|
|
clean:
|
|
rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
|
|
|
|
.PHONY: upload
|
|
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
|
upload: $(DEBS)
|
|
tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)
|