diff mbox series

[31/49,v2] package/corosync: new package

Message ID 752e6d4352e6b6254704028375d0a356f337bacc.1504993178.git.yann.morin.1998@free.fr
State Changes Requested
Headers show
Series [01/49,v2] package/asterisk: new package | expand

Commit Message

Yann E. MORIN Sept. 9, 2017, 9:39 p.m. UTC
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in              |  1 +
 package/corosync/Config.in     | 20 ++++++++++++++++++
 package/corosync/corosync.hash |  2 ++
 package/corosync/corosync.mk   | 47 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 70 insertions(+)
 create mode 100644 package/corosync/Config.in
 create mode 100644 package/corosync/corosync.hash
 create mode 100644 package/corosync/corosync.mk

Comments

Arnout Vandecappelle Sept. 23, 2017, 4:58 p.m. UTC | #1
On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  package/Config.in              |  1 +
>  package/corosync/Config.in     | 20 ++++++++++++++++++
>  package/corosync/corosync.hash |  2 ++
>  package/corosync/corosync.mk   | 47 ++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 70 insertions(+)
>  create mode 100644 package/corosync/Config.in
>  create mode 100644 package/corosync/corosync.hash
>  create mode 100644 package/corosync/corosync.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index a6c63a0ad9..104acbb3ad 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1405,6 +1405,7 @@ menu "Other"
>  	source "package/boost/Config.in"
>  	source "package/clapack/Config.in"
>  	source "package/classpath/Config.in"
> +	source "package/corosync/Config.in"
>  	source "package/cppcms/Config.in"
>  	source "package/cracklib/Config.in"
>  	source "package/dawgdic/Config.in"
> diff --git a/package/corosync/Config.in b/package/corosync/Config.in
> new file mode 100644
> index 0000000000..1dda488109
> --- /dev/null
> +++ b/package/corosync/Config.in
> @@ -0,0 +1,20 @@
> +config BR2_PACKAGE_COROSYNC
> +	bool "corosync"
> +	depends on BR2_USE_MMU # fork()
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnsp

 Put arch deps in the beginning.

> +	depends on !BR2_STATIC_LIBS # libnss
> +	select BR2_PACKAGE_LIBNSS
> +	select BR2_PACKAGE_LIBQB
> +	select BR2_PACKAGE_ZLIB
> +	help
> +	  The Corosync Cluster Engine is a Group Communication System
> +	  with additional features for implementing high availability
> +	  within applications.
> +
> +	  https://corosync.github.io/corosync/
> +
> +comment "corosync needs a toolchain w/ threads, dunamic library"

 dynamic

> +	depends on BR2_USE_MMU
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/corosync/corosync.hash b/package/corosync/corosync.hash
> new file mode 100644
> index 0000000000..5c009dee19
> --- /dev/null
> +++ b/package/corosync/corosync.hash
> @@ -0,0 +1,2 @@
> +# sha256 locally computed
> +sha256  0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63  corosync-v2.4.2.tar.gz
> diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
> new file mode 100644
> index 0000000000..865f5e0f8d
> --- /dev/null
> +++ b/package/corosync/corosync.mk
> @@ -0,0 +1,47 @@
> +################################################################################
> +#
> +# corosync
> +#
> +################################################################################
> +
> +COROSYNC_VERSION = v2.4.2
> +COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))

 Anything wrong with the official
http://build.clusterlabs.org/corosync/releases/corosync-2.4.2.tar.gz download
location?

> +
> +COROSYNC_LICENSE = BSD-3c
> +COROSYNC_LICENSE_FILES = LICENSE
> +
> +COROSYNC_DEPENDENCIES = libnss libqb zlib
> +COROSYNC_AUTORECONF = YES
> +COROSYNC_INSTALL_STAGING = YES
> +
> +define COROSYNC_M4
> +	$(INSTALL) -d -m 0755 $(@D)/m4
> +endef
> +COROSYNC_POST_EXTRACT_HOOKS += COROSYNC_M4
> +
> +# Don't build HTML manpages
> +COROSYNC_CONF_ENV = ac_cv_prog_GROFF=
> +
> +COROSYNC_CONF_OPTS = \
> +	--disable-fatal-warnings \
> +	$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
> +	--enable-secure-build \
> +	--disable-user-flags \
> +	--disable-coverage \
> +	--disable-small-memory-footprint \
> +	--disable-dbus \
> +	--disable-testagents \
> +	--disable-rdma \
> +	--disable-monitoring \
> +	--disable-watchdog \
> +	--disable-augeas \
> +	--disable-systemd \

 Hm, below you add a --enable-systemd...

> +	--disable-upstart \
> +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \

 No dependency on systemd needed? It just installs units?

 Regards,
 Arnout

> +	--disable-upstart \
> +	--disable-snmp \
> +	--disable-xmlconf \
> +	--disable-qdevices \
> +	--disable-qnet
> +
> +$(eval $(autotools-package))
>
Yann E. MORIN Sept. 24, 2017, 8:52 p.m. UTC | #2
Arnout, All,

On 2017-09-23 18:58 +0200, Arnout Vandecappelle spake thusly:
> On 09-09-17 23:39, Yann E. MORIN wrote:
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[--SNIP--]
> > diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
> > new file mode 100644
> > index 0000000000..865f5e0f8d
> > --- /dev/null
> > +++ b/package/corosync/corosync.mk
> > @@ -0,0 +1,47 @@
> > +################################################################################
> > +#
> > +# corosync
> > +#
> > +################################################################################
> > +
> > +COROSYNC_VERSION = v2.4.2
> > +COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))
> 
>  Anything wrong with the official
> http://build.clusterlabs.org/corosync/releases/corosync-2.4.2.tar.gz download
> location?

No thing wrong I guess. I can't remember why I went for the github
repository... Fixed.

[--SNIP--]
> > +	--disable-systemd \
>  Hm, below you add a --enable-systemd...

Arg, forgot to remove...

> > +	--disable-upstart \
> > +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
>  No dependency on systemd needed? It just installs units?

Yes, it only installs unit files.

Regards,
Yann E. MORIN.
Arnout Vandecappelle Sept. 25, 2017, 7:22 a.m. UTC | #3
On 24-09-17 22:52, Yann E. MORIN wrote:
>>> +	--disable-upstart \
>>> +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
>>  No dependency on systemd needed? It just installs units?
> Yes, it only installs unit files.

 Could you mention that in the commit message? Adding a comment for it is
probably overkill, but it's nice to have a record somewhere of such things.

 Regards,
 Arnout
diff mbox series

Patch

diff --git a/package/Config.in b/package/Config.in
index a6c63a0ad9..104acbb3ad 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1405,6 +1405,7 @@  menu "Other"
 	source "package/boost/Config.in"
 	source "package/clapack/Config.in"
 	source "package/classpath/Config.in"
+	source "package/corosync/Config.in"
 	source "package/cppcms/Config.in"
 	source "package/cracklib/Config.in"
 	source "package/dawgdic/Config.in"
diff --git a/package/corosync/Config.in b/package/corosync/Config.in
new file mode 100644
index 0000000000..1dda488109
--- /dev/null
+++ b/package/corosync/Config.in
@@ -0,0 +1,20 @@ 
+config BR2_PACKAGE_COROSYNC
+	bool "corosync"
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnsp
+	depends on !BR2_STATIC_LIBS # libnss
+	select BR2_PACKAGE_LIBNSS
+	select BR2_PACKAGE_LIBQB
+	select BR2_PACKAGE_ZLIB
+	help
+	  The Corosync Cluster Engine is a Group Communication System
+	  with additional features for implementing high availability
+	  within applications.
+
+	  https://corosync.github.io/corosync/
+
+comment "corosync needs a toolchain w/ threads, dunamic library"
+	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/corosync/corosync.hash b/package/corosync/corosync.hash
new file mode 100644
index 0000000000..5c009dee19
--- /dev/null
+++ b/package/corosync/corosync.hash
@@ -0,0 +1,2 @@ 
+# sha256 locally computed
+sha256  0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63  corosync-v2.4.2.tar.gz
diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
new file mode 100644
index 0000000000..865f5e0f8d
--- /dev/null
+++ b/package/corosync/corosync.mk
@@ -0,0 +1,47 @@ 
+################################################################################
+#
+# corosync
+#
+################################################################################
+
+COROSYNC_VERSION = v2.4.2
+COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))
+
+COROSYNC_LICENSE = BSD-3c
+COROSYNC_LICENSE_FILES = LICENSE
+
+COROSYNC_DEPENDENCIES = libnss libqb zlib
+COROSYNC_AUTORECONF = YES
+COROSYNC_INSTALL_STAGING = YES
+
+define COROSYNC_M4
+	$(INSTALL) -d -m 0755 $(@D)/m4
+endef
+COROSYNC_POST_EXTRACT_HOOKS += COROSYNC_M4
+
+# Don't build HTML manpages
+COROSYNC_CONF_ENV = ac_cv_prog_GROFF=
+
+COROSYNC_CONF_OPTS = \
+	--disable-fatal-warnings \
+	$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
+	--enable-secure-build \
+	--disable-user-flags \
+	--disable-coverage \
+	--disable-small-memory-footprint \
+	--disable-dbus \
+	--disable-testagents \
+	--disable-rdma \
+	--disable-monitoring \
+	--disable-watchdog \
+	--disable-augeas \
+	--disable-systemd \
+	--disable-upstart \
+	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
+	--disable-upstart \
+	--disable-snmp \
+	--disable-xmlconf \
+	--disable-qdevices \
+	--disable-qnet
+
+$(eval $(autotools-package))