python-treq: bump to version 16.12.0
[buildroot-gz.git] / package / screen / 0008-install-nonversioned-binary.patch
blobecbbd6519754960b34e0927d950ea5d0c78df8cc
1 From: Maarten ter Huurne <maarten@treewalker.org>
2 Date: Mon, 15 Sep 2014 00:06:20 +0200
3 Subject: Support overriding SCREEN to get a non-versioned binary
5 If a packager runs "make install SCREEN=screen", do not create
6 "screen" as a symlink to itself.
8 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
9 ---
10 Makefile.in | 2 ++
11 1 file changed, 2 insertions(+)
13 diff --git a/Makefile.in b/Makefile.in
14 index 3c12fdb..860f351 100644
15 --- a/Makefile.in
16 +++ b/Makefile.in
17 @@ -86,9 +86,11 @@ install_bin: .version screen
18 $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
19 -chown root $(DESTDIR)$(bindir)/$(SCREEN)
20 -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
21 +ifneq (${SCREEN},screen)
22 # This doesn't work if $(bindir)/screen is a symlink
23 rm -f $(DESTDIR)$(bindir)/screen
24 (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
25 +endif
26 cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
28 ###############################################################################
29 --
30 1.8.4.5