Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
@ 2019-09-01 21:13 ` voidlinux-github
  2019-09-01 21:24 ` voidlinux-github
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-01 21:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

There is an updated pull request by jirib against master on the void-packages repository

https://github.com/jirib/void-packages corosync
https://github.com/void-linux/void-packages/pull/14061

[WIP] New package: corosync-3.0.2
The Corosync Cluster Engine is a Group Communication System with additional features for implementing high availability within applications.

Needed for future pacemaker package.

A patch file from https://github.com/void-linux/void-packages/pull/14061.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-corosync-14061.patch --]
[-- Type: text/x-diff, Size: 5087 bytes --]

From cc009a4f6d46c8b102cd891c3a2d6450322c51e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= <jirib79@gmail.com>
Date: Fri, 30 Aug 2019 02:23:31 +0200
Subject: [PATCH] New package: corosync-3.0.2

---
 common/shlibs                        |  7 ++++
 srcpkgs/corosync/INSTALL.msg         |  6 ++++
 srcpkgs/corosync/files/corosync.conf | 24 +++++++++++++
 srcpkgs/corosync/files/corosync/run  |  3 ++
 srcpkgs/corosync/template            | 51 ++++++++++++++++++++++++++++
 srcpkgs/corosynclib                  |  1 +
 srcpkgs/corosynclib-devel            |  1 +
 7 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/corosync/INSTALL.msg
 create mode 100644 srcpkgs/corosync/files/corosync.conf
 create mode 100644 srcpkgs/corosync/files/corosync/run
 create mode 100644 srcpkgs/corosync/template
 create mode 120000 srcpkgs/corosynclib
 create mode 120000 srcpkgs/corosynclib-devel

diff --git a/common/shlibs b/common/shlibs
index 655134c53e5..f3df361eedd 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3502,3 +3502,10 @@ liblog4c.so.3 log4c-1.2.4_1
 libqb.so.0 libqb-1.0.5_1
 libusbguard.so.0 usbguard-0.7.5_1
 libknet.so.1 libknet1-1.11_1
+libsam.so.4 corosynclib-3.0.2_1
+libcfg.so.7 corosynclib-3.0.2_1
+libcpg.so.4 corosynclib-3.0.2_1
+libcmap.so.4 corosynclib-3.0.2_1
+libvotequorum.so.8 corosynclib-3.0.2_1
+libquorum.so.5 corosynclib-3.0.2_1
+libcorosync_common.so.4 corosynclib-3.0.2_1
diff --git a/srcpkgs/corosync/INSTALL.msg b/srcpkgs/corosync/INSTALL.msg
new file mode 100644
index 00000000000..16b45796e7b
--- /dev/null
+++ b/srcpkgs/corosync/INSTALL.msg
@@ -0,0 +1,6 @@
+An example configuration file was placed into /etc/corosync/ for test purpose,
+with this configuration Corosync runs a 'voidlinux' cluster only locally.
+
+For real multi-node setup, Corosync uses UDP transport between ports 5404, 5405
+and 5406 for communication. If you are running a firewall, ensure that
+communication on those ports are allowed between the servers.
diff --git a/srcpkgs/corosync/files/corosync.conf b/srcpkgs/corosync/files/corosync.conf
new file mode 100644
index 00000000000..2eaed8ba7ef
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync.conf
@@ -0,0 +1,24 @@
+# Please read the corosync.conf.5 manual page
+totem {
+        version: 2
+        cluster_name: voidlinux
+
+}
+
+logging {
+        to_stderr: yes
+        to_logfile: yes
+        logfile: /var/log/corosync/corosync.log
+}
+
+quorum {
+        provider: corosync_votequorum
+}
+
+nodelist {
+        node {
+                name: node1
+                nodeid: 1
+                ring0_addr: 127.0.0.1
+        }
+}
diff --git a/srcpkgs/corosync/files/corosync/run b/srcpkgs/corosync/files/corosync/run
new file mode 100644
index 00000000000..5b597145ee4
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec /usr/bin/corosync -f ${OPTS:-}
diff --git a/srcpkgs/corosync/template b/srcpkgs/corosync/template
new file mode 100644
index 00000000000..a88efb2b62a
--- /dev/null
+++ b/srcpkgs/corosync/template
@@ -0,0 +1,51 @@
+# Template file for 'corosync'
+pkgname=corosync
+version=3.0.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --enable-monitoring --enable-snmp
+ --enable-xmlconf --with-logdir=/var/log/corosync"
+make_dirs="/etc/corosync/uidgid.d 0755 root root
+ /etc/corosync/service.d 0755 root root
+ /var/log/corosync 0755 root root
+ /var/lib/corosync 0755 root root"
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="libknet1-devel libqb-devel libstatgrab-devel libtool net-snmp-devel nss-devel"
+short_desc="Cluster engine daemon and utilities"
+maintainer="Jiří Bělka <jirib79@gmail.com>"
+license="BSD-2-Clause"
+homepage="http://corosync.github.io/corosync"
+distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=f237e3ddac41ec583cac9610a9ba9191592f09d3ed70bc687db7b60e3d2e26f5
+
+pre_configure() {
+	autoreconf -vi
+}
+
+post_install() {
+	rm -f ${DESTDIR}/etc/corosync/corosync.conf.example
+	rm -rf ${DESTDIR}/etc/init.d
+	rm -rf ${DESTDIR}/usr/lib/corosync/*.la
+	vinstall ${FILESDIR}/corosync.conf 644 etc/corosync
+	vlicense LICENSE
+	vsv corosync
+}
+
+corosynclib_package() {
+	short_desc="Corosync libraries"
+	pkg_install() {
+		vmove "usr/lib/*.so*"
+		vlicense LICENSE
+	}
+}
+
+corosynclib-devel_package() {
+	depends="corosynclib>=${version}_${revision}"
+	short_desc="Corosync libraries (development files)"
+	pkg_install() {
+		vmove usr/include/corosync
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/pkgconfig"
+		vmove usr/share/man/man3
+	}
+}
diff --git a/srcpkgs/corosynclib b/srcpkgs/corosynclib
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
diff --git a/srcpkgs/corosynclib-devel b/srcpkgs/corosynclib-devel
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib-devel
@@ -0,0 +1 @@
+corosync
\ No newline at end of file

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

* Re: [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
  2019-09-01 21:13 ` [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2 voidlinux-github
  2019-09-01 21:24 ` voidlinux-github
@ 2019-09-01 21:24 ` voidlinux-github
  2019-09-01 21:54 ` voidlinux-github
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-01 21:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

There is an updated pull request by jirib against master on the void-packages repository

https://github.com/jirib/void-packages corosync
https://github.com/void-linux/void-packages/pull/14061

[WIP] New package: corosync-3.0.2
The Corosync Cluster Engine is a Group Communication System with additional features for implementing high availability within applications.

Needed for future pacemaker package.

A patch file from https://github.com/void-linux/void-packages/pull/14061.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-corosync-14061.patch --]
[-- Type: text/x-diff, Size: 5241 bytes --]

From f108a62e5936ae36c5238f8a1236594b68493f88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= <jirib79@gmail.com>
Date: Fri, 30 Aug 2019 02:23:31 +0200
Subject: [PATCH] New package: corosync-3.0.2

---
 common/shlibs                        |  7 ++++
 srcpkgs/corosync/INSTALL.msg         |  6 +++
 srcpkgs/corosync/files/corosync.conf | 24 ++++++++++++
 srcpkgs/corosync/files/corosync/run  |  3 ++
 srcpkgs/corosync/template            | 57 ++++++++++++++++++++++++++++
 srcpkgs/corosynclib                  |  1 +
 srcpkgs/corosynclib-devel            |  1 +
 7 files changed, 99 insertions(+)
 create mode 100644 srcpkgs/corosync/INSTALL.msg
 create mode 100644 srcpkgs/corosync/files/corosync.conf
 create mode 100644 srcpkgs/corosync/files/corosync/run
 create mode 100644 srcpkgs/corosync/template
 create mode 120000 srcpkgs/corosynclib
 create mode 120000 srcpkgs/corosynclib-devel

diff --git a/common/shlibs b/common/shlibs
index 655134c53e5..f3df361eedd 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3502,3 +3502,10 @@ liblog4c.so.3 log4c-1.2.4_1
 libqb.so.0 libqb-1.0.5_1
 libusbguard.so.0 usbguard-0.7.5_1
 libknet.so.1 libknet1-1.11_1
+libsam.so.4 corosynclib-3.0.2_1
+libcfg.so.7 corosynclib-3.0.2_1
+libcpg.so.4 corosynclib-3.0.2_1
+libcmap.so.4 corosynclib-3.0.2_1
+libvotequorum.so.8 corosynclib-3.0.2_1
+libquorum.so.5 corosynclib-3.0.2_1
+libcorosync_common.so.4 corosynclib-3.0.2_1
diff --git a/srcpkgs/corosync/INSTALL.msg b/srcpkgs/corosync/INSTALL.msg
new file mode 100644
index 00000000000..16b45796e7b
--- /dev/null
+++ b/srcpkgs/corosync/INSTALL.msg
@@ -0,0 +1,6 @@
+An example configuration file was placed into /etc/corosync/ for test purpose,
+with this configuration Corosync runs a 'voidlinux' cluster only locally.
+
+For real multi-node setup, Corosync uses UDP transport between ports 5404, 5405
+and 5406 for communication. If you are running a firewall, ensure that
+communication on those ports are allowed between the servers.
diff --git a/srcpkgs/corosync/files/corosync.conf b/srcpkgs/corosync/files/corosync.conf
new file mode 100644
index 00000000000..2eaed8ba7ef
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync.conf
@@ -0,0 +1,24 @@
+# Please read the corosync.conf.5 manual page
+totem {
+        version: 2
+        cluster_name: voidlinux
+
+}
+
+logging {
+        to_stderr: yes
+        to_logfile: yes
+        logfile: /var/log/corosync/corosync.log
+}
+
+quorum {
+        provider: corosync_votequorum
+}
+
+nodelist {
+        node {
+                name: node1
+                nodeid: 1
+                ring0_addr: 127.0.0.1
+        }
+}
diff --git a/srcpkgs/corosync/files/corosync/run b/srcpkgs/corosync/files/corosync/run
new file mode 100644
index 00000000000..5b597145ee4
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec /usr/bin/corosync -f ${OPTS:-}
diff --git a/srcpkgs/corosync/template b/srcpkgs/corosync/template
new file mode 100644
index 00000000000..8df9e202c46
--- /dev/null
+++ b/srcpkgs/corosync/template
@@ -0,0 +1,57 @@
+# Template file for 'corosync'
+pkgname=corosync
+version=3.0.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --enable-monitoring --enable-snmp
+ --enable-xmlconf --with-logdir=/var/log/corosync"
+make_dirs="/etc/corosync/uidgid.d 0755 root root
+ /etc/corosync/service.d 0755 root root
+ /var/log/corosync 0755 root root
+ /var/lib/corosync 0755 root root"
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="libqb-devel libstatgrab-devel libtool net-snmp-devel nss-devel"
+short_desc="Cluster engine daemon and utilities"
+maintainer="Jiří Bělka <jirib79@gmail.com>"
+license="BSD-2-Clause"
+homepage="http://corosync.github.io/corosync"
+distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=f237e3ddac41ec583cac9610a9ba9191592f09d3ed70bc687db7b60e3d2e26f5
+
+# libknet1 is default transport but does not work with musl now
+case "$XBPS_TARGET_MACHINE" in
+        *-musl) :;;
+        *) makedepends+=" libknet1-devel";;
+esac
+
+pre_configure() {
+	autoreconf -vi
+}
+
+post_install() {
+	rm -f ${DESTDIR}/etc/corosync/corosync.conf.example
+	rm -rf ${DESTDIR}/etc/init.d
+	rm -rf ${DESTDIR}/usr/lib/corosync/*.la
+	vinstall ${FILESDIR}/corosync.conf 644 etc/corosync
+	vlicense LICENSE
+	vsv corosync
+}
+
+corosynclib_package() {
+	short_desc="Corosync libraries"
+	pkg_install() {
+		vmove "usr/lib/*.so*"
+		vlicense LICENSE
+	}
+}
+
+corosynclib-devel_package() {
+	depends="corosynclib>=${version}_${revision}"
+	short_desc="Corosync libraries (development files)"
+	pkg_install() {
+		vmove usr/include/corosync
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/pkgconfig"
+		vmove usr/share/man/man3
+	}
+}
diff --git a/srcpkgs/corosynclib b/srcpkgs/corosynclib
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
diff --git a/srcpkgs/corosynclib-devel b/srcpkgs/corosynclib-devel
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib-devel
@@ -0,0 +1 @@
+corosync
\ No newline at end of file

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

* Re: [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
  2019-09-01 21:13 ` [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2 voidlinux-github
@ 2019-09-01 21:24 ` voidlinux-github
  2019-09-01 21:24 ` voidlinux-github
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-01 21:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

There is an updated pull request by jirib against master on the void-packages repository

https://github.com/jirib/void-packages corosync
https://github.com/void-linux/void-packages/pull/14061

[WIP] New package: corosync-3.0.2
The Corosync Cluster Engine is a Group Communication System with additional features for implementing high availability within applications.

Needed for future pacemaker package.

A patch file from https://github.com/void-linux/void-packages/pull/14061.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-corosync-14061.patch --]
[-- Type: text/x-diff, Size: 5241 bytes --]

From f108a62e5936ae36c5238f8a1236594b68493f88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= <jirib79@gmail.com>
Date: Fri, 30 Aug 2019 02:23:31 +0200
Subject: [PATCH] New package: corosync-3.0.2

---
 common/shlibs                        |  7 ++++
 srcpkgs/corosync/INSTALL.msg         |  6 +++
 srcpkgs/corosync/files/corosync.conf | 24 ++++++++++++
 srcpkgs/corosync/files/corosync/run  |  3 ++
 srcpkgs/corosync/template            | 57 ++++++++++++++++++++++++++++
 srcpkgs/corosynclib                  |  1 +
 srcpkgs/corosynclib-devel            |  1 +
 7 files changed, 99 insertions(+)
 create mode 100644 srcpkgs/corosync/INSTALL.msg
 create mode 100644 srcpkgs/corosync/files/corosync.conf
 create mode 100644 srcpkgs/corosync/files/corosync/run
 create mode 100644 srcpkgs/corosync/template
 create mode 120000 srcpkgs/corosynclib
 create mode 120000 srcpkgs/corosynclib-devel

diff --git a/common/shlibs b/common/shlibs
index 655134c53e5..f3df361eedd 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3502,3 +3502,10 @@ liblog4c.so.3 log4c-1.2.4_1
 libqb.so.0 libqb-1.0.5_1
 libusbguard.so.0 usbguard-0.7.5_1
 libknet.so.1 libknet1-1.11_1
+libsam.so.4 corosynclib-3.0.2_1
+libcfg.so.7 corosynclib-3.0.2_1
+libcpg.so.4 corosynclib-3.0.2_1
+libcmap.so.4 corosynclib-3.0.2_1
+libvotequorum.so.8 corosynclib-3.0.2_1
+libquorum.so.5 corosynclib-3.0.2_1
+libcorosync_common.so.4 corosynclib-3.0.2_1
diff --git a/srcpkgs/corosync/INSTALL.msg b/srcpkgs/corosync/INSTALL.msg
new file mode 100644
index 00000000000..16b45796e7b
--- /dev/null
+++ b/srcpkgs/corosync/INSTALL.msg
@@ -0,0 +1,6 @@
+An example configuration file was placed into /etc/corosync/ for test purpose,
+with this configuration Corosync runs a 'voidlinux' cluster only locally.
+
+For real multi-node setup, Corosync uses UDP transport between ports 5404, 5405
+and 5406 for communication. If you are running a firewall, ensure that
+communication on those ports are allowed between the servers.
diff --git a/srcpkgs/corosync/files/corosync.conf b/srcpkgs/corosync/files/corosync.conf
new file mode 100644
index 00000000000..2eaed8ba7ef
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync.conf
@@ -0,0 +1,24 @@
+# Please read the corosync.conf.5 manual page
+totem {
+        version: 2
+        cluster_name: voidlinux
+
+}
+
+logging {
+        to_stderr: yes
+        to_logfile: yes
+        logfile: /var/log/corosync/corosync.log
+}
+
+quorum {
+        provider: corosync_votequorum
+}
+
+nodelist {
+        node {
+                name: node1
+                nodeid: 1
+                ring0_addr: 127.0.0.1
+        }
+}
diff --git a/srcpkgs/corosync/files/corosync/run b/srcpkgs/corosync/files/corosync/run
new file mode 100644
index 00000000000..5b597145ee4
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec /usr/bin/corosync -f ${OPTS:-}
diff --git a/srcpkgs/corosync/template b/srcpkgs/corosync/template
new file mode 100644
index 00000000000..8df9e202c46
--- /dev/null
+++ b/srcpkgs/corosync/template
@@ -0,0 +1,57 @@
+# Template file for 'corosync'
+pkgname=corosync
+version=3.0.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --enable-monitoring --enable-snmp
+ --enable-xmlconf --with-logdir=/var/log/corosync"
+make_dirs="/etc/corosync/uidgid.d 0755 root root
+ /etc/corosync/service.d 0755 root root
+ /var/log/corosync 0755 root root
+ /var/lib/corosync 0755 root root"
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="libqb-devel libstatgrab-devel libtool net-snmp-devel nss-devel"
+short_desc="Cluster engine daemon and utilities"
+maintainer="Jiří Bělka <jirib79@gmail.com>"
+license="BSD-2-Clause"
+homepage="http://corosync.github.io/corosync"
+distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=f237e3ddac41ec583cac9610a9ba9191592f09d3ed70bc687db7b60e3d2e26f5
+
+# libknet1 is default transport but does not work with musl now
+case "$XBPS_TARGET_MACHINE" in
+        *-musl) :;;
+        *) makedepends+=" libknet1-devel";;
+esac
+
+pre_configure() {
+	autoreconf -vi
+}
+
+post_install() {
+	rm -f ${DESTDIR}/etc/corosync/corosync.conf.example
+	rm -rf ${DESTDIR}/etc/init.d
+	rm -rf ${DESTDIR}/usr/lib/corosync/*.la
+	vinstall ${FILESDIR}/corosync.conf 644 etc/corosync
+	vlicense LICENSE
+	vsv corosync
+}
+
+corosynclib_package() {
+	short_desc="Corosync libraries"
+	pkg_install() {
+		vmove "usr/lib/*.so*"
+		vlicense LICENSE
+	}
+}
+
+corosynclib-devel_package() {
+	depends="corosynclib>=${version}_${revision}"
+	short_desc="Corosync libraries (development files)"
+	pkg_install() {
+		vmove usr/include/corosync
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/pkgconfig"
+		vmove usr/share/man/man3
+	}
+}
diff --git a/srcpkgs/corosynclib b/srcpkgs/corosynclib
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
diff --git a/srcpkgs/corosynclib-devel b/srcpkgs/corosynclib-devel
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib-devel
@@ -0,0 +1 @@
+corosync
\ No newline at end of file

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

* Re: [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2019-09-01 21:24 ` voidlinux-github
@ 2019-09-01 21:54 ` voidlinux-github
  2019-09-01 21:55 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-01 21:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 765 bytes --]

New comment by jirib on void-packages repository

https://github.com/void-linux/void-packages/pull/14061#issuecomment-526956078

Comment:
> => looks odd, I think it should be >=. However you should not need to add that manually since dependencies on shard libraries are automatically detected by xbps-src while building the package. Following the usual pattern for libraries, the sub-package should be called `libcorosync'. Haven't reviewed the rest of the template yet.

Thanks, it was this typo.

BTW, as libknet1 does not build on musl archs, how should this package be treated? Should I define it to be only for non-musl archs? IIUC corosync can't be easily told to be build without 'knet' transport now, see https://github.com/corosync/corosync/issues/501

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

* Re: [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
                   ` (4 preceding siblings ...)
  2019-09-01 21:55 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-09-01 21:55 ` voidlinux-github
  2019-09-05 10:28 ` voidlinux-github
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-01 21:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

There is an updated pull request by jirib against master on the void-packages repository

https://github.com/jirib/void-packages corosync
https://github.com/void-linux/void-packages/pull/14061

[WIP] New package: corosync-3.0.2
The Corosync Cluster Engine is a Group Communication System with additional features for implementing high availability within applications.

Needed for future pacemaker package.

A patch file from https://github.com/void-linux/void-packages/pull/14061.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-corosync-14061.patch --]
[-- Type: text/x-diff, Size: 5087 bytes --]

From fea1d0d792a43431e2a0656d19b83451ed3d416f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= <jirib79@gmail.com>
Date: Fri, 30 Aug 2019 02:23:31 +0200
Subject: [PATCH] New package: corosync-3.0.2

---
 common/shlibs                        |  7 ++++
 srcpkgs/corosync/INSTALL.msg         |  6 ++++
 srcpkgs/corosync/files/corosync.conf | 24 +++++++++++++
 srcpkgs/corosync/files/corosync/run  |  3 ++
 srcpkgs/corosync/template            | 51 ++++++++++++++++++++++++++++
 srcpkgs/corosynclib                  |  1 +
 srcpkgs/corosynclib-devel            |  1 +
 7 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/corosync/INSTALL.msg
 create mode 100644 srcpkgs/corosync/files/corosync.conf
 create mode 100644 srcpkgs/corosync/files/corosync/run
 create mode 100644 srcpkgs/corosync/template
 create mode 120000 srcpkgs/corosynclib
 create mode 120000 srcpkgs/corosynclib-devel

diff --git a/common/shlibs b/common/shlibs
index 655134c53e5..f3df361eedd 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3502,3 +3502,10 @@ liblog4c.so.3 log4c-1.2.4_1
 libqb.so.0 libqb-1.0.5_1
 libusbguard.so.0 usbguard-0.7.5_1
 libknet.so.1 libknet1-1.11_1
+libsam.so.4 corosynclib-3.0.2_1
+libcfg.so.7 corosynclib-3.0.2_1
+libcpg.so.4 corosynclib-3.0.2_1
+libcmap.so.4 corosynclib-3.0.2_1
+libvotequorum.so.8 corosynclib-3.0.2_1
+libquorum.so.5 corosynclib-3.0.2_1
+libcorosync_common.so.4 corosynclib-3.0.2_1
diff --git a/srcpkgs/corosync/INSTALL.msg b/srcpkgs/corosync/INSTALL.msg
new file mode 100644
index 00000000000..16b45796e7b
--- /dev/null
+++ b/srcpkgs/corosync/INSTALL.msg
@@ -0,0 +1,6 @@
+An example configuration file was placed into /etc/corosync/ for test purpose,
+with this configuration Corosync runs a 'voidlinux' cluster only locally.
+
+For real multi-node setup, Corosync uses UDP transport between ports 5404, 5405
+and 5406 for communication. If you are running a firewall, ensure that
+communication on those ports are allowed between the servers.
diff --git a/srcpkgs/corosync/files/corosync.conf b/srcpkgs/corosync/files/corosync.conf
new file mode 100644
index 00000000000..2eaed8ba7ef
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync.conf
@@ -0,0 +1,24 @@
+# Please read the corosync.conf.5 manual page
+totem {
+        version: 2
+        cluster_name: voidlinux
+
+}
+
+logging {
+        to_stderr: yes
+        to_logfile: yes
+        logfile: /var/log/corosync/corosync.log
+}
+
+quorum {
+        provider: corosync_votequorum
+}
+
+nodelist {
+        node {
+                name: node1
+                nodeid: 1
+                ring0_addr: 127.0.0.1
+        }
+}
diff --git a/srcpkgs/corosync/files/corosync/run b/srcpkgs/corosync/files/corosync/run
new file mode 100644
index 00000000000..5b597145ee4
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec /usr/bin/corosync -f ${OPTS:-}
diff --git a/srcpkgs/corosync/template b/srcpkgs/corosync/template
new file mode 100644
index 00000000000..a88efb2b62a
--- /dev/null
+++ b/srcpkgs/corosync/template
@@ -0,0 +1,51 @@
+# Template file for 'corosync'
+pkgname=corosync
+version=3.0.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --enable-monitoring --enable-snmp
+ --enable-xmlconf --with-logdir=/var/log/corosync"
+make_dirs="/etc/corosync/uidgid.d 0755 root root
+ /etc/corosync/service.d 0755 root root
+ /var/log/corosync 0755 root root
+ /var/lib/corosync 0755 root root"
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="libknet1-devel libqb-devel libstatgrab-devel libtool net-snmp-devel nss-devel"
+short_desc="Cluster engine daemon and utilities"
+maintainer="Jiří Bělka <jirib79@gmail.com>"
+license="BSD-2-Clause"
+homepage="http://corosync.github.io/corosync"
+distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=f237e3ddac41ec583cac9610a9ba9191592f09d3ed70bc687db7b60e3d2e26f5
+
+pre_configure() {
+	autoreconf -vi
+}
+
+post_install() {
+	rm -f ${DESTDIR}/etc/corosync/corosync.conf.example
+	rm -rf ${DESTDIR}/etc/init.d
+	rm -rf ${DESTDIR}/usr/lib/corosync/*.la
+	vinstall ${FILESDIR}/corosync.conf 644 etc/corosync
+	vlicense LICENSE
+	vsv corosync
+}
+
+corosynclib_package() {
+	short_desc="Corosync libraries"
+	pkg_install() {
+		vmove "usr/lib/*.so*"
+		vlicense LICENSE
+	}
+}
+
+corosynclib-devel_package() {
+	depends="corosynclib>=${version}_${revision}"
+	short_desc="Corosync libraries (development files)"
+	pkg_install() {
+		vmove usr/include/corosync
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/pkgconfig"
+		vmove usr/share/man/man3
+	}
+}
diff --git a/srcpkgs/corosynclib b/srcpkgs/corosynclib
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
diff --git a/srcpkgs/corosynclib-devel b/srcpkgs/corosynclib-devel
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib-devel
@@ -0,0 +1 @@
+corosync
\ No newline at end of file

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

* Re: [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2019-09-01 21:54 ` voidlinux-github
@ 2019-09-01 21:55 ` voidlinux-github
  2019-09-01 21:55 ` voidlinux-github
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-01 21:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

There is an updated pull request by jirib against master on the void-packages repository

https://github.com/jirib/void-packages corosync
https://github.com/void-linux/void-packages/pull/14061

[WIP] New package: corosync-3.0.2
The Corosync Cluster Engine is a Group Communication System with additional features for implementing high availability within applications.

Needed for future pacemaker package.

A patch file from https://github.com/void-linux/void-packages/pull/14061.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-corosync-14061.patch --]
[-- Type: text/x-diff, Size: 5087 bytes --]

From fea1d0d792a43431e2a0656d19b83451ed3d416f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= <jirib79@gmail.com>
Date: Fri, 30 Aug 2019 02:23:31 +0200
Subject: [PATCH] New package: corosync-3.0.2

---
 common/shlibs                        |  7 ++++
 srcpkgs/corosync/INSTALL.msg         |  6 ++++
 srcpkgs/corosync/files/corosync.conf | 24 +++++++++++++
 srcpkgs/corosync/files/corosync/run  |  3 ++
 srcpkgs/corosync/template            | 51 ++++++++++++++++++++++++++++
 srcpkgs/corosynclib                  |  1 +
 srcpkgs/corosynclib-devel            |  1 +
 7 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/corosync/INSTALL.msg
 create mode 100644 srcpkgs/corosync/files/corosync.conf
 create mode 100644 srcpkgs/corosync/files/corosync/run
 create mode 100644 srcpkgs/corosync/template
 create mode 120000 srcpkgs/corosynclib
 create mode 120000 srcpkgs/corosynclib-devel

diff --git a/common/shlibs b/common/shlibs
index 655134c53e5..f3df361eedd 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3502,3 +3502,10 @@ liblog4c.so.3 log4c-1.2.4_1
 libqb.so.0 libqb-1.0.5_1
 libusbguard.so.0 usbguard-0.7.5_1
 libknet.so.1 libknet1-1.11_1
+libsam.so.4 corosynclib-3.0.2_1
+libcfg.so.7 corosynclib-3.0.2_1
+libcpg.so.4 corosynclib-3.0.2_1
+libcmap.so.4 corosynclib-3.0.2_1
+libvotequorum.so.8 corosynclib-3.0.2_1
+libquorum.so.5 corosynclib-3.0.2_1
+libcorosync_common.so.4 corosynclib-3.0.2_1
diff --git a/srcpkgs/corosync/INSTALL.msg b/srcpkgs/corosync/INSTALL.msg
new file mode 100644
index 00000000000..16b45796e7b
--- /dev/null
+++ b/srcpkgs/corosync/INSTALL.msg
@@ -0,0 +1,6 @@
+An example configuration file was placed into /etc/corosync/ for test purpose,
+with this configuration Corosync runs a 'voidlinux' cluster only locally.
+
+For real multi-node setup, Corosync uses UDP transport between ports 5404, 5405
+and 5406 for communication. If you are running a firewall, ensure that
+communication on those ports are allowed between the servers.
diff --git a/srcpkgs/corosync/files/corosync.conf b/srcpkgs/corosync/files/corosync.conf
new file mode 100644
index 00000000000..2eaed8ba7ef
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync.conf
@@ -0,0 +1,24 @@
+# Please read the corosync.conf.5 manual page
+totem {
+        version: 2
+        cluster_name: voidlinux
+
+}
+
+logging {
+        to_stderr: yes
+        to_logfile: yes
+        logfile: /var/log/corosync/corosync.log
+}
+
+quorum {
+        provider: corosync_votequorum
+}
+
+nodelist {
+        node {
+                name: node1
+                nodeid: 1
+                ring0_addr: 127.0.0.1
+        }
+}
diff --git a/srcpkgs/corosync/files/corosync/run b/srcpkgs/corosync/files/corosync/run
new file mode 100644
index 00000000000..5b597145ee4
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec /usr/bin/corosync -f ${OPTS:-}
diff --git a/srcpkgs/corosync/template b/srcpkgs/corosync/template
new file mode 100644
index 00000000000..a88efb2b62a
--- /dev/null
+++ b/srcpkgs/corosync/template
@@ -0,0 +1,51 @@
+# Template file for 'corosync'
+pkgname=corosync
+version=3.0.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --enable-monitoring --enable-snmp
+ --enable-xmlconf --with-logdir=/var/log/corosync"
+make_dirs="/etc/corosync/uidgid.d 0755 root root
+ /etc/corosync/service.d 0755 root root
+ /var/log/corosync 0755 root root
+ /var/lib/corosync 0755 root root"
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="libknet1-devel libqb-devel libstatgrab-devel libtool net-snmp-devel nss-devel"
+short_desc="Cluster engine daemon and utilities"
+maintainer="Jiří Bělka <jirib79@gmail.com>"
+license="BSD-2-Clause"
+homepage="http://corosync.github.io/corosync"
+distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
+checksum=f237e3ddac41ec583cac9610a9ba9191592f09d3ed70bc687db7b60e3d2e26f5
+
+pre_configure() {
+	autoreconf -vi
+}
+
+post_install() {
+	rm -f ${DESTDIR}/etc/corosync/corosync.conf.example
+	rm -rf ${DESTDIR}/etc/init.d
+	rm -rf ${DESTDIR}/usr/lib/corosync/*.la
+	vinstall ${FILESDIR}/corosync.conf 644 etc/corosync
+	vlicense LICENSE
+	vsv corosync
+}
+
+corosynclib_package() {
+	short_desc="Corosync libraries"
+	pkg_install() {
+		vmove "usr/lib/*.so*"
+		vlicense LICENSE
+	}
+}
+
+corosynclib-devel_package() {
+	depends="corosynclib>=${version}_${revision}"
+	short_desc="Corosync libraries (development files)"
+	pkg_install() {
+		vmove usr/include/corosync
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/pkgconfig"
+		vmove usr/share/man/man3
+	}
+}
diff --git a/srcpkgs/corosynclib b/srcpkgs/corosynclib
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
diff --git a/srcpkgs/corosynclib-devel b/srcpkgs/corosynclib-devel
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosynclib-devel
@@ -0,0 +1 @@
+corosync
\ No newline at end of file

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

* Re: [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
                   ` (5 preceding siblings ...)
  2019-09-01 21:55 ` voidlinux-github
@ 2019-09-05 10:28 ` voidlinux-github
  2019-09-05 10:28 ` voidlinux-github
  2019-09-05 11:22 ` [PR PATCH] [Closed]: " voidlinux-github
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-05 10:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

New comment by jirib on void-packages repository

https://github.com/void-linux/void-packages/pull/14061#issuecomment-528302061

Comment:
> > => looks odd, I think it should be >=. However you should not need to add that manually since dependencies on shard libraries are automatically detected by xbps-src while building the package. Following the usual pattern for libraries, the sub-package should be called `libcorosync'. Haven't reviewed the rest of the template yet.
> 
> Thanks, it was this typo.
> 
> BTW, as libknet1 does not build on musl archs, how should this package be treated? Should I define it to be only for non-musl archs? IIUC corosync can't be easily told to be build without 'knet' transport now, see [corosync/corosync#501](https://github.com/corosync/corosync/issues/501)

Solved, I'm preparing libknet1/libnozzle1 (new pkg) fix which would support musl, https://github.com/void-linux/void-packages/pull/14215

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

* Re: [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
                   ` (6 preceding siblings ...)
  2019-09-05 10:28 ` voidlinux-github
@ 2019-09-05 10:28 ` voidlinux-github
  2019-09-05 11:22 ` [PR PATCH] [Closed]: " voidlinux-github
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-05 10:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

New comment by jirib on void-packages repository

https://github.com/void-linux/void-packages/pull/14061#issuecomment-528302061

Comment:
> > => looks odd, I think it should be >=. However you should not need to add that manually since dependencies on shard libraries are automatically detected by xbps-src while building the package. Following the usual pattern for libraries, the sub-package should be called `libcorosync'. Haven't reviewed the rest of the template yet.
> 
> Thanks, it was this typo.
> 
> BTW, as libknet1 does not build on musl archs, how should this package be treated? Should I define it to be only for non-musl archs? IIUC corosync can't be easily told to be build without 'knet' transport now, see [corosync/corosync#501](https://github.com/corosync/corosync/issues/501)

Solved, I'm preparing libknet1/libnozzle1 (new subpkg) fix which would support musl, https://github.com/void-linux/void-packages/pull/14215

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

* Re: [PR PATCH] [Closed]: [WIP] New package: corosync-3.0.2
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
                   ` (7 preceding siblings ...)
  2019-09-05 10:28 ` voidlinux-github
@ 2019-09-05 11:22 ` voidlinux-github
  8 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-09-05 11:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

There's a closed pull request on the void-packages repository

[WIP] New package: corosync-3.0.2
https://github.com/void-linux/void-packages/pull/14061

Description:
The Corosync Cluster Engine is a Group Communication System with additional features for implementing high availability within applications.

Needed for future pacemaker package.

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

end of thread, other threads:[~2019-09-05 11:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14061@inbox.vuxu.org>
2019-09-01 21:13 ` [PR PATCH] [Updated] [WIP] New package: corosync-3.0.2 voidlinux-github
2019-09-01 21:24 ` voidlinux-github
2019-09-01 21:24 ` voidlinux-github
2019-09-01 21:54 ` voidlinux-github
2019-09-01 21:55 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-01 21:55 ` voidlinux-github
2019-09-05 10:28 ` voidlinux-github
2019-09-05 10:28 ` voidlinux-github
2019-09-05 11:22 ` [PR PATCH] [Closed]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).