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.

154 lines
4.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../iproute2/iproute2-2.6.22-070710-opensde-make.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. From d7f4341d8d9137738346252be23c6b45cc9002ea Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <morfoh@opensde.org>
  18. Date: Tue, 15 Jan 2008 15:38:15 +0200
  19. Subject: [PATCH] Added LIBDIR variable to top-level Makefile
  20. diff --git a/Makefile b/Makefile
  21. index af0d5e4..cc55f2d 100644
  22. --- a/Makefile
  23. +++ b/Makefile
  24. @@ -3,6 +3,7 @@ SBINDIR=/usr/sbin
  25. CONFDIR=/etc/iproute2
  26. DOCDIR=/usr/share/doc/iproute2
  27. MANDIR=/usr/share/man
  28. +LIBDIR=/usr/lib
  29. # Path to db_185.h include
  30. DBM_INCLUDE:=/usr/include
  31. --
  32. 1.5.3.5
  33. From cff166a0b0ec53419006ef66f9cba0469711f2b7 Mon Sep 17 00:00:00 2001
  34. From: Christian Wiese <morfoh@opensde.org>
  35. Date: Tue, 15 Jan 2008 15:54:11 +0200
  36. Subject: [PATCH] Improved Makefile to create LIBDIR in install target
  37. diff --git a/Makefile b/Makefile
  38. index cc55f2d..628d3f6 100644
  39. --- a/Makefile
  40. +++ b/Makefile
  41. @@ -42,6 +42,7 @@ Config:
  42. install: all
  43. install -m 0755 -d $(DESTDIR)$(SBINDIR)
  44. + install -m 0755 -d $(DESTDIR)$(LIBDIR)
  45. install -m 0755 -d $(DESTDIR)$(CONFDIR)
  46. install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples
  47. install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples/diffserv
  48. --
  49. 1.5.3.5
  50. From 1aad4d740909c27962b459a4ff011ba9295f53a5 Mon Sep 17 00:00:00 2001
  51. From: Christian Wiese <morfoh@opensde.org>
  52. Date: Tue, 15 Jan 2008 17:24:05 +0200
  53. Subject: [PATCH] Improved iproute2 to build and install libnetlink.so if SHARED=1 is passed to make
  54. diff --git a/lib/Makefile b/lib/Makefile
  55. index bc270bf..6fe61d1 100644
  56. --- a/lib/Makefile
  57. +++ b/lib/Makefile
  58. @@ -3,7 +3,14 @@ UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o
  59. NLOBJ=ll_map.o libnetlink.o
  60. -all: libnetlink.a libutil.a
  61. +NLSHAREDOBJ=
  62. +
  63. +ifeq ($(SHARED),1)
  64. + CFLAGS += -fPIC -DPIC
  65. + NLSHAREDOBJ += libnetlink.so
  66. +endif
  67. +
  68. +all: libnetlink.a libutil.a $(NLSHAREDOBJ)
  69. libnetlink.a: $(NLOBJ)
  70. $(AR) rcs $@ $(NLOBJ)
  71. @@ -11,8 +18,14 @@ libnetlink.a: $(NLOBJ)
  72. libutil.a: $(UTILOBJ) $(ADDLIB)
  73. $(AR) rcs $@ $(UTILOBJ) $(ADDLIB)
  74. +libnetlink.so: $(NLOBJ)
  75. + $(CC) -shared $(CFLAGS) -o $@ $(NLOBJ)
  76. +
  77. install:
  78. +ifeq ($(SHARED),1)
  79. + install -m 0644 $(NLSHAREDOBJ) $(DESTDIR)/$(LIBDIR)
  80. +endif
  81. clean:
  82. - rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a
  83. + rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a $(NLSHAREDOBJ)
  84. --
  85. 1.5.3.5
  86. From ef1b021137d052028ab30bbd55ef84d89f43bcd4 Mon Sep 17 00:00:00 2001
  87. From: Christian Wiese <morfoh@opensde.org>
  88. Date: Tue, 15 Jan 2008 18:40:21 +0200
  89. Subject: [PATCH] Improved iproute2 to install development headers and libs if DEVEL=1 is passed to make
  90. diff --git a/Makefile b/Makefile
  91. index 628d3f6..ac3f214 100644
  92. --- a/Makefile
  93. +++ b/Makefile
  94. @@ -4,6 +4,7 @@ CONFDIR=/etc/iproute2
  95. DOCDIR=/usr/share/doc/iproute2
  96. MANDIR=/usr/share/man
  97. LIBDIR=/usr/lib
  98. +INCLUDEDIR=/usr/include
  99. # Path to db_185.h include
  100. DBM_INCLUDE:=/usr/include
  101. @@ -58,6 +59,11 @@ install: all
  102. install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
  103. install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3
  104. +ifeq ($(DEVEL),1)
  105. + install -m 0755 -d $(DESTDIR)$(INCLUDEDIR)
  106. + install -m 0644 include/{libnetlink.h,ll_map.h} $(DESTDIR)/$(INCLUDEDIR)
  107. +endif
  108. +
  109. clean:
  110. rm -f cscope.*
  111. @for i in $(SUBDIRS) doc; \
  112. diff --git a/lib/Makefile b/lib/Makefile
  113. index 6fe61d1..23fa75d 100644
  114. --- a/lib/Makefile
  115. +++ b/lib/Makefile
  116. @@ -26,6 +26,10 @@ ifeq ($(SHARED),1)
  117. install -m 0644 $(NLSHAREDOBJ) $(DESTDIR)/$(LIBDIR)
  118. endif
  119. +ifeq ($(DEVEL),1)
  120. + install -m 0644 libnetlink.a $(DESTDIR)/$(LIBDIR)
  121. +endif
  122. +
  123. clean:
  124. rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a $(NLSHAREDOBJ)
  125. --
  126. 1.5.3.5