Репозитории ALT
S: | 3.3.17-alt7.g37f1060 |
5.1: | 3.2.7-alt2 |
4.1: | 3.2.5-alt7.M41.1 |
4.0: | 3.2.5-alt7 |
3.0: | 3.2.4-alt2 |
Группа :: Мониторинг
Пакет: procps
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: procps-3.2.5-alt-makefile.patch
Скачать
Скачать
diff -urk.orig procps-3.2.5.orig/Makefile procps-3.2.5/Makefile
--- procps-3.2.5.orig/Makefile 2005-01-26 04:55:26 +0000
+++ procps-3.2.5/Makefile 2005-08-25 09:28:42 +0000
@@ -24,10 +24,10 @@
############ vars
# so you can disable them or choose alternates
-ldconfig := ldconfig
+ldconfig := true
ln_f := ln -f
ln_sf := ln -sf
-install := install -D --owner 0 --group 0
+install := install -D -p
# Lame x86-64 /lib64 and /usr/lib64 abomination:
lib64 := lib$(shell [ -d /lib64 ] && echo 64)
@@ -43,7 +43,7 @@
usr/lib := $(DESTDIR)/usr/$(lib64)/
usr/include := $(DESTDIR)/usr/include/
-#SKIP := $(bin)kill $(man1)kill.1
+SKIP := $(bin)kill $(man1)kill.1
BINFILES := $(usr/bin)uptime $(usr/bin)tload $(usr/bin)free $(usr/bin)w \
$(usr/bin)top $(usr/bin)vmstat $(usr/bin)watch $(usr/bin)skill \
@@ -211,14 +211,14 @@
###### install
$(BINFILES) : all
- $(install) --mode a=rx $(notdir $@) $@
+ $(install) --mode a=rx,u+w $(notdir $@) $@
$(MANFILES) : all
- $(install) --mode a=r $(notdir $@) $@
+ $(install) --mode a=r,u+w $(notdir $@) $@
install: $(filter-out $(SKIP) $(addprefix $(DESTDIR),$(SKIP)),$(INSTALL))
- cd $(usr/bin) && $(ln_f) skill snice
- cd $(usr/proc/bin) && $(ln_f) pgrep pkill
+ cd $(usr/bin) && $(ln_sf) skill snice
+ cd $(usr/proc/bin) && $(ln_sf) pgrep pkill
############ prog.c --> prog.o
diff -urk.orig procps-3.2.5.orig/proc/module.mk procps-3.2.5/proc/module.mk
--- procps-3.2.5.orig/proc/module.mk 2004-09-23 13:10:42 +0000
+++ procps-3.2.5/proc/module.mk 2005-08-25 09:29:15 +0000
@@ -96,7 +96,7 @@
#################### install rules ###########################
$(lib)$(SOFILE) : proc/$(SONAME)
- $(install) --mode a=rx $< $@
+ $(install) --mode a=rx,u+w $< $@
ifneq ($(SOLINK),$(SOFILE))
.PHONY: $(lib)$(SOLINK)
@@ -115,14 +115,14 @@
$(ldconfig)
$(usr/lib)$(ANAME) : proc/$(ANAME)
- $(install) --mode a=r $< $@
+ $(install) --mode a=r,u+w $< $@
# Junk anyway... supposed to go in /usr/include/$(NAME)
#INSTALL += $(addprefix $(include),$(HDRFILES))
#
#$(addprefix $(include),$(HDRFILES)): $(include)% : proc/%
#$(include)% : proc/%
-# $(install) --mode a=r $< $@
+# $(install) --mode a=r,u+w $< $@
##################################################################
diff -urk.orig procps-3.2.5.orig/ps/module.mk procps-3.2.5/ps/module.mk
--- procps-3.2.5.orig/ps/module.mk 2004-07-14 22:20:06 +0000
+++ procps-3.2.5/ps/module.mk 2005-08-25 09:29:37 +0000
@@ -33,8 +33,8 @@
$(bin)ps: ps/ps
- $(install) --mode a=rx $< $@
+ $(install) --mode a=rx,u+w $< $@
$(man1)ps.1 : ps/ps.1
- $(install) --mode a=r $< $@
+ $(install) --mode a=r,u+w $< $@
-rm -f $(DESTDIR)/var/catman/cat1/ps.1.gz $(DESTDIR)/var/man/cat1/ps.1.gz