- added RPM_OPT_FLAGS

- execshield patch for netplug <t8m@redhat.com>
This commit is contained in:
Radek Vokál 2005-02-28 11:42:58 +00:00
parent e93ed5526f
commit 119bde2aaa
2 changed files with 28 additions and 4 deletions

13
net-tools-1.60-pie.patch Normal file
View File

@ -0,0 +1,13 @@
--- net-tools-1.60/Makefile.pie 2001-04-15 16:34:31.000000000 +0200
+++ net-tools-1.60/Makefile 2005-02-28 12:41:15.337127680 +0100
@@ -113,8 +113,8 @@
NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
-CFLAGS = $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH)
-LDFLAGS = $(LOPTS) -L$(NET_LIB_PATH)
+CFLAGS += $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH)
+LDFLAGS += $(LOPTS) -L$(NET_LIB_PATH)
SUBDIRS = man/ $(NET_LIB_PATH)/

View File

@ -3,7 +3,7 @@
Summary: Basic networking tools. Summary: Basic networking tools.
Name: net-tools Name: net-tools
Version: 1.60 Version: 1.60
Release: 46 Release: 47
License: GPL License: GPL
Group: System Environment/Base Group: System Environment/Base
Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2 Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
@ -26,7 +26,8 @@ Patch11: net-tools-1.60-trailingblank.patch
Patch12: net-tools-1.60-interface.patch Patch12: net-tools-1.60-interface.patch
Patch14: net-tools-1.60-gcc34.patch Patch14: net-tools-1.60-gcc34.patch
Patch15: net-tools-1.60-overflow.patch Patch15: net-tools-1.60-overflow.patch
Patch16: net-tools-1.60-execshield.patch #included in netlpug-execshield.patch
#Patch16: net-tools-1.60-execshield.patch
Patch19: net-tools-1.60-siunits.patch Patch19: net-tools-1.60-siunits.patch
Patch20: net-tools-1.60-trunc.patch Patch20: net-tools-1.60-trunc.patch
Patch21: net-tools-1.60-return.patch Patch21: net-tools-1.60-return.patch
@ -44,6 +45,8 @@ Patch32: net-tools-1.60-isofix.patch
Patch33: net-tools-1.60-bitkeeper.patch Patch33: net-tools-1.60-bitkeeper.patch
Patch34: net-tools-1.60-ifconfig_ib.patch Patch34: net-tools-1.60-ifconfig_ib.patch
Patch35: net-tools-1.60-de.patch Patch35: net-tools-1.60-de.patch
Patch36: netplug-1.2.9-execshield.patch
Patch37: net-tools-1.60-pie.patch
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-root
Requires(post,preun): chkconfig Requires(post,preun): chkconfig
@ -69,7 +72,7 @@ ifconfig, netstat, route, and others.
%patch12 -p1 -b .interface %patch12 -p1 -b .interface
%patch14 -p1 -b .gcc34 %patch14 -p1 -b .gcc34
%patch15 -p1 -b .overflow %patch15 -p1 -b .overflow
%patch16 -p1 -b .execshield #%patch16 -p1 -b .execshield
%patch19 -p1 -b .siunits %patch19 -p1 -b .siunits
%patch20 -p1 -b .trunc %patch20 -p1 -b .trunc
%patch21 -p1 -b .return %patch21 -p1 -b .return
@ -86,7 +89,9 @@ ifconfig, netstat, route, and others.
%patch32 -p1 -b .isofix %patch32 -p1 -b .isofix
%patch33 -p1 -b .bitkeeper %patch33 -p1 -b .bitkeeper
%patch34 -p1 -b .ifconfig_ib %patch34 -p1 -b .ifconfig_ib
%patch35 -p1 %patch35 -p1
%patch36 -p1 -b .execshield
%patch37 -p1 -b .pie
cp %SOURCE2 ./config.h cp %SOURCE2 ./config.h
cp %SOURCE3 ./config.make cp %SOURCE3 ./config.make
@ -127,6 +132,8 @@ iconv -f iso-8859-1 -t utf-8 -o route.tmp man/de_DE/route.8 && mv route.tmp man/
iconv -f iso-8859-1 -t utf-8 -o slattach.tmp man/de_DE/slattach.8 && mv slattach.tmp man/fr_FR/slattach.8 iconv -f iso-8859-1 -t utf-8 -o slattach.tmp man/de_DE/slattach.8 && mv slattach.tmp man/fr_FR/slattach.8
%build %build
export CFLAGS="$RPM_OPT_FLAGS $CFLAGS"
make make
gcc $RPM_OPT_FLAGS -o ether-wake ether-wake.c gcc $RPM_OPT_FLAGS -o ether-wake ether-wake.c
pushd netplug-%{npversion} pushd netplug-%{npversion}
@ -188,6 +195,10 @@ exit 0
%{_sysconfdir}/rc.d/init.d/netplugd %{_sysconfdir}/rc.d/init.d/netplugd
%changelog %changelog
* Mon Feb 28 2005 Radek Vokal <rvokal@redhat.com> 1.60-47
- added RPM_OPT_FLAGS
- execshield patch for netplug <t8m@redhat.com>
* Wed Feb 16 2005 Radek Vokal <rvokal@redhat.com> 1.60-46 * Wed Feb 16 2005 Radek Vokal <rvokal@redhat.com> 1.60-46
- small typo in german translation (#148775) - small typo in german translation (#148775)