From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Sun, 15 Mar 2020 18:41:04 +0100 Subject: [Buildroot] [PATCH] package/tinyproxy: new package In-Reply-To: <20200314102323.1781-1-alexander.i.mukhin@gmail.com> References: <20200313220548.666cb3ef@gmx.net> <20200314102323.1781-1-alexander.i.mukhin@gmail.com> Message-ID: <20200315184104.76be29be@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Alexander, only one minor nitpick... On Sat, 14 Mar 2020 13:23:23 +0300, Alexander Mukhin wrote: > Tinyproxy is a small, efficient HTTP/SSL proxy daemon. > > https://tinyproxy.github.io > > Signed-off-by: Alexander Mukhin > --- > DEVELOPERS | 3 +++ > package/Config.in | 1 + > .../0001-Makefile.am-remove-docs-subdir.patch | 27 +++++++++++++++++++ > package/tinyproxy/Config.in | 16 +++++++++++ > package/tinyproxy/tinyproxy.hash | 2 ++ > package/tinyproxy/tinyproxy.mk | 15 +++++++++++ > 6 files changed, 64 insertions(+) > create mode 100644 package/tinyproxy/0001-Makefile.am-remove-docs-subdir.patch > create mode 100644 package/tinyproxy/Config.in > create mode 100644 package/tinyproxy/tinyproxy.hash > create mode 100644 package/tinyproxy/tinyproxy.mk > > diff --git a/DEVELOPERS b/DEVELOPERS > index 5394150e5a..a3df15d903 100644 > --- a/DEVELOPERS > +++ b/DEVELOPERS > @@ -132,6 +132,9 @@ F: package/minimodem/ > N: Alexander Lukichev > F: package/openpgm/ > > +N: Alexander Mukhin > +F: package/tinyproxy/ > + > N: Alexander Sverdlin > F: package/mini-snmpd/ > > diff --git a/package/Config.in b/package/Config.in > index 146fc1bbc3..0da893801e 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -2169,6 +2169,7 @@ endif > source "package/thttpd/Config.in" > source "package/tinc/Config.in" > source "package/tinyhttpd/Config.in" > + source "package/tinyproxy/Config.in" > source "package/tinyssh/Config.in" > source "package/tor/Config.in" > source "package/traceroute/Config.in" > diff --git a/package/tinyproxy/0001-Makefile.am-remove-docs-subdir.patch b/package/tinyproxy/0001-Makefile.am-remove-docs-subdir.patch > new file mode 100644 > index 0000000000..e2a08678a3 > --- /dev/null > +++ b/package/tinyproxy/0001-Makefile.am-remove-docs-subdir.patch > @@ -0,0 +1,27 @@ > +From 7ce6ee22057489d280e0ea5f6439edbbf0ad7ee2 Mon Sep 17 00:00:00 2001 > +From: Alexander Mukhin > +Date: Sat, 14 Mar 2020 12:45:29 +0300 > +Subject: [PATCH] Makefile.am: remove docs subdir > + > +This avoids building the documentation, which requires asciidoc. > + > +Signed-off-by: Alexander Mukhin > +--- > + Makefile.am | 1 - > + 1 file changed, 1 deletion(-) > + > +diff --git a/Makefile.am b/Makefile.am > +index e9113c2..2fe3d54 100644 > +--- a/Makefile.am > ++++ b/Makefile.am > +@@ -2,7 +2,6 @@ SUBDIRS = \ > + src \ > + data \ > + etc \ > +- docs \ > + m4macros \ > + tests > + > +-- > +2.20.1 > + > diff --git a/package/tinyproxy/Config.in b/package/tinyproxy/Config.in > new file mode 100644 > index 0000000000..aec2ab81a8 > --- /dev/null > +++ b/package/tinyproxy/Config.in > @@ -0,0 +1,16 @@ > +config BR2_PACKAGE_TINYPROXY > + bool "tinyproxy" > + depends on BR2_USE_WCHAR > + depends on BR2_TOOLCHAIN_HAS_THREADS > + depends on BR2_USE_MMU # fork() > + help > + Tinyproxy is a small, efficient HTTP/SSL proxy daemon released > + under the GNU General Public License. Tinyproxy is very > + useful in a small network setting, where a larger proxy would > + be too resource intensive. > + > + https://tinyproxy.github.io > + > +comment "tinyproxy needs a toolchain w/ threads, wchar" > + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR > + depends on BR2_USE_MMU > diff --git a/package/tinyproxy/tinyproxy.hash b/package/tinyproxy/tinyproxy.hash > new file mode 100644 > index 0000000000..2d439de517 > --- /dev/null > +++ b/package/tinyproxy/tinyproxy.hash > @@ -0,0 +1,2 @@ > +# locally computed > +sha256 ff4f3d1331d6d855d8b6ed794c22ab0a4285dd81fe9c98a7aa7ed591248d4ab9 tinyproxy-1.10.0.tar.gz > diff --git a/package/tinyproxy/tinyproxy.mk b/package/tinyproxy/tinyproxy.mk > new file mode 100644 > index 0000000000..3ba3d7f664 > --- /dev/null > +++ b/package/tinyproxy/tinyproxy.mk > @@ -0,0 +1,15 @@ > +################################################################################ > +# > +# tinyproxy > +# > +################################################################################ > + > +TINYPROXY_VERSION = 1.10.0 > +TINYPROXY_SITE = $(call github,tinyproxy,tinyproxy,$(TINYPROXY_VERSION)) > +TINYPROXY_LICENSE = GPL-2.0+ > +TINYPROXY_LICENSE_FILES = COPYING > + > +# building from a git clone > +TINYPROXY_AUTORECONF = YES better: # building from a git clone and patching Makefile.am With this fixed you can add my Reviewed-by: Peter Seiderer Regards, Peter > + > +$(eval $(autotools-package))