1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 30_strip.dpatch by Petter Reinholdtsten
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Make sure installed binaries are stripped.
8
diff -urNad --exclude=CVS --exclude=.svn ./src/Makefile /tmp/dpep-work.wBpMdg/trunk/src/Makefile
9
--- ./src/Makefile 2005-12-19 22:45:14.000000000 +0100
10
+++ /tmp/dpep-work.wBpMdg/trunk/src/Makefile 2005-12-20 01:07:14.000000000 +0100
14
BIN_COMBO = $(BIN_OWNER):$(BIN_GROUP)
15
-INSTALL = install -o $(BIN_OWNER) -g $(BIN_GROUP)
16
+STRIP = strip -s -R .comment
17
+INSTALL_EXEC = install -o $(BIN_OWNER) -g $(BIN_GROUP) -m 755
18
+INSTALL_DATA = install -o $(BIN_OWNER) -g $(BIN_GROUP) -m 644
19
MANDIR = /usr/share/man
21
# Additional libs for GNU libc.
26
- $(INSTALL) -m 755 $$i $(ROOT)/bin/; \
28
+ $(INSTALL_EXEC) $$i $(ROOT)/bin/ ; \
30
for i in $(SBIN); do \
31
- $(INSTALL) -m 755 $$i $(ROOT)/sbin/; \
33
+ $(INSTALL_EXEC) $$i $(ROOT)/sbin/ ; \
35
for i in $(USRBIN); do \
36
- $(INSTALL) -m 755 $$i $(ROOT)/usr/bin/; \
38
+ $(INSTALL_EXEC) $$i $(ROOT)/usr/bin/ ; \
40
- # $(INSTALL) -m 755 etc/initscript.sample $(ROOT)/etc/
41
+ # $(INSTALL_EXEC) etc/initscript.sample $(ROOT)/etc/
42
ln -sf halt $(ROOT)/sbin/reboot
43
ln -sf halt $(ROOT)/sbin/poweroff
44
ln -sf init $(ROOT)/sbin/telinit
46
if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
47
ln -sf last $(ROOT)/usr/bin/lastb; \
49
- $(INSTALL) -m 644 initreq.h $(ROOT)/usr/include/
50
+ $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
51
for i in $(MAN1); do \
52
- $(INSTALL) -m 644 ../man/$$i $(ROOT)$(MANDIR)/man1/; \
53
+ $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man1/; \
55
for i in $(MAN5); do \
56
- $(INSTALL) -m 644 ../man/$$i $(ROOT)$(MANDIR)/man5/; \
57
+ $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man5/; \
59
for i in $(MAN8); do \
60
- $(INSTALL) -m 644 ../man/$$i $(ROOT)$(MANDIR)/man8/; \
61
+ $(INSTALL_DATA) ../man/$$i $(ROOT)$(MANDIR)/man8/; \