Группа :: Система/Ядро и оборудование
Пакет: tpctl
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: tpctl-4.10-alt-makefile.patch
diff -ruN tpctl-4.10.orig/lib/Makefile tpctl-4.10/lib/Makefile
--- tpctl-4.10.orig/lib/Makefile 2003-10-15 22:06:56 +0400
+++ tpctl-4.10/lib/Makefile 2004-03-30 19:03:51 +0400
@@ -3,7 +3,7 @@
VER_SMAPIDEV:=2.0
-CFLAGS:=-Wall -Wcast-align -Wstrict-prototypes -O2 -g
+CFLAGS:=$(RPM_OPT_FLAGS) -Wcast-align -Wstrict-prototypes -g
#-DDEBUG_REGS
#-DDEBUG_STRUCT_SIZES -DDEBUG_FILEOPS -DDEBUG_IOPARM
diff -ruN tpctl-4.10.orig/Makefile tpctl-4.10/Makefile
--- tpctl-4.10.orig/Makefile 2003-10-13 01:20:02 +0400
+++ tpctl-4.10/Makefile 2004-03-30 19:03:51 +0400
@@ -19,21 +19,22 @@
install_libraries:
if [ ! -d $(DEST)$(PATH_LIB) ]; then mkdir -p -m 755 $(DEST)$(PATH_LIB) ; fi
- install -m 755 -o 0 -g 0 lib/libsmapidev.so.$(VER_SMAPIDEV) $(DEST)$(PATH_LIB)
+ install -m 755 lib/libsmapidev.so.$(VER_SMAPIDEV) $(DEST)$(PATH_LIB)
ln -sf libsmapidev.so.$(VER_SMAPIDEV) $(DEST)$(PATH_LIB)libsmapidev.so.2
+ ln -sf libsmapidev.so.2 $(DEST)$(PATH_LIB)libsmapidev.so
install_binaries:
if [ ! -d $(DEST)$(PATH_BIN) ]; then mkdir -p -m 755 $(DEST)$(PATH_BIN) ; fi
- install -m 755 -o 0 -g 0 tpctl/tpctl $(DEST)$(PATH_BIN)tpctl
- install -m 755 -o 0 -g 0 ntpctl/ntpctl $(DEST)$(PATH_BIN)ntpctl
- if [ -e tpctlir/tpctlir ]; then install -m 755 -o 0 -g 0 tpctlir/tpctlir $(DEST)$(PATH_SBIN)tpctlir ; fi
+ install -m 755 tpctl/tpctl $(DEST)$(PATH_BIN)tpctl
+ install -m 755 ntpctl/ntpctl $(DEST)$(PATH_BIN)ntpctl
+ if [ -e tpctlir/tpctlir ]; then install -m 755 tpctlir/tpctlir $(DEST)$(PATH_SBIN)tpctlir ; fi
if [ ! -d $(DEST)$(PATH_SBIN) ]; then mkdir -p -m 755 $(DEST)$(PATH_SBIN) ; fi
- install -m 755 -o 0 -g 0 apmiser/apmiser $(DEST)$(PATH_SBIN)apmiser
+ install -m 755 apmiser/apmiser $(DEST)$(PATH_SBIN)apmiser
install_man:
if [ ! -d $(DEST)$(PATH_MAN)man1 ]; then mkdir -p -m 755 $(DEST)$(PATH_MAN)man1 ; fi
- install -m 644 -o 0 -g 0 man/tpctl.1 $(DEST)$(PATH_MAN)man1/tpctl.1
- install -m 644 -o 0 -g 0 man/ntpctl.1 $(DEST)$(PATH_MAN)man1/ntpctl.1
+ install -m 644 man/tpctl.1 $(DEST)$(PATH_MAN)man1/tpctl.1
+ install -m 644 man/ntpctl.1 $(DEST)$(PATH_MAN)man1/ntpctl.1
uninstall: uninstall_libraries uninstall_binaries uninstall_man
diff -ruN tpctl-4.10.orig/ntpctl/Makefile tpctl-4.10/ntpctl/Makefile
--- tpctl-4.10.orig/ntpctl/Makefile 2003-10-15 22:07:03 +0400
+++ tpctl-4.10/ntpctl/Makefile 2004-03-30 19:04:05 +0400
@@ -1,7 +1,7 @@
all: ntpctl
-CFLAGS:=-Wall -Wcast-align -Wstrict-prototypes -O2 -g
+CFLAGS:=$(RPM_OPT_FLAGS) -Wcast-align -Wstrict-prototypes -g
ALLCFLAGS:=$(CFLAGS) -L../lib -I../include -DLINUX
diff -ruN tpctl-4.10.orig/tpctl/Makefile tpctl-4.10/tpctl/Makefile
--- tpctl-4.10.orig/tpctl/Makefile 2003-10-15 22:07:14 +0400
+++ tpctl-4.10/tpctl/Makefile 2004-03-30 19:04:13 +0400
@@ -1,7 +1,7 @@
all: tpctl
-CFLAGS:=-Wall -Wcast-align -Wstrict-prototypes -Wno-uninitialized -O2 -g
+CFLAGS:=$(RPM_OPT_FLAGS) -Wcast-align -Wstrict-prototypes -Wno-uninitialized -g
#-DTP570_KLUDGE
#-DALLOW_POWEROFF
#-DDEBUG_REGS -DDEBUG_STRUCT_SIZES -DDEBUG_FILEOPS -DDEBUG_IOPARM
diff -ruN tpctl-4.10.orig/tpctlir/Makefile tpctl-4.10/tpctlir/Makefile
--- tpctl-4.10.orig/tpctlir/Makefile 2003-10-15 22:07:07 +0400
+++ tpctl-4.10/tpctlir/Makefile 2004-03-30 19:03:51 +0400
@@ -1,6 +1,6 @@
all: tpctlir
-CFLAGS:=-Wall -Wcast-align -Wstrict-prototypes -O2 -g
+CFLAGS:=$(RPM_OPT_FLAGS) -Wcast-align -Wstrict-prototypes
ALLCFLAGS:=$(CFLAGS) -I$(DIR_KERNEL)/include -DLINUX