Browse Source

ipvsadm2: Fixed cross-compiling and marked cross-compilable when requested

user/amery/cross
Christian Wiese 17 years ago committed by Alejandro Mery
parent
commit
e77b8b24fc
  1. 69
      network/ipvsadm2/ipvsadm-1.24-destdir.patch
  2. 2
      network/ipvsadm2/ipvsadm2.desc

69
network/ipvsadm2/ipvsadm-1.24-destdir.patch

@ -0,0 +1,69 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ipvsadm2/ipvsadm-1.24-destdir.patch
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- ipvsadm-1.24/Makefile.orig 2008-03-14 03:32:43.000000000 +0200
+++ ipvsadm-1.24/Makefile 2008-03-14 03:38:06.000000000 +0200
@@ -20,7 +20,6 @@
# : the Makefile
# Horms : Updated to add config_stream.c dynamic_array.c
# : Added autodetection of libpot
-# : Added BUILD_ROOT support
# Wensong : Changed the OBJS according to detection
# Ratz : Fixed to use the correct CFLAGS on sparc64
#
@@ -34,10 +33,11 @@
CC = gcc
INCLUDE = -I/usr/src/linux/include -I.. -I.
-SBIN = $(BUILD_ROOT)/sbin
-MANDIR = usr/man
-MAN = $(BUILD_ROOT)/$(MANDIR)/man8
-INIT = $(BUILD_ROOT)/etc/rc.d/init.d
+DESTDIR =
+SBIN = /sbin
+MANDIR = /usr/man
+MAN = $(MANDIR)/man8
+INIT = /etc/rc.d/init.d
MKDIR = mkdir
INSTALL = install
STATIC_LIBS = libipvs/libipvs.a
@@ -93,16 +93,16 @@
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
install: all
- if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
- $(INSTALL) -m 0755 -s ipvsadm $(SBIN)
- $(INSTALL) -m 0755 ipvsadm-save $(SBIN)
- $(INSTALL) -m 0755 ipvsadm-restore $(SBIN)
- [ -d $(MAN) ] || $(MKDIR) -p $(MAN)
- $(INSTALL) -m 0644 ipvsadm.8 $(MAN)
- $(INSTALL) -m 0644 ipvsadm-save.8 $(MAN)
- $(INSTALL) -m 0644 ipvsadm-restore.8 $(MAN)
- if [ -d $(INIT) ]; then \
- $(INSTALL) -m 0755 ipvsadm.sh $(INIT)/ipvsadm; \
+ if [ ! -d $(DESTDIR)$(SBIN) ]; then $(MKDIR) -p $(DESTDIR)$(SBIN); fi
+ $(INSTALL) -m 0755 -s ipvsadm $(DESTDIR)$(SBIN)
+ $(INSTALL) -m 0755 ipvsadm-save $(DESTDIR)$(SBIN)
+ $(INSTALL) -m 0755 ipvsadm-restore $(DESTDIR)$(SBIN)
+ [ -d $(DESTDIR)$(MAN) ] || $(MKDIR) -p $(DESTDIR)$(MAN)
+ $(INSTALL) -m 0644 ipvsadm.8 $(DESTDIR)$(MAN)
+ $(INSTALL) -m 0644 ipvsadm-save.8 $(DESTDIR)$(MAN)
+ $(INSTALL) -m 0644 ipvsadm-restore.8 $(DESTDIR)$(MAN)
+ if [ -d $(DESTDIR)$(INIT) ]; then \
+ $(INSTALL) -m 0755 ipvsadm.sh $(DESTDIR)$(INIT)/ipvsadm; \
fi
clean:

2
network/ipvsadm2/ipvsadm2.desc

@ -36,6 +36,6 @@
[L] GPL [L] GPL
[S] Stable [S] Stable
[V] 1.24.6 [V] 1.24.6
[P] X -----5---9 190.300 [P] X -?---5---9 190.300
[D] 1558203479 ipvsadm-1.24.6.tar.gz !http://www.linux-vs.org/software/kernel-2.6/ipvsadm-1.24.tar.gz [D] 1558203479 ipvsadm-1.24.6.tar.gz !http://www.linux-vs.org/software/kernel-2.6/ipvsadm-1.24.tar.gz

Loading…
Cancel
Save