Makefile.builder 939 B

123456789101112131415161718192021222324
  1. ifeq ($(PACKAGE_SET),vm)
  2. RPM_SPEC_FILES := rpm_spec/core-agent.spec
  3. ifneq ($(filter $(DISTRIBUTION), debian qubuntu),)
  4. DEBIAN_BUILD_DIRS := debian
  5. SOURCE_COPY_IN := source-debian-quilt-copy-in
  6. endif
  7. ARCH_BUILD_DIRS := archlinux
  8. endif
  9. source-debian-quilt-copy-in: VERSION = $(shell cat $(ORIG_SRC)/version)
  10. source-debian-quilt-copy-in: ORIG_FILE = "$(CHROOT_DIR)/$(DIST_SRC)/../qubes-core-agent_$(VERSION).orig.tar.gz"
  11. source-debian-quilt-copy-in:
  12. if [ $(DIST) == trusty ] ; then \
  13. sed -i /locales-all/d $(CHROOT_DIR)/$(DIST_SRC)/debian/control ;\
  14. fi
  15. if [ $(DIST) == zesty ] ; then \
  16. sed -i /initscripts/d $(CHROOT_DIR)/$(DIST_SRC)/debian/control ;\
  17. fi
  18. -$(shell $(ORIG_SRC)/debian-quilt $(ORIG_SRC)/series-debian-vm.conf $(CHROOT_DIR)/$(DIST_SRC)/debian/patches)
  19. tar cfz $(ORIG_FILE) --exclude-vcs --exclude=rpm --exclude=pkgs --exclude=deb --exclude=debian -C $(CHROOT_DIR)/$(DIST_SRC) .
  20. # vim: filetype=make