OpenSDE Packages Database (without history before r20070)
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.

53 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../misdn/mISDN-split-install-init.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. mISDN-split-install-init.patch
  17. This patch splits the installation of the init script
  18. from the install target to it's own.
  19. 2006-08-31 Christian Wiese <cw@ixplanet.de>
  20. --- ./Makefile.orig 2006-08-31 15:11:04.000000000 +0200
  21. +++ ./Makefile 2006-08-31 15:14:23.000000000 +0200
  22. @@ -53,12 +53,6 @@
  23. cd $(LINUX) ; make INSTALL_MOD_PATH=$(INSTALL_PREFIX) SUBDIRS=$(MISDN_SRC) modules_install
  24. mkdir -p $(INSTALL_PREFIX)/usr/include/linux/
  25. cp $(MISDNDIR)/include/linux/*.h $(INSTALL_PREFIX)/usr/include/linux/
  26. - mkdir -p $(INSTALL_PREFIX)/usr/sbin/
  27. - install -m755 misdn-init $(INSTALL_PREFIX)/usr/sbin/
  28. - if [ -d $(INSTALL_PREFIX)/etc/init.d ]; then \
  29. - if [ -e $(INSTALL_PREFIX)/etc/init.d/misdn-init ]; then rm -rf $(INSTALL_PREFIX)/etc/init.d/misdn-init; fi; \
  30. - ln -s $(INSTALL_PREFIX)/usr/sbin/misdn-init $(INSTALL_PREFIX)/etc/init.d/misdn-init; \
  31. - fi
  32. mkdir -p $(INSTALL_PREFIX)/etc/modprobe.d
  33. cp mISDN.modprobe.d $(INSTALL_PREFIX)/etc/modprobe.d/mISDN
  34. mkdir -p $(INSTALL_PREFIX)/etc/modules.d
  35. @@ -67,6 +61,14 @@
  36. $(UPDATE_MODULES)
  37. $(MODULES_UPDATE)
  38. +install-init:
  39. + mkdir -p $(INSTALL_PREFIX)/usr/sbin/
  40. + install -m755 misdn-init $(INSTALL_PREFIX)/usr/sbin/
  41. + if [ -d $(INSTALL_PREFIX)/etc/init.d ]; then \
  42. + if [ -e $(INSTALL_PREFIX)/etc/init.d/misdn-init ]; then rm -rf $(INSTALL_PREFIX)/etc/init.d/misdn-init; fi; \
  43. + ln -s $(INSTALL_PREFIX)/usr/sbin/misdn-init $(INSTALL_PREFIX)/etc/init.d/misdn-init; \
  44. + fi
  45. +
  46. test_old_misdn:
  47. @if echo -ne "#include <linux/mISDNif.h>" | gcc -C -E - 2>/dev/null 1>/dev/null ; then \
  48. if ! echo -ne "#include <linux/mISDNif.h>\n#if MISDN_MAJOR_VERSION < 4\n#error old mISDNif.h\n#endif\n" | gcc -C -E - 2>/dev/null 1>/dev/null ; then \