qubes-core-agent-linux/Makefile.builder
Marek Marczykowski-Górecki 38e5d2e38f
debian: use default archive command
On plain Debian there is no need to modify anything, so use default
archive command. It is deterministic and also use excludes from
.gitignore.
2018-05-07 05:49:34 +02:00

28 lines
1011 B
Ruby

ifeq ($(PACKAGE_SET),vm)
RPM_SPEC_FILES := rpm_spec/core-vm.spec \
rpm_spec/core-vm-doc.spec
ifneq ($(filter $(DISTRIBUTION), debian qubuntu),)
DEBIAN_BUILD_DIRS := debian
ifeq ($(DISTRIBUTION),qubuntu)
SOURCE_COPY_IN := source-debian-quilt-copy-in
endif
endif
ARCH_BUILD_DIRS := archlinux
endif
source-debian-quilt-copy-in: VERSION = $(shell cat $(ORIG_SRC)/version)
source-debian-quilt-copy-in: ORIG_FILE = "$(CHROOT_DIR)/$(DIST_SRC)/../qubes-core-agent_$(VERSION).orig.tar.gz"
source-debian-quilt-copy-in:
if [ $(DIST) == trusty ] ; then \
sed -i /locales-all/d $(CHROOT_DIR)/$(DIST_SRC)/debian/control ;\
fi
if [ $(DIST) == artful ] ; then \
sed -i /initscripts/d $(CHROOT_DIR)/$(DIST_SRC)/debian/control ;\
fi
-$(shell $(ORIG_SRC)/debian-quilt $(ORIG_SRC)/series-debian-vm.conf $(CHROOT_DIR)/$(DIST_SRC)/debian/patches)
tar cfz $(ORIG_FILE) --exclude-vcs --exclude=rpm --exclude=pkgs --exclude=deb --exclude=debian -C $(CHROOT_DIR)/$(DIST_SRC) .
# vim: filetype=make