You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
1.2 KiB

  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
  4. CMAKE_FLAGS = -DUSE_PAM=yes -DUSE_CONSOLEKIT=yes -DBUILD_SHARED_LIBS=no -DBUILD_SLIMLOCK=yes
  5. ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
  6. CMAKE_FLAGS = -DUSE_PAM=yes -DUSE_CONSOLEKIT=yes -DBUILD_SHARED_LIBS=no -DBUILD_SLIMLOCK=no
  7. endif
  8. ifeq ($(DEB_HOST_ARCH_OS),hurd)
  9. CMAKE_FLAGS = -DUSE_PAM=yes -DUSE_CONSOLEKIT=yes -DBUILD_SHARED_LIBS=no -DBUILD_SLIMLOCK=no
  10. endif
  11. %:
  12. dh $@ --buildsystem=cmake --with systemd
  13. override_dh_auto_configure:
  14. dh_auto_configure -- $(CMAKE_FLAGS)
  15. override_dh_installinit:
  16. dh_installinit --noscripts
  17. #dh_installinit --no-restart-on-upgrade --no-start \
  18. # --update-rcd-params="start 99 2 3 4 5 . stop 1 0 1 6 ."
  19. override_dh_installpam:
  20. dh_installpam --name=slim
  21. override_dh_install:
  22. dh_install --list-missing
  23. # pam
  24. #install -D -m 0644 pam.sample \
  25. #$(CURDIR)/debian/slim/etc/pam.d/slim
  26. # remove COPYRIGHT files.
  27. rm -rf \
  28. debian/slim/usr/share/slim/themes/debian-moreblue-orbit/COPYING \
  29. debian/slim/usr/share/slim/themes/debian-moreblue/COPYING \
  30. debian/slim/usr/share/slim/themes/debian-spacefun/COPYING \
  31. debian/slim/usr/share/slim/themes/debian-joy/COPYING \
  32. debian/slim/usr/share/slim/themes/debian-lines/COPYING