1From 01463f5dbe19501948dec26160e0cc3b4e9167b4 Mon Sep 17 00:00:00 2001
2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3Date: Mon, 27 Nov 2023 18:09:57 +0200
4Subject: [PATCH] socat: disable documentation build/installation
5
6The documentation generation process requires a special yold2man
7program, for which we don't have a package in Buildroot. Since we
8generally don't care much about documentation of packages, just adjust
9the package Makefile.in to not build/install its documentation.
10
11Upstream: N/A
12Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13[baruch: update for 1.8.0.0; git patch format]
14Signed-off-by: Baruch Siach <baruch@tkos.co.il>
15---
16 Makefile.in | 7 ++-----
17 1 file changed, 2 insertions(+), 5 deletions(-)
18
19diff --git a/Makefile.in b/Makefile.in
20index c01b1a4a2306..fd89acb06f3c 100644
21--- a/Makefile.in
22+++ b/Makefile.in
23@@ -82,7 +82,7 @@ SHFILES = socat-chain.sh socat-mux.sh socat-broker.sh \
24 TESTFILES = test.sh socks4echo.sh proxyecho.sh readline-test.sh \
25 	proxy.sh socks4a-echo.sh
26
27-all: progs doc
28+all: progs
29
30 scmclean: gitclean
31
32@@ -128,7 +128,7 @@ libxio.a: $(XIOOBJS) $(UTLOBJS)
33 strip: progs
34 	strip $(PROGS)
35
36-install: progs $(srcdir)/doc/socat.1
37+install: progs
38 	mkdir -p $(DESTDIR)$(BINDEST)
39 	$(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)/socat1
40 	ln -sf socat1 $(DESTDIR)$(BINDEST)/socat
41@@ -137,9 +137,6 @@ install: progs $(srcdir)/doc/socat.1
42 	$(INSTALL) -m 755 socat-broker.sh $(DESTDIR)$(BINDEST)
43 	$(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
44 	$(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
45-	mkdir -p $(DESTDIR)$(MANDEST)/man1
46-	$(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/socat1.1
47-	ln -sf socat1.1 $(DESTDIR)$(MANDEST)/man1/socat.1
48
49 uninstall:
50 	rm -f $(DESTDIR)$(BINDEST)/socat
51--
522.42.0
53
54