2019-07-10 17:52:49 +02:00
i n c l u d e / u s r / s h a r e / d p k g / p k g - i n f o . m k
2019-03-27 18:24:05 +01:00
2019-07-10 17:52:49 +02:00
PACKAGE = libpve-network-perl
2019-03-27 18:24:05 +01:00
2023-05-25 17:37:58 +02:00
BUILDDIR ?= $( PACKAGE) -$( DEB_VERSION_UPSTREAM)
2019-03-27 18:24:05 +01:00
2023-05-25 17:37:58 +02:00
DEB = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) _all.deb
DSC = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) .dsc
2019-03-27 18:24:05 +01:00
2024-01-22 11:51:42 +01:00
all : deb
2019-03-27 18:24:05 +01:00
.PHONY : dinstall
dinstall : deb
2023-05-25 17:37:58 +02:00
dpkg -i $( DEB)
2019-03-27 18:24:05 +01:00
2023-05-25 18:10:14 +02:00
$(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 $@
2019-03-27 18:24:05 +01:00
.PHONY : deb
2023-05-25 17:37:58 +02:00
deb : $( DEB )
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
lintian $( DEB)
2019-03-27 18:24:05 +01:00
.PHONY : dsc
2023-05-25 18:04:44 +02:00
dsc : clean
$( MAKE) $( DSC)
lintian $( DSC)
2023-05-25 17:37:58 +02:00
$(DSC) : $( BUILDDIR )
2023-05-25 17:41:47 +02:00
cd $( BUILDDIR) ; dpkg-buildpackage -S -us -uc -d
2023-05-25 18:04:44 +02:00
sbuild : $( DSC )
sbuild $( DSC)
2019-03-27 18:24:05 +01:00
.PHONY : clean distclean
distclean : clean
clean :
2023-05-25 18:04:44 +02:00
rm -rf *~ *.deb *.changes $( PACKAGE) -[ 0-9] */ $( PACKAGE) *.tar* *.build *.buildinfo *.dsc
2019-03-27 18:24:05 +01:00
.PHONY : upload
2023-05-25 18:18:39 +02:00
upload : UPLOAD_DIST ?= $( DEB_DISTRIBUTION )
2023-05-25 17:37:58 +02:00
upload : $( DEB )
2023-05-25 18:18:39 +02:00
tar cf - $( DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $( UPLOAD_DIST)