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.

69 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ipvsadm2/ipvsadm-1.24-destdir.patch
  5. # Copyright (C) 2008 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. --- ipvsadm-1.24/Makefile.orig 2008-03-14 03:32:43.000000000 +0200
  17. +++ ipvsadm-1.24/Makefile 2008-03-14 03:38:06.000000000 +0200
  18. @@ -20,7 +20,6 @@
  19. # : the Makefile
  20. # Horms : Updated to add config_stream.c dynamic_array.c
  21. # : Added autodetection of libpot
  22. -# : Added BUILD_ROOT support
  23. # Wensong : Changed the OBJS according to detection
  24. # Ratz : Fixed to use the correct CFLAGS on sparc64
  25. #
  26. @@ -34,10 +33,11 @@
  27. CC = gcc
  28. INCLUDE = -I/usr/src/linux/include -I.. -I.
  29. -SBIN = $(BUILD_ROOT)/sbin
  30. -MANDIR = usr/man
  31. -MAN = $(BUILD_ROOT)/$(MANDIR)/man8
  32. -INIT = $(BUILD_ROOT)/etc/rc.d/init.d
  33. +DESTDIR =
  34. +SBIN = /sbin
  35. +MANDIR = /usr/man
  36. +MAN = $(MANDIR)/man8
  37. +INIT = /etc/rc.d/init.d
  38. MKDIR = mkdir
  39. INSTALL = install
  40. STATIC_LIBS = libipvs/libipvs.a
  41. @@ -93,16 +93,16 @@
  42. $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
  43. install: all
  44. - if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
  45. - $(INSTALL) -m 0755 -s ipvsadm $(SBIN)
  46. - $(INSTALL) -m 0755 ipvsadm-save $(SBIN)
  47. - $(INSTALL) -m 0755 ipvsadm-restore $(SBIN)
  48. - [ -d $(MAN) ] || $(MKDIR) -p $(MAN)
  49. - $(INSTALL) -m 0644 ipvsadm.8 $(MAN)
  50. - $(INSTALL) -m 0644 ipvsadm-save.8 $(MAN)
  51. - $(INSTALL) -m 0644 ipvsadm-restore.8 $(MAN)
  52. - if [ -d $(INIT) ]; then \
  53. - $(INSTALL) -m 0755 ipvsadm.sh $(INIT)/ipvsadm; \
  54. + if [ ! -d $(DESTDIR)$(SBIN) ]; then $(MKDIR) -p $(DESTDIR)$(SBIN); fi
  55. + $(INSTALL) -m 0755 -s ipvsadm $(DESTDIR)$(SBIN)
  56. + $(INSTALL) -m 0755 ipvsadm-save $(DESTDIR)$(SBIN)
  57. + $(INSTALL) -m 0755 ipvsadm-restore $(DESTDIR)$(SBIN)
  58. + [ -d $(DESTDIR)$(MAN) ] || $(MKDIR) -p $(DESTDIR)$(MAN)
  59. + $(INSTALL) -m 0644 ipvsadm.8 $(DESTDIR)$(MAN)
  60. + $(INSTALL) -m 0644 ipvsadm-save.8 $(DESTDIR)$(MAN)
  61. + $(INSTALL) -m 0644 ipvsadm-restore.8 $(DESTDIR)$(MAN)
  62. + if [ -d $(DESTDIR)$(INIT) ]; then \
  63. + $(INSTALL) -m 0755 ipvsadm.sh $(DESTDIR)$(INIT)/ipvsadm; \
  64. fi
  65. clean: