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.

61 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../zaptel/split_make_install.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. Just build and install userspace stuff of zaptel
  18. --- ./Makefile.orig 2006-09-11 06:49:22.000000000 -0400
  19. +++ ./Makefile 2006-09-11 10:39:02.000000000 -0400
  20. @@ -137,6 +137,8 @@
  21. all: $(BUILDVER) $(LIBTONEZONE_SO)
  22. +bins: $(BINS)
  23. +
  24. linux24: prereq $(MODULESO) wct4xxp/wct4xxp.o $(BINS)
  25. linux26: prereq $(BINS)
  26. @@ -315,14 +317,7 @@
  27. tar -zxf mISDNuser.tar.gz
  28. $(MAKE) -C mISDNuser install
  29. -install: all devices firmware
  30. - install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg
  31. - if [ -f sethdlc-new ]; then \
  32. - install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \
  33. - elif [ -f sethdlc ]; then \
  34. - install -D -m 755 sethdlc $(INSTALL_PREFIX)/sbin/sethdlc ; \
  35. - fi
  36. - if [ -f zttool ]; then install -D -m 755 zttool $(INSTALL_PREFIX)/sbin/zttool; fi
  37. +install-modules:
  38. ifeq ($(BUILDVER),linux26)
  39. for x in $(MODULESKO); do \
  40. rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/extra/$$x ; \
  41. @@ -337,6 +332,14 @@
  42. rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxsusb.o; \
  43. fi; \
  44. rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o
  45. +install:
  46. + install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg
  47. + if [ -f sethdlc-new ]; then \
  48. + install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \
  49. + elif [ -f sethdlc ]; then \
  50. + install -D -m 755 sethdlc $(INSTALL_PREFIX)/sbin/sethdlc ; \
  51. + fi
  52. + if [ -f zttool ]; then install -D -m 755 zttool $(INSTALL_PREFIX)/sbin/zttool; fi
  53. install -D -m 755 $(LIBTONEZONE_SO) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER)
  54. [ `id -u` = 0 ] && /sbin/ldconfig || :
  55. rm -f $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO)