diff mbox series

[V2,1/2] dropbear: bump to version 2018.76

Message ID 20180320195649.5309-1-francois.perrad@gadz.org
State Superseded
Headers show
Series [V2,1/2] dropbear: bump to version 2018.76 | expand

Commit Message

Francois Perrad March 20, 2018, 7:56 p.m. UTC
with this new version:
  - "configure --enable-static" should now be used instead of
    "make STATIC=1"
  - any customised options should be put in localoptions.h

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/dropbear/dropbear.hash |  2 +-
 package/dropbear/dropbear.mk   | 24 +++++++++---------------
 2 files changed, 10 insertions(+), 16 deletions(-)

Comments

Baruch Siach March 21, 2018, 5:39 a.m. UTC | #1
Hi Francois,

On Tue, Mar 20, 2018 at 08:56:48PM +0100, Francois Perrad wrote:
> with this new version:
>   - "configure --enable-static" should now be used instead of
>     "make STATIC=1"
>   - any customised options should be put in localoptions.h
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

Reviewed-by: Baruch Siach <baruch@tkos.co.il>

One small nit below.

[...]

>  define DROPBEAR_ENABLE_REVERSE_DNS
> -	$(SED) 's:.*\(#define DO_HOST_LOOKUP\).*:\1:' $(@D)/options.h
> +	echo '#define DO_HOST_LOOKUP 1'         >> $(@D)/localoptions.h
>  endef
>  
>  define DROPBEAR_BUILD_SMALL
> -	$(SED) 's:.*\(#define NO_FAST_EXPTMOD\).*:\1:' $(@D)/options.h
> +	echo '#define DROPBEAR_SMALL_CODE 1'    >> $(@D)/localoptions.h

This is the default. Since we already rely on the default in the 
DO_HOST_LOOKUP case above, maybe we can do the same here.

But that's for another patch, anyway.

>  endef
>  
>  define DROPBEAR_BUILD_FEATURED
> -	$(SED) 's:^#define DROPBEAR_SMALL_CODE::' $(@D)/options.h
> -	$(SED) 's:.*\(#define DROPBEAR_BLOWFISH\).*:\1:' $(@D)/options.h
> -	$(SED) 's:.*\(#define DROPBEAR_TWOFISH128\).*:\1:' $(@D)/options.h
> -	$(SED) 's:.*\(#define DROPBEAR_TWOFISH256\).*:\1:' $(@D)/options.h
> +	echo '#define DROPBEAR_SMALL_CODE 0'    >> $(@D)/localoptions.h
> +	echo '#define DROPBEAR_BLOWFISH 1'      >> $(@D)/localoptions.h
> +	echo '#define DROPBEAR_TWOFISH128 1'    >> $(@D)/localoptions.h
> +	echo '#define DROPBEAR_TWOFISH256 1'    >> $(@D)/localoptions.h
>  endef
>  
>  define DROPBEAR_DISABLE_STANDALONE
> -	$(SED) 's:\(#define NON_INETD_MODE\):/*\1 */:' $(@D)/options.h
> +	echo '#define NON_INETD_MODE 0'         >> $(@D)/localoptions.h
>  endef
>  
>  define DROPBEAR_INSTALL_INIT_SYSTEMD

baruch
Francois Perrad March 21, 2018, 3:42 p.m. UTC | #2
2018-03-21 6:39 GMT+01:00 Baruch Siach <baruch@tkos.co.il>:

> Hi Francois,
>
> On Tue, Mar 20, 2018 at 08:56:48PM +0100, Francois Perrad wrote:
> > with this new version:
> >   - "configure --enable-static" should now be used instead of
> >     "make STATIC=1"
> >   - any customised options should be put in localoptions.h
> >
> > Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
>
> Reviewed-by: Baruch Siach <baruch@tkos.co.il>
>
> One small nit below.
>
> [...]
>
> >  define DROPBEAR_ENABLE_REVERSE_DNS
> > -     $(SED) 's:.*\(#define DO_HOST_LOOKUP\).*:\1:' $(@D)/options.h
> > +     echo '#define DO_HOST_LOOKUP 1'         >> $(@D)/localoptions.h
> >  endef
> >
> >  define DROPBEAR_BUILD_SMALL
> > -     $(SED) 's:.*\(#define NO_FAST_EXPTMOD\).*:\1:' $(@D)/options.h
> > +     echo '#define DROPBEAR_SMALL_CODE 1'    >> $(@D)/localoptions.h
>
> This is the default. Since we already rely on the default in the
> DO_HOST_LOOKUP case above, maybe we can do the same here.
>
>
So, DROPBEAR_BUILD_SMALL could be fully removed.

François



> But that's for another patch, anyway.
>
> >  endef
> >
> >  define DROPBEAR_BUILD_FEATURED
> > -     $(SED) 's:^#define DROPBEAR_SMALL_CODE::' $(@D)/options.h
> > -     $(SED) 's:.*\(#define DROPBEAR_BLOWFISH\).*:\1:' $(@D)/options.h
> > -     $(SED) 's:.*\(#define DROPBEAR_TWOFISH128\).*:\1:' $(@D)/options.h
> > -     $(SED) 's:.*\(#define DROPBEAR_TWOFISH256\).*:\1:' $(@D)/options.h
> > +     echo '#define DROPBEAR_SMALL_CODE 0'    >> $(@D)/localoptions.h
> > +     echo '#define DROPBEAR_BLOWFISH 1'      >> $(@D)/localoptions.h
> > +     echo '#define DROPBEAR_TWOFISH128 1'    >> $(@D)/localoptions.h
> > +     echo '#define DROPBEAR_TWOFISH256 1'    >> $(@D)/localoptions.h
> >  endef
> >
> >  define DROPBEAR_DISABLE_STANDALONE
> > -     $(SED) 's:\(#define NON_INETD_MODE\):/*\1 */:' $(@D)/options.h
> > +     echo '#define NON_INETD_MODE 0'         >> $(@D)/localoptions.h
> >  endef
> >
> >  define DROPBEAR_INSTALL_INIT_SYSTEMD
>
> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open
> Systems
> =}------------------------------------------------ooO--U--
> Ooo------------{=
>    - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-03-21 6:39 GMT+01:00 Baruch Siach <span dir="ltr">&lt;<a href="mailto:baruch@tkos.co.il" target="_blank">baruch@tkos.co.il</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Francois,<br>
<span class="gmail-"><br>
On Tue, Mar 20, 2018 at 08:56:48PM +0100, Francois Perrad wrote:<br>
&gt; with this new version:<br>
&gt;   - &quot;configure --enable-static&quot; should now be used instead of<br>
&gt;     &quot;make STATIC=1&quot;<br>
&gt;   - any customised options should be put in localoptions.h<br>
&gt;<br>
&gt; Signed-off-by: Francois Perrad &lt;<a href="mailto:francois.perrad@gadz.org">francois.perrad@gadz.org</a>&gt;<br>
<br>
</span>Reviewed-by: Baruch Siach &lt;<a href="mailto:baruch@tkos.co.il">baruch@tkos.co.il</a>&gt;<br>
<br>
One small nit below.<br>
<br>
[...]<br>
<span class="gmail-"><br>
&gt;  define DROPBEAR_ENABLE_REVERSE_DNS<br>
&gt; -     $(SED) &#39;s:.*\(#define DO_HOST_LOOKUP\).*:\1:&#39; $(@D)/options.h<br>
&gt; +     echo &#39;#define DO_HOST_LOOKUP 1&#39;         &gt;&gt; $(@D)/localoptions.h<br>
&gt;  endef<br>
&gt;<br>
&gt;  define DROPBEAR_BUILD_SMALL<br>
&gt; -     $(SED) &#39;s:.*\(#define NO_FAST_EXPTMOD\).*:\1:&#39; $(@D)/options.h<br>
&gt; +     echo &#39;#define DROPBEAR_SMALL_CODE 1&#39;    &gt;&gt; $(@D)/localoptions.h<br>
<br>
</span>This is the default. Since we already rely on the default in the<br>
DO_HOST_LOOKUP case above, maybe we can do the same here.<br>
<br></blockquote><div><br></div><div>So, <span class="gmail-">DROPBEAR_BUILD_SMALL could be fully removed.<br><br></span></div><div><span class="gmail-">François<br></span></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
But that&#39;s for another patch, anyway.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
&gt;  endef<br>
&gt;<br>
&gt;  define DROPBEAR_BUILD_FEATURED<br>
&gt; -     $(SED) &#39;s:^#define DROPBEAR_SMALL_CODE::&#39; $(@D)/options.h<br>
&gt; -     $(SED) &#39;s:.*\(#define DROPBEAR_BLOWFISH\).*:\1:&#39; $(@D)/options.h<br>
&gt; -     $(SED) &#39;s:.*\(#define DROPBEAR_TWOFISH128\).*:\1:&#39; $(@D)/options.h<br>
&gt; -     $(SED) &#39;s:.*\(#define DROPBEAR_TWOFISH256\).*:\1:&#39; $(@D)/options.h<br>
&gt; +     echo &#39;#define DROPBEAR_SMALL_CODE 0&#39;    &gt;&gt; $(@D)/localoptions.h<br>
&gt; +     echo &#39;#define DROPBEAR_BLOWFISH 1&#39;      &gt;&gt; $(@D)/localoptions.h<br>
&gt; +     echo &#39;#define DROPBEAR_TWOFISH128 1&#39;    &gt;&gt; $(@D)/localoptions.h<br>
&gt; +     echo &#39;#define DROPBEAR_TWOFISH256 1&#39;    &gt;&gt; $(@D)/localoptions.h<br>
&gt;  endef<br>
&gt;<br>
&gt;  define DROPBEAR_DISABLE_STANDALONE<br>
&gt; -     $(SED) &#39;s:\(#define NON_INETD_MODE\):/*\1 */:&#39; $(@D)/options.h<br>
&gt; +     echo &#39;#define NON_INETD_MODE 0&#39;         &gt;&gt; $(@D)/localoptions.h<br>
&gt;  endef<br>
&gt;<br>
&gt;  define DROPBEAR_INSTALL_INIT_SYSTEMD<br>
<br>
</div></div><span class="gmail-HOEnZb"><font color="#888888">baruch<br>
<br>
--<br>
     <a href="http://baruch.siach.name/blog/" rel="noreferrer" target="_blank">http://baruch.siach.name/blog/</a>                  ~. .~   Tk Open Systems<br>
=}----------------------------<wbr>--------------------ooO--U--<wbr>Ooo------------{=<br>
   - <a href="mailto:baruch@tkos.co.il">baruch@tkos.co.il</a> - tel: +972.52.368.4656, <a href="http://www.tkos.co.il" rel="noreferrer" target="_blank">http://www.tkos.co.il</a> -<br>
______________________________<wbr>_________________<br>
buildroot mailing list<br>
<a href="mailto:buildroot@busybox.net">buildroot@busybox.net</a><br>
<a href="http://lists.busybox.net/mailman/listinfo/buildroot" rel="noreferrer" target="_blank">http://lists.busybox.net/<wbr>mailman/listinfo/buildroot</a><br>
</font></span></blockquote></div><br></div></div>
diff mbox series

Patch

diff --git a/package/dropbear/dropbear.hash b/package/dropbear/dropbear.hash
index 98776e717..ef2011d90 100644
--- a/package/dropbear/dropbear.hash
+++ b/package/dropbear/dropbear.hash
@@ -1,2 +1,2 @@ 
 # From https://matt.ucc.asn.au/dropbear/releases/SHA256SUM.asc
-sha256 6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c dropbear-2017.75.tar.bz2
+sha256 f2fb9167eca8cf93456a5fc1d4faf709902a3ab70dd44e352f3acbc3ffdaea65 dropbear-2018.76.tar.bz2
diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk
index 01a1a07b7..c6716f90d 100644
--- a/package/dropbear/dropbear.mk
+++ b/package/dropbear/dropbear.mk
@@ -4,7 +4,7 @@ 
 #
 ################################################################################
 
-DROPBEAR_VERSION = 2017.75
+DROPBEAR_VERSION = 2018.76
 DROPBEAR_SITE = https://matt.ucc.asn.au/dropbear/releases
 DROPBEAR_SOURCE = dropbear-$(DROPBEAR_VERSION).tar.bz2
 DROPBEAR_LICENSE = MIT, BSD-2-Clause-like, BSD-2-Clause
@@ -23,32 +23,26 @@  DROPBEAR_MAKE = \
 	PROGRAMS="$(DROPBEAR_PROGRAMS)"
 
 ifeq ($(BR2_STATIC_LIBS),y)
-DROPBEAR_MAKE += STATIC=1
+DROPBEAR_CONF_OPTS += --enable-static
 endif
 
-define DROPBEAR_FIX_XAUTH
-	$(SED) 's,^#define XAUTH_COMMAND.*/xauth,#define XAUTH_COMMAND "/usr/bin/xauth,g' $(@D)/options.h
-endef
-
-DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_FIX_XAUTH
-
 define DROPBEAR_ENABLE_REVERSE_DNS
-	$(SED) 's:.*\(#define DO_HOST_LOOKUP\).*:\1:' $(@D)/options.h
+	echo '#define DO_HOST_LOOKUP 1'         >> $(@D)/localoptions.h
 endef
 
 define DROPBEAR_BUILD_SMALL
-	$(SED) 's:.*\(#define NO_FAST_EXPTMOD\).*:\1:' $(@D)/options.h
+	echo '#define DROPBEAR_SMALL_CODE 1'    >> $(@D)/localoptions.h
 endef
 
 define DROPBEAR_BUILD_FEATURED
-	$(SED) 's:^#define DROPBEAR_SMALL_CODE::' $(@D)/options.h
-	$(SED) 's:.*\(#define DROPBEAR_BLOWFISH\).*:\1:' $(@D)/options.h
-	$(SED) 's:.*\(#define DROPBEAR_TWOFISH128\).*:\1:' $(@D)/options.h
-	$(SED) 's:.*\(#define DROPBEAR_TWOFISH256\).*:\1:' $(@D)/options.h
+	echo '#define DROPBEAR_SMALL_CODE 0'    >> $(@D)/localoptions.h
+	echo '#define DROPBEAR_BLOWFISH 1'      >> $(@D)/localoptions.h
+	echo '#define DROPBEAR_TWOFISH128 1'    >> $(@D)/localoptions.h
+	echo '#define DROPBEAR_TWOFISH256 1'    >> $(@D)/localoptions.h
 endef
 
 define DROPBEAR_DISABLE_STANDALONE
-	$(SED) 's:\(#define NON_INETD_MODE\):/*\1 */:' $(@D)/options.h
+	echo '#define NON_INETD_MODE 0'         >> $(@D)/localoptions.h
 endef
 
 define DROPBEAR_INSTALL_INIT_SYSTEMD