Makefile.builder 1.2 KB

1234567891011121314151617181920212223242526272829
  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) == xenial ] ; then \
  16. sed -i /avahi-daemon.service.d/d $(CHROOT_DIR)/$(DIST_SRC)/debian/qubes-core-agent.install;\
  17. sed -i /exim4/d $(CHROOT_DIR)/$(DIST_SRC)/debian/qubes-core-agent.install;\
  18. sed -i /netfilter-persistent/d $(CHROOT_DIR)/$(DIST_SRC)/debian/qubes-core-agent.install;\
  19. fi
  20. if [ $(DIST) == zesty ] ; then \
  21. sed -i /initscripts/d $(CHROOT_DIR)/$(DIST_SRC)/debian/control ;\
  22. fi
  23. -$(shell $(ORIG_SRC)/debian-quilt $(ORIG_SRC)/series-debian-vm.conf $(CHROOT_DIR)/$(DIST_SRC)/debian/patches)
  24. tar cfz $(ORIG_FILE) --exclude-vcs --exclude=rpm --exclude=pkgs --exclude=deb --exclude=debian -C $(CHROOT_DIR)/$(DIST_SRC) .
  25. # vim: filetype=make