ARCH = $(shell uname -m)
CC = gcc
--INCLUDE = -I/usr/src/linux/include -I.. -I.
-+INCLUDE = -I.. -I.
+-INCLUDE =
++INCLUDE =
SBIN = $(BUILD_ROOT)/sbin
MANDIR = usr/man
MAN = $(BUILD_ROOT)/$(MANDIR)/man8
STATIC_LIBS = libipvs/libipvs.a
ifeq "${ARCH}" "sparc64"
-- CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -O2 -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
+- CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
+ CFLAGS = $(OPT) -Wall -Wunused -Wstrict-prototypes -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
else
-- CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -O2
+- CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
+ CFLAGS = $(OPT) -Wall -Wunused -Wstrict-prototypes
endif
-POPT_LIB = $(shell for i in $(LIB_SEARCH); do \
- if [ -f $$i/libpopt.a ]; then \
- if nm $$i/libpopt.a | fgrep -q poptGetContext; then \
-- echo "-L$$i -lpopt"; \
+- echo "-lpopt"; \
- fi; \
- fi; \
-done)
[ -d $(MAN) ] || $(MKDIR) -p $(MAN)
--- ipvsadm-1.24/libipvs/Makefile.orig 2002-12-19 14:53:07.000000000 +0100
+++ ipvsadm-1.24/libipvs/Makefile 2005-06-06 21:25:13.995125232 +0200
-@@ -1,12 +1,12 @@
+@@ -1,14 +1,14 @@
# Makefile for libipvs
CC = gcc
--INCLUDE = -I/usr/src/linux/include
--CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -O2
-+INCLUDE =
-+CFLAGS = $(OPT) -Wall -Wunused -Wstrict-prototypes
+-CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
++CFLAGS = $(OPT) -Wall -Wunused -Wstrict-prototypes -fPIC
+ ifneq (0,$(HAVE_NL))
+ CFLAGS += -DLIBIPVS_USE_NL
+ endif
-INCLUDE += $(shell if [ -f ../../ip_vs.h ]; then \
- echo "-I../../."; fi;)
Summary: Utility to administer the Linux Virtual Server
Summary(pl.UTF-8): Narzędzie do administracji wirtualnymi serwerami
Name: ipvsadm
-Version: 1.24
+Version: 1.25
Release: 1
License: GPL
Group: Applications/System
Source0: http://www.linuxvirtualserver.org/software/kernel-2.6/%{name}-%{version}.tar.gz
-# Source0-md5: a9378adf5af7a799535b4c26cf3bcf10
+# Source0-md5: 772a053f5fe888cd25784c5f55d31fc3
Source1: %{name}-ip_vs.h
Patch0: %{name}-make.patch
URL: http://www.LinuxVirtualServer.org/
+BuildRequires: libnl-devel
BuildRequires: popt-devel
Conflicts: ipvsadm24
Conflicts: piranha <= 0.4.14