2019-05-21 22:28:39 +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
i n c l u d e / u s r / s h a r e / d p k g / a r c h i t e c t u r e . m k
2014-03-03 09:40:04 +01:00
PACKAGE = pve-firewall
2019-05-21 22:28:39 +02:00
BUILDDIR ?= ${ PACKAGE } -${ DEB_VERSION_UPSTREAM }
2018-03-08 13:33:56 +01:00
GITVERSION := $( shell git rev-parse HEAD)
2014-03-03 09:40:04 +01:00
2019-05-21 22:28:39 +02:00
DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _${ DEB_BUILD_ARCH } .deb
DSC = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } .dsc
DEB2 = ${ PACKAGE } -dbgsym_${ DEB_VERSION_UPSTREAM_REVISION } _${ DEB_BUILD_ARCH } .deb
2019-01-25 10:56:16 +01:00
DEBS = $( DEB) $( DEB2)
2014-03-03 09:40:04 +01:00
2019-01-25 10:56:16 +01:00
all : $( DEBS )
2014-03-03 09:40:04 +01:00
.PHONY : dinstall
dinstall : deb
2019-01-25 10:56:16 +01:00
dpkg -i $( DEBS)
2014-03-03 09:40:04 +01:00
2019-03-31 15:24:42 +02:00
${BUILDDIR} :
rm -rf ${ BUILDDIR }
rsync -a src/ debian ${ BUILDDIR }
echo " git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${ GITVERSION } " > ${ BUILDDIR } /debian/SOURCE
2014-03-03 09:40:04 +01:00
.PHONY : deb
2019-01-25 10:56:16 +01:00
deb : $( DEBS )
$(DEB2) : $( DEB )
2019-03-31 15:24:42 +02:00
$(DEB) : ${BUILDDIR } check
cd ${ BUILDDIR } ; dpkg-buildpackage -b -us -uc
2019-01-25 10:56:16 +01:00
lintian ${ DEBS }
2014-03-03 09:40:04 +01:00
2019-03-31 15:43:40 +02:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : ${BUILDDIR }
2019-04-02 11:18:21 +02:00
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d
2019-03-31 15:43:40 +02:00
lintian ${ DSC }
2014-05-13 14:18:08 +02:00
.PHONY : check
2019-03-31 15:24:42 +02:00
check :
2014-05-13 14:18:08 +02:00
make -C test check
2019-03-31 15:24:42 +02:00
.PHONY : clean distclean
distclean : clean
clean :
2014-03-14 14:22:30 +01:00
make -C src clean
2014-05-13 14:18:08 +02:00
make -C test clean
2019-04-01 13:57:41 +02:00
rm -rf *~ debian/*~ example/*~ *.deb *.changes *.buildinfo ${ BUILDDIR } ${ PACKAGE } *.tar.gz *.dsc
2014-03-03 09:40:04 +01:00
.PHONY : upload
2019-01-25 10:56:16 +01:00
upload : $( DEBS )
2021-05-24 11:39:09 +02:00
tar cf - $( DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${ DEB_BUILD_ARCH }