Github messages for voidlinux
 help / color / Atom feed
* [PR PATCH] New package: corosync-3.0.2
@ 2019-09-11 22:22 voidlinux-github
  2019-09-15 20:34 ` voidlinux-github
  2020-01-30 20:55 ` [PR PATCH] [Closed]: " voidlinux-github
  0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2019-09-11 22:22 UTC (permalink / raw)
  To: ml

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

There is a new 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/14413

New package: corosync-3.0.2


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

[-- Warning: decoded text below may be mangled --]
[-- Attachment #2: github-pr-corosync-14413.patch --]
[-- Type: text/x-diff, Size: 7746 bytes --]

From 046fa3bbd1ae4851dec2d64b5361ea54f83718c7 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-vqsim                       |  1 +
 srcpkgs/corosync/INSTALL.msg                 |  6 ++
 srcpkgs/corosync/files/corosync-notifyd/conf |  9 +++
 srcpkgs/corosync/files/corosync-notifyd/run  |  7 +++
 srcpkgs/corosync/files/corosync.conf         | 24 ++++++++
 srcpkgs/corosync/files/corosync/config       |  4 ++
 srcpkgs/corosync/files/corosync/run          |  3 +
 srcpkgs/corosync/template                    | 64 ++++++++++++++++++++
 srcpkgs/corosync/update                      |  1 +
 srcpkgs/libcorosync                          |  1 +
 srcpkgs/libcorosync-devel                    |  1 +
 12 files changed, 128 insertions(+)
 create mode 120000 srcpkgs/corosync-vqsim
 create mode 100644 srcpkgs/corosync/INSTALL.msg
 create mode 100644 srcpkgs/corosync/files/corosync-notifyd/conf
 create mode 100644 srcpkgs/corosync/files/corosync-notifyd/run
 create mode 100644 srcpkgs/corosync/files/corosync.conf
 create mode 100644 srcpkgs/corosync/files/corosync/config
 create mode 100644 srcpkgs/corosync/files/corosync/run
 create mode 100644 srcpkgs/corosync/template
 create mode 100644 srcpkgs/corosync/update
 create mode 120000 srcpkgs/libcorosync
 create mode 120000 srcpkgs/libcorosync-devel

diff --git a/common/shlibs b/common/shlibs
index 09df4f3ceca..bdba8eda741 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3508,3 +3508,10 @@ libdrumstick-file.so.1 drumstick-1.1.2_1
 libdrumstick-alsa.so.1 drumstick-1.1.2_1
 libdrumstick-rt.so.1 drumstick-1.1.2_1
 libnozzle.so.1 libnozzle1-1.11_2
+libsam.so.4 libcorosync-3.0.2_1
+libcfg.so.7 libcorosync-3.0.2_1
+libcpg.so.4 libcorosync-3.0.2_1
+libcmap.so.4 libcorosync-3.0.2_1
+libvotequorum.so.8 libcorosync-3.0.2_1
+libquorum.so.5 libcorosync-3.0.2_1
+libcorosync_common.so.4 libcorosync-3.0.2_1
diff --git a/srcpkgs/corosync-vqsim b/srcpkgs/corosync-vqsim
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/corosync-vqsim
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
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-notifyd/conf b/srcpkgs/corosync/files/corosync-notifyd/conf
new file mode 100644
index 00000000000..470f187668d
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync-notifyd/conf
@@ -0,0 +1,9 @@
+#
+# See "man corosync-notifyd" for detailed descriptions of
+# the options below.
+#
+# OPTIONS="-d -s -l -m <snmp manager address>"
+#
+
+# Send DBUS signals on all events (for SNMP traps, use -s)
+OPTIONS="-d"
diff --git a/srcpkgs/corosync/files/corosync-notifyd/run b/srcpkgs/corosync/files/corosync-notifyd/run
new file mode 100644
index 00000000000..3d6a05750ea
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync-notifyd/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+case "$OPTIONS" in
+    *-d*)
+	sv check dbus >/dev/null || exit 1 ;;
+esac
+exec /usr/bin/corosync-notifyd -f ${OPTIONS}
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/config b/srcpkgs/corosync/files/corosync/config
new file mode 100644
index 00000000000..ff58c8da65b
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/config
@@ -0,0 +1,4 @@
+# COROSYNC_OPTIONS specifies options passed to corosync command
+# (default is no options).
+# See "man corosync" for detailed descriptions of the options.
+COROSYNC_OPTIONS=""
diff --git a/srcpkgs/corosync/files/corosync/run b/srcpkgs/corosync/files/corosync/run
new file mode 100644
index 00000000000..e5e5e7a5eb3
--- /dev/null
+++ b/srcpkgs/corosync/files/corosync/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec /usr/bin/corosync -f ${COROSYNC_OPTIONS:-}
diff --git a/srcpkgs/corosync/template b/srcpkgs/corosync/template
new file mode 100644
index 00000000000..6e60f6e1324
--- /dev/null
+++ b/srcpkgs/corosync/template
@@ -0,0 +1,64 @@
+# Template file for 'corosync'
+pkgname=corosync
+version=3.0.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --enable-dbus --enable-monitoring
+ --enable-nozzle --enable-snmp --enable-xmlconf --enable-vqsim
+ --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="dbus-devel libknet1-devel libnozzle1-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/corosync/corosync/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
+	vsv corosync-notifyd
+}
+
+corosync-vqsim_package() {
+	depends="libcorosync>=${version}_${revision}"
+	short_desc="Corosync's Votequorum Simulator"
+	pkg_install() {
+		vlicense LICENSE
+		vmove usr/bin/corosync-vqsim
+		vmove "usr/share/man/man8/corosync-vqsim.8*"
+	}
+}
+
+libcorosync_package() {
+	short_desc="Corosync libraries"
+	pkg_install() {
+		vlicense LICENSE
+		vmove "usr/lib/*.so*"
+	}
+}
+
+libcorosync-devel_package() {
+	depends="libcorosync>=${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/corosync/update b/srcpkgs/corosync/update
new file mode 100644
index 00000000000..a8aa5903522
--- /dev/null
+++ b/srcpkgs/corosync/update
@@ -0,0 +1 @@
+site="https://github.com/corosync/corosync/releases"
diff --git a/srcpkgs/libcorosync b/srcpkgs/libcorosync
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/libcorosync
@@ -0,0 +1 @@
+corosync
\ No newline at end of file
diff --git a/srcpkgs/libcorosync-devel b/srcpkgs/libcorosync-devel
new file mode 120000
index 00000000000..f52d533f823
--- /dev/null
+++ b/srcpkgs/libcorosync-devel
@@ -0,0 +1 @@
+corosync
\ No newline at end of file

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

* Re: New package: corosync-3.0.2
  2019-09-11 22:22 [PR PATCH] New package: corosync-3.0.2 voidlinux-github
@ 2019-09-15 20:34 ` voidlinux-github
  2020-01-30 20:55 ` [PR PATCH] [Closed]: " voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2019-09-15 20:34 UTC (permalink / raw)
  To: ml

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

New comment by the-maldridge on void-packages repository

https://github.com/void-linux/void-packages/pull/14413#issuecomment-531597084

Comment:
Its also worth noting that in general void does not except library packages just to have them.  What do you need corosync for?  This should ideally be stacked in that PR.

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

* Re: [PR PATCH] [Closed]: New package: corosync-3.0.2
  2019-09-11 22:22 [PR PATCH] New package: corosync-3.0.2 voidlinux-github
  2019-09-15 20:34 ` voidlinux-github
@ 2020-01-30 20:55 ` " voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-30 20:55 UTC (permalink / raw)
  To: ml

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

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

New package: corosync-3.0.2
https://github.com/void-linux/void-packages/pull/14413

Description:


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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 22:22 [PR PATCH] New package: corosync-3.0.2 voidlinux-github
2019-09-15 20:34 ` voidlinux-github
2020-01-30 20:55 ` [PR PATCH] [Closed]: " voidlinux-github

Github messages for voidlinux

Archives are clonable: git clone --mirror http://inbox.vuxu.org/voidlinux-github

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git