aboutsummaryrefslogtreecommitdiff
path: root/recipes/termcap/termcap-2.0.8/003_all_termcap-inst-no-root.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/termcap/termcap-2.0.8/003_all_termcap-inst-no-root.patch')
-rw-r--r--recipes/termcap/termcap-2.0.8/003_all_termcap-inst-no-root.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/termcap/termcap-2.0.8/003_all_termcap-inst-no-root.patch b/recipes/termcap/termcap-2.0.8/003_all_termcap-inst-no-root.patch
new file mode 100644
index 0000000..81d2710
--- /dev/null
+++ b/recipes/termcap/termcap-2.0.8/003_all_termcap-inst-no-root.patch
@@ -0,0 +1,34 @@
+--- termcap-2.0.8/Makefile.nochown
++++ termcap-2.0.8/Makefile
+@@ -53,11 +53,7 @@
+ $(prefix)/lib/backup/$(SHARED_LIB).$$$$; \
+ fi
+ cp $(SHARED_LIB) $(prefix)/lib
+- chown $(OWNER) $(prefix)/lib/$(SHARED_LIB)
+- if [ -x /sbin/ldconfig -o -x /etc/ldconfig ]; then \
+- ldconfig; \
+- fi
+ -if [ $(prefix) = "/" ]; then \
+ cp -f $(STATIC_LIB) /usr/lib; \
+ rm -f /lib/libtermcap.so; \
+ rm -f /usr/lib/libtermcap.so; \
+@@ -75,10 +74,6 @@
+ ln -s $(prefix)/lib/$(SHARED_LIB) \
+ $(prefix)/lib/libtermcap.so; \
+ cp -f termcap.h $(prefix)/include; \
+- chown $(OWNER) \
+- $(prefix)/lib/$(STATIC_LIB) \
+- $(prefix)/lib/libtermcap.so \
+- $(prefix)/include/termcap.h; \
+ fi
+
+ install-dirs:
+@@ -89,7 +84,7 @@
+ install-data:
+ -if [ $(prefix) = "/" ]; then \
+ cp termcap.src /etc/termcap; \
+- chown $(OWNER) /etc/termcap; \
++ #chown $(OWNER) /etc/termcap; \
+ fi
+
+ info: termcap.info