All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH for/next] krb5: new package
@ 2016-11-08  0:50 Arnout Vandecappelle
  2016-11-09  0:07 ` Daniel Price
  2016-11-15 23:04 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-11-08  0:50 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Daniel Price <daniel.price@gmail.com>
Cc: Charles Hardin <ckhardin@exablox.com>
---
Note: I do NOT want to be added to DEVELOPERS for this package, it's
just something I cobbled together quickly.
---
 package/Config.in      |  1 +
 package/krb5/Config.in | 13 ++++++++++++
 package/krb5/krb5.hash |  2 ++
 package/krb5/krb5.mk   | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 71 insertions(+)
 create mode 100644 package/krb5/Config.in
 create mode 100644 package/krb5/krb5.hash
 create mode 100644 package/krb5/krb5.mk

diff --git a/package/Config.in b/package/Config.in
index 0d449dc..83ce629 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1189,6 +1189,7 @@ menu "Networking"
 	source "package/gupnp-dlna/Config.in"
 	source "package/ibrcommon/Config.in"
 	source "package/ibrdtn/Config.in"
+	source "package/krb5/Config.in"
 	source "package/libcgi/Config.in"
 	source "package/libcgicc/Config.in"
 	source "package/libcoap/Config.in"
diff --git a/package/krb5/Config.in b/package/krb5/Config.in
new file mode 100644
index 0000000..43fd799
--- /dev/null
+++ b/package/krb5/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_KRB5
+	bool "krb5"
+	depends on BR2_USE_MMU # fork()
+	help
+	  KRB5 is the MIT Kerberos Version 5 implementation
+
+	  Kerberos is a network authentication protocol. It is designed
+	  to provide strong authentication for client/server
+	  applications by using secret-key cryptography. A free
+	  implementation of this protocol is available from the
+	  Massachusetts Institute of Technology.
+
+	  http://web.mit.edu/Kerberos
diff --git a/package/krb5/krb5.hash b/package/krb5/krb5.hash
new file mode 100644
index 0000000..22cd970
--- /dev/null
+++ b/package/krb5/krb5.hash
@@ -0,0 +1,2 @@
+# Locally calculated after checking pgp signature from https://web.mit.edu/kerberos/krb5-1.14/krb5-1.14.4.sig
+sha256  03a61a4280c9161771fb39019085dbe6a57aa602080515ff93b43cd6137e0b95  krb5-1.14.4.tar.gz
diff --git a/package/krb5/krb5.mk b/package/krb5/krb5.mk
new file mode 100644
index 0000000..59603c5
--- /dev/null
+++ b/package/krb5/krb5.mk
@@ -0,0 +1,55 @@
+################################################################################
+#
+# krb5
+#
+################################################################################
+
+KRB5_VERSION_MAJOR = 1.14
+KRB5_VERSION = $(KRB5_VERSION_MAJOR).4
+KRB5_SITE = http://web.mit.edu/kerberos/dist/krb5/$(KRB5_VERSION_MAJOR)
+KRB5_LICENSE = BSD-2c, others
+KRB5_LICENSE_FILES = NOTICE
+KRB5_SUBDIR = src
+KRB5_INSTALL_STAGING = YES
+
+KRB5_CONF_ENV = \
+	krb5_cv_attr_constructor_destructor=yes,yes \
+	ac_cv_func_regcomp=yes \
+	krb5_cv_sys_rcdir=/tmp \
+	ac_cv_printf_positional=yes \
+	WARN_CFLAGS='-Wall'
+
+KRB5_CONF_OPTS = \
+	--without-tcl \
+	--without-hesiod \
+	--without-ldap \
+	--without-libedit \
+	--without-libreadline
+
+# No buildroot packages exist for these so use the bundled ones.
+KRB5_CONF_OPTS += \
+	--without-system-libverto \
+	--without-system-ss \
+	--without-system-et
+
+# Buildroot's berkeleydb does not provide API 1.85
+KRB5_CONF_OPTS += --without-system-db
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+KRB5_CONF_OPTS += --enable-thread-support
+else
+KRB5_CONF_OPTS += --disable-thread-support
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+KRB5_CONF_OPTS += --with-crypto-impl=openssl
+KRB5_DEPENDENCIES += openssl
+else ifeq ($(BR2_PACKAGE_LIBNSS),y)
+KRB5_CONF_OPTS += --with-crypto-impl=nss
+KRB5_DEPENDENCIES += libnss
+else
+KRB5_CONF_OPTS += --with-crypto-impl=builtin
+endif
+
+
+$(eval $(autotools-package))
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH for/next] krb5: new package
  2016-11-08  0:50 [Buildroot] [PATCH for/next] krb5: new package Arnout Vandecappelle
@ 2016-11-09  0:07 ` Daniel Price
  2016-11-15 23:04 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Price @ 2016-11-09  0:07 UTC (permalink / raw)
  To: buildroot

Thanks!  Based on the earlier recipe, we have krb5 and pam-krb5 at least
compiling.  We will get it installed and work on some testing.  I'll see if
I can get us rebased onto this patch.

Thank-you to the community.  I really appreciate the help.

     -dp

On Mon, Nov 7, 2016 at 4:50 PM, Arnout Vandecappelle (Essensium/Mind) <
arnout@mind.be> wrote:

> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Cc: Daniel Price <daniel.price@gmail.com>
> Cc: Charles Hardin <ckhardin@exablox.com>
> ---
> Note: I do NOT want to be added to DEVELOPERS for this package, it's
> just something I cobbled together quickly.
> ---
>  package/Config.in      |  1 +
>  package/krb5/Config.in | 13 ++++++++++++
>  package/krb5/krb5.hash |  2 ++
>  package/krb5/krb5.mk   | 55 ++++++++++++++++++++++++++++++
> ++++++++++++++++++++
>  4 files changed, 71 insertions(+)
>  create mode 100644 package/krb5/Config.in
>  create mode 100644 package/krb5/krb5.hash
>  create mode 100644 package/krb5/krb5.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 0d449dc..83ce629 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1189,6 +1189,7 @@ menu "Networking"
>         source "package/gupnp-dlna/Config.in"
>         source "package/ibrcommon/Config.in"
>         source "package/ibrdtn/Config.in"
> +       source "package/krb5/Config.in"
>         source "package/libcgi/Config.in"
>         source "package/libcgicc/Config.in"
>         source "package/libcoap/Config.in"
> diff --git a/package/krb5/Config.in b/package/krb5/Config.in
> new file mode 100644
> index 0000000..43fd799
> --- /dev/null
> +++ b/package/krb5/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_KRB5
> +       bool "krb5"
> +       depends on BR2_USE_MMU # fork()
> +       help
> +         KRB5 is the MIT Kerberos Version 5 implementation
> +
> +         Kerberos is a network authentication protocol. It is designed
> +         to provide strong authentication for client/server
> +         applications by using secret-key cryptography. A free
> +         implementation of this protocol is available from the
> +         Massachusetts Institute of Technology.
> +
> +         http://web.mit.edu/Kerberos
> diff --git a/package/krb5/krb5.hash b/package/krb5/krb5.hash
> new file mode 100644
> index 0000000..22cd970
> --- /dev/null
> +++ b/package/krb5/krb5.hash
> @@ -0,0 +1,2 @@
> +# Locally calculated after checking pgp signature from
> https://web.mit.edu/kerberos/krb5-1.14/krb5-1.14.4.sig
> +sha256  03a61a4280c9161771fb39019085dbe6a57aa602080515ff93b43cd6137e0b95
> krb5-1.14.4.tar.gz
> diff --git a/package/krb5/krb5.mk b/package/krb5/krb5.mk
> new file mode 100644
> index 0000000..59603c5
> --- /dev/null
> +++ b/package/krb5/krb5.mk
> @@ -0,0 +1,55 @@
> +###########################################################
> #####################
> +#
> +# krb5
> +#
> +###########################################################
> #####################
> +
> +KRB5_VERSION_MAJOR = 1.14
> +KRB5_VERSION = $(KRB5_VERSION_MAJOR).4
> +KRB5_SITE = http://web.mit.edu/kerberos/dist/krb5/$(KRB5_VERSION_MAJOR)
> +KRB5_LICENSE = BSD-2c, others
> +KRB5_LICENSE_FILES = NOTICE
> +KRB5_SUBDIR = src
> +KRB5_INSTALL_STAGING = YES
> +
> +KRB5_CONF_ENV = \
> +       krb5_cv_attr_constructor_destructor=yes,yes \
> +       ac_cv_func_regcomp=yes \
> +       krb5_cv_sys_rcdir=/tmp \
> +       ac_cv_printf_positional=yes \
> +       WARN_CFLAGS='-Wall'
> +
> +KRB5_CONF_OPTS = \
> +       --without-tcl \
> +       --without-hesiod \
> +       --without-ldap \
> +       --without-libedit \
> +       --without-libreadline
> +
> +# No buildroot packages exist for these so use the bundled ones.
> +KRB5_CONF_OPTS += \
> +       --without-system-libverto \
> +       --without-system-ss \
> +       --without-system-et
> +
> +# Buildroot's berkeleydb does not provide API 1.85
> +KRB5_CONF_OPTS += --without-system-db
> +
> +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
> +KRB5_CONF_OPTS += --enable-thread-support
> +else
> +KRB5_CONF_OPTS += --disable-thread-support
> +endif
> +
> +ifeq ($(BR2_PACKAGE_OPENSSL),y)
> +KRB5_CONF_OPTS += --with-crypto-impl=openssl
> +KRB5_DEPENDENCIES += openssl
> +else ifeq ($(BR2_PACKAGE_LIBNSS),y)
> +KRB5_CONF_OPTS += --with-crypto-impl=nss
> +KRB5_DEPENDENCIES += libnss
> +else
> +KRB5_CONF_OPTS += --with-crypto-impl=builtin
> +endif
> +
> +
> +$(eval $(autotools-package))
> --
> 2.10.2
>
>


-- 
Daniel.Price at gmail.com; Twitter: @danielbprice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161108/b474d382/attachment-0001.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH for/next] krb5: new package
  2016-11-08  0:50 [Buildroot] [PATCH for/next] krb5: new package Arnout Vandecappelle
  2016-11-09  0:07 ` Daniel Price
@ 2016-11-15 23:04 ` Thomas Petazzoni
  2016-11-16  8:45   ` Arnout Vandecappelle
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2016-11-15 23:04 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 8 Nov 2016 01:50:32 +0100, Arnout Vandecappelle
(Essensium/Mind) wrote:

> +# No buildroot packages exist for these so use the bundled ones.
> +KRB5_CONF_OPTS += \
> +	--without-system-libverto \
> +	--without-system-ss \
> +	--without-system-et

We generally don't like to use bundled libraries. Are those libraries
likely to be used by other packages? Or are they so specific to krb
stuff that it isn't worth having separate packages for them?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH for/next] krb5: new package
  2016-11-15 23:04 ` Thomas Petazzoni
@ 2016-11-16  8:45   ` Arnout Vandecappelle
  2016-11-16 22:31     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-11-16  8:45 UTC (permalink / raw)
  To: buildroot



On 16-11-16 00:04, Thomas Petazzoni wrote:
> Hello,
> 
> On Tue, 8 Nov 2016 01:50:32 +0100, Arnout Vandecappelle
> (Essensium/Mind) wrote:
> 
>> +# No buildroot packages exist for these so use the bundled ones.
>> +KRB5_CONF_OPTS += \
>> +	--without-system-libverto \
>> +	--without-system-ss \
>> +	--without-system-et
> 
> We generally don't like to use bundled libraries. Are those libraries
> likely to be used by other packages? Or are they so specific to krb
> stuff that it isn't worth having separate packages for them?

 You are so right. libss is part of e2fsprogs, and libverto makes sense
stand-alone. I can't find a libet in Debian, so I guess it doesn't make much
sense on its own.

 This was anyway just a bit of help for Charles and Daniel, so it may take some
time before I respin...

 Note that the KRB5_LICENSE is also a bit tricky, there is in fact a very long
list of licenses that apply to different parts and I couldn't make a lot of
sense of it...

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH for/next] krb5: new package
  2016-11-16  8:45   ` Arnout Vandecappelle
@ 2016-11-16 22:31     ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-11-16 22:31 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 16 Nov 2016 09:45:12 +0100, Arnout Vandecappelle wrote:

> > We generally don't like to use bundled libraries. Are those libraries
> > likely to be used by other packages? Or are they so specific to krb
> > stuff that it isn't worth having separate packages for them?  
> 
>  You are so right. libss is part of e2fsprogs, and libverto makes sense
> stand-alone. I can't find a libet in Debian, so I guess it doesn't make much
> sense on its own.
> 
>  This was anyway just a bit of help for Charles and Daniel, so it may take some
> time before I respin...

OK, so I'm marking "Changes Requested" in the mean time. Charles, if
you could take over this patch and do the suggested improvements, I
guess Arnout would be more than happy :)

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-16 22:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08  0:50 [Buildroot] [PATCH for/next] krb5: new package Arnout Vandecappelle
2016-11-09  0:07 ` Daniel Price
2016-11-15 23:04 ` Thomas Petazzoni
2016-11-16  8:45   ` Arnout Vandecappelle
2016-11-16 22:31     ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.