summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-22 00:46:35 -0700
committerroot <root@rshg054.dnsready.net>2013-05-22 00:46:35 -0700
commitbdf2189826c1931878cedc2262f67f6fd3c0ef15 (patch)
tree36ebbf884af31c36516746e43961ddf1f88fd452 /pcr
parent4a7d2439a50adfa30bed83cc92ee80ec62476a20 (diff)
Wed May 22 00:46:35 PDT 2013
Diffstat (limited to 'pcr')
-rw-r--r--pcr/corosync/PKGBUILD38
-rwxr-xr-xpcr/corosync/corosync.init126
-rw-r--r--pcr/corosync/corosync.service13
-rw-r--r--pcr/ha-heartbeat/PKGBUILD52
-rw-r--r--pcr/libqb/PKGBUILD5
-rw-r--r--pcr/xsynth-dssi/PKGBUILD28
-rw-r--r--pcr/xsynth-dssi/xsynth-dssi4
7 files changed, 248 insertions, 18 deletions
diff --git a/pcr/corosync/PKGBUILD b/pcr/corosync/PKGBUILD
new file mode 100644
index 000000000..e7c019a66
--- /dev/null
+++ b/pcr/corosync/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Eric Renfro <erenfro@gmail.com>
+
+pkgname=corosync
+pkgver=2.1.0
+pkgrel=4
+pkgdesc="Cluster engine for nodal communication systems with additional features for implementing high availability within applications."
+arch=('i686' 'x86_64')
+url="http://www.corosync.org/"
+license=('BSD')
+makedepends=('nss' 'libstatgrab' 'net-snmp' 'libqb')
+depends=('nss' 'libstatgrab' 'net-snmp' 'libqb')
+provides=('corosync=2.1.0')
+conflicts=('corosync1')
+#source=(ftp://ftp:downloads@ftp.corosync.org/downloads/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
+source=("https://github.com/downloads/corosync/corosync/corosync-${pkgver}.tar.gz"
+ "corosync.init"
+ "corosync.service")
+md5sums=('dc5152e6dfdb4638ab544e587884483a'
+ 'fdc3b648f020e165eaa7c3283ce5b9ac'
+ 'abc267226faafc7dc8246634277705ea')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-systemd \
+ --enable-monitoring \
+ --enable-snmp \
+ --enable-dbus \
+ --with-systemddir=/usr/lib/systemd/system
+ make || return 1
+ make DESTDIR="${pkgdir}" install || return 1
+ ## Updated and fixed up systemd service unit and associated start/stop script:
+ cp ${srcdir}/corosync.service ${pkgdir}/usr/lib/systemd/system/corosync.service || return 1
+ cp ${srcdir}/corosync.init ${pkgdir}/usr/share/corosync/corosync || return 1
+}
+
diff --git a/pcr/corosync/corosync.init b/pcr/corosync/corosync.init
new file mode 100755
index 000000000..b97186dee
--- /dev/null
+++ b/pcr/corosync/corosync.init
@@ -0,0 +1,126 @@
+#!/bin/bash
+
+# Authors:
+# Eric Renfro <erenfro@gmail.com>
+
+desc="Corosync Cluster Engine"
+prog="corosync"
+
+# set secure PATH
+PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/sbin"
+
+status()
+{
+ pid=$(pidof $prog 2>/dev/null)
+ return $?
+}
+
+if [ -d /etc/default ]; then
+ [ -f /etc/default/$prog ] && . /etc/default/$prog
+ [ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/$prog"
+fi
+
+cluster_disabled_at_boot()
+{
+ if grep -q nocluster /proc/cmdline && \
+ [ "$(tty)" = "/dev/console" ]; then
+ return 1
+ fi
+ return 0
+}
+
+wait_for_ipc()
+{
+ local try=0
+ while [ "$try" -le "20" ]; do
+ if corosync-cfgtool -s > /dev/null 2>&1; then
+ return 0
+ fi
+ sleep 0.5
+ let try++
+ done
+
+ return 1
+}
+
+start()
+{
+ echo -n "Starting $desc ($prog): "
+
+ ! cluster_disabled_at_boot && return
+
+ # most recent distributions use tmpfs for /var/run
+ # to avoid to clean it up on every boot.
+ # they also assume that init scripts will create
+ # required subdirectories for proper operations
+ mkdir -p /var/run
+
+ if status $prog > /dev/null 2>&1; then
+ rtrn=0
+ else
+ $prog > /dev/null 2>&1
+
+ if ! wait_for_ipc; then
+ echo "FAILED"
+ rtrn=1
+ fi
+ touch $LOCK_FILE
+ rtrn=0
+ fi
+ echo "OK"
+}
+
+stop()
+{
+ ! status $prog > /dev/null 2>&1 && return
+
+ echo -n "Signaling $desc ($prog) to terminate: "
+ kill -TERM $(pidof $prog) > /dev/null 2>&1
+ echo "OK"
+
+ echo -n "Waiting for $prog services to unload:"
+ while status $prog > /dev/null 2>&1; do
+ sleep 1
+ echo -n "."
+ done
+
+ rm -f $LOCK_FILE
+ echo " OK"
+ rtrn=0
+}
+
+restart()
+{
+ stop
+ start
+}
+
+rtrn=0
+
+case "$1" in
+start)
+ start
+ ;;
+restart|reload|force-reload)
+ restart
+ ;;
+condrestart|try-restart)
+ if status $prog > /dev/null 2>&1; then
+ restart
+ fi
+ ;;
+status)
+ status $prog
+ rtrn=$?
+ ;;
+stop)
+ stop
+ ;;
+*)
+ echo "usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
+ rtrn=2
+ ;;
+esac
+
+exit $rtrn
+
diff --git a/pcr/corosync/corosync.service b/pcr/corosync/corosync.service
new file mode 100644
index 000000000..e601181ee
--- /dev/null
+++ b/pcr/corosync/corosync.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Corosync Cluster Engine
+ConditionKernelCommandLine=!nocluster
+Requires=network.target
+After=network.target
+
+[Service]
+ExecStart=/usr/share/corosync/corosync start
+ExecStop=/usr/share/corosync/corosync stop
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
diff --git a/pcr/ha-heartbeat/PKGBUILD b/pcr/ha-heartbeat/PKGBUILD
index 10ef5def3..f913344a0 100644
--- a/pcr/ha-heartbeat/PKGBUILD
+++ b/pcr/ha-heartbeat/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=ha-heartbeat
_pkgname=${pkgname:3}
pkgver=3.0.5
_pkgver=${pkgver::1}_${pkgver:2:1}
-pkgrel=2
+pkgrel=6
pkgdesc='Daemon that provides cluster infrastructure services to its clients'
arch=(
i686
@@ -12,17 +12,33 @@ arch=(
mips64el
)
url=http://linux-ha.org/wiki/${_pkgname^}
-license=GPL
-makedepends=docbook-xsl
+license=(
+ GPL2
+ lGPL2.1
+)
depends=(
gnutls
ha-glue
)
-options=(
- '!emptydirs'
- '!libtool'
- strip
+optdepends=(
+ lynx
+ net-tools
+ openssh
+ swig
+ valgrind
+ w3m
+)
+makedepends=(
+ docbook-xsl
+ libxslt
+ lynx
+ net-tools
+ openssh
+ swig
+ valgrind
+ w3m
)
+options=!libtool
source=(
http://hg.linux-ha.org/$_pkgname-STABLE_$_pkgver/archive/STABLE-$pkgver.tar.bz2
$pkgname.service
@@ -34,17 +50,25 @@ sha512sums=(
prepare() {
cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver
- sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' configure.in
mv configure.{in,ac}
+ sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|;
+ s|AM_INIT_AUTOMAKE(heartbeat, $HAPKGVERSION)|AM_INIT_AUTOMAKE|;
+ ' configure.ac
+ sed -i "s|AC_INIT(GNUmakefile)|AC_INIT(heartbeat, $pkgver)|;
+ " configure.ac
+ sed -i 's|INCLUDES|AM_CPPFLAGS|;
+ ' {contrib/{drbd-outdate-peer,ipfail,mlock},cts,heartbeat,lib/{apphb,hbclient,plugins/{HB{auth,comm,compress},quorum{,d},tiebreaker}},membership/{ccm,quorumd},replace,telecom/apphbd,tools}/Makefile.am
}
build() {
cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver
setarch $CARCH ./bootstrap
setarch $CARCH ./configure --prefix=/usr\
- --enable-fatal-warnings=no\
+ --disable-fatal-warnings\
--enable-static=no\
+ --enable-valgrind\
--libdir=/usr/lib\
+ --localstatedir=/var\
--sysconfdir=/etc
setarch $CARCH make
}
@@ -53,14 +77,8 @@ package() {
cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver
setarch $CARCH make DESTDIR=$pkgdir install
- for py in `grep -r -l "\#\!\/usr\/bin\/python" $pkgdir`;do
- sed -i.bk 's:/usr/bin/python$:/usr/bin/python2:g' $py
- done
- for py in `grep -r -l "\#\!\/usr\/bin\/env python" $pkgdir`;do
- sed -i.bk 's:/usr/bin/env python$:/usr/bin/env python2:g' $py
- done
- #end python path correction
-
install -d $pkgdir/usr/lib/systemd/system
install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system
}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/libqb/PKGBUILD b/pcr/libqb/PKGBUILD
index eacdb6ea2..6b9d7d9d7 100644
--- a/pcr/libqb/PKGBUILD
+++ b/pcr/libqb/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=libqb
pkgver=0.14.4
-pkgrel=1
+pkgrel=2
pkgdesc='Library with the primary purpose of providing high performance client server reusable features'
arch=(
i686
@@ -14,6 +14,7 @@ makedepends=(
splint
)
license=LGPL2.1
+options=!libtool
url=https://github.com/asalkeld/$pkgname/wiki
source=https://github.com/asalkeld/$pkgname/archive/v$pkgver.tar.gz
sha512sums=1377e38d5547eb516b255c0aa0972e858048053202692d7d5ef1c746d79dee2c78eddc29e797215376990f2c776b34261f765858606b59d77f9218fb0dac5977
@@ -22,6 +23,8 @@ build() {
cd $srcdir/$pkgname-$pkgver
setarch $CARCH ./autogen.sh
setarch $CARCH ./configure --prefix=/usr\
+ --disable-fatal-warnings\
+ --disable-static\
--libdir=/usr/lib
setarch $CARCH make
}
diff --git a/pcr/xsynth-dssi/PKGBUILD b/pcr/xsynth-dssi/PKGBUILD
new file mode 100644
index 000000000..f353b9bfa
--- /dev/null
+++ b/pcr/xsynth-dssi/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Guest One <theguestone at gmail dot com>
+
+pkgname=xsynth-dssi
+pkgver=0.9.4
+pkgrel=1
+pkgdesc="An analog-style (VCOs-VCF-VCA) synth plugin for DSSI"
+arch=('i686')
+url="http://dssi.sourceforge.net/download.html#Xsynth-DSSI"
+license=('GPL')
+depends=('gtk2' 'liblo')
+makedepends=('dssi' 'ladspa')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/project/dssi/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ xsynth-dssi)
+md5sums=('3432ecdac06407a992f80eb1c1ecf7cd'
+ 'c346e6a944f202fccb2278b77a5e184b')
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR=${pkgdir} install || return 1
+ install -D -m755 ${srcdir}/xsynth-dssi ${pkgdir}/usr/bin/xsynth-dssi
+}
+
diff --git a/pcr/xsynth-dssi/xsynth-dssi b/pcr/xsynth-dssi/xsynth-dssi
new file mode 100644
index 000000000..5503b12ba
--- /dev/null
+++ b/pcr/xsynth-dssi/xsynth-dssi
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+export DSSI_PATH=/usr/lib/dssi
+exec jack-dssi-host xsynth-dssi.so