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.
70 lines
2.6 KiB
70 lines
2.6 KiB
17 years ago
|
# --- 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:
|