- mkdir build
- make DESTDIR=${CURDIR}/build install
- perl -I. ./qm verifyapi
- install -d -m 0755 build/DEBIAN
- install -m 0644 control build/DEBIAN
- install -m 0644 triggers build/DEBIAN
- echo "/etc/modules-load.d/qemu-server.conf" >>build/DEBIAN/conffiles
- install -D -m 0644 copyright build/${DOCDIR}/${PACKAGE}/copyright
- install -m 0644 changelog.Debian build/${DOCDIR}/${PACKAGE}/
- gzip -9 build/${DOCDIR}/${PACKAGE}/changelog.Debian
- echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout ${GITVERSION}" > build/${DOCDIR}/${PACKAGE}/SOURCE
- dpkg-deb --build build
- mv build.deb ${DEB}
+ rsync -a * build
+ echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
+ cd build; dpkg-buildpackage -b -us -uc