build script improvement

build with dpkg-buildpackage (in temp dir), instead of
install-ing the files manually and then pretending to build
with dpkg-buildpackage.

this makes the whole fakeroot/root handling simpler, and
makes "make deb" a simple wrapper around building the
package, like it should be.
This commit is contained in:
Fabian Grünbichler 2017-01-16 11:34:50 +01:00
parent ca304f91ce
commit 5a554403b5
2 changed files with 3 additions and 6 deletions

View File

@ -28,14 +28,13 @@ BTDATA = \
JQVER=3.3.1
JQSRC=jquery-${JQVER}.min.js
all: ${DEB}
all:
.PHONY: deb
deb ${DEB}:
rm -rf build
rsync -a debian build
make DESTDIR=./build install
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
download_bootstrap:

2
debian/install vendored
View File

@ -1,2 +0,0 @@
/usr/share/perl5
/usr/share/libpve-http-server-perl