diff options
-rw-r--r-- | pcr/corosync/PKGBUILD | 91 | ||||
-rwxr-xr-x | pcr/corosync/corosync.init | 126 | ||||
-rw-r--r-- | pcr/corosync/corosync.service | 13 | ||||
-rw-r--r-- | pcr/ha-glue/PKGBUILD | 2 | ||||
-rw-r--r-- | pcr/ha-glue/ha-glue.install | 15 | ||||
-rw-r--r-- | pcr/ha-pacemaker/PKGBUILD | 81 | ||||
-rw-r--r-- | pcr/ha-resourceagent/PKGBUILD | 6 | ||||
-rw-r--r-- | pcr/pybonjour/PKGBUILD | 19 |
8 files changed, 167 insertions, 186 deletions
diff --git a/pcr/corosync/PKGBUILD b/pcr/corosync/PKGBUILD index e7c019a66..e176cb112 100644 --- a/pcr/corosync/PKGBUILD +++ b/pcr/corosync/PKGBUILD @@ -1,38 +1,63 @@ -# Maintainer: Eric Renfro <erenfro@gmail.com> +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.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') - +_pkgflag=lts +pkgver=2.3.0 +pkgrel=2 +pkgdesc='Cluster engine for nodal communication systems with additional features for implementing high availability within applications' +arch=( + i686 + x86_64 + mips64el +) +url=http://www.$pkgname.org +license=BSD +depends=( + libqb + libstatgrab + net-snmp + nss +) +makedepends=doxygen +conflicts=$pkgname-$_pkgflag +options=(!libtool) +source=http://$pkgname.org/download/$pkgname-$pkgver.tar.gz +sha512sums=cd2ff5182f0d4827a10d50a211aa073e3d544bf7b98f9b0c834243c0d2cd5446d7950021cb1a21fc16f4951c8b2acf4b75c0b0c72d815b7d67dcba71623d2e51 + +prepare() { + cd $srcdir/$pkgname-$pkgver +} + 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 + cd $srcdir/$pkgname-$pkgver + setarch $CARCH ./configure --prefix=/usr\ + --datarootdir=/usr/share\ + --disable-coverage\ + --disable-fatal-warnings\ + --disable-rdma\ + --disable-static\ + --enable-augeas\ + --enable-dbus\ + --enable-monitoring\ + --enable-qdevices\ + --enable-secure-build\ + --enable-shared\ + --enable-snmp\ + --enable-systemd\ + --enable-testagents\ + --enable-watchdog\ + --enable-xmlconf\ + --libdir=/usr/lib\ + --localstatedir=/var\ + --sysconfdir=/etc\ + --with-initddir=/etc/rc.d\ + --with-systemddir=/usr/lib/systemd/system + setarch $CARCH make +} + +package () { + cd $srcdir/$pkgname-$pkgver + setarch $CARCH make DESTDIR=$pkgdir install } +# vim:set ts=2 sw=2 et: diff --git a/pcr/corosync/corosync.init b/pcr/corosync/corosync.init deleted file mode 100755 index b97186dee..000000000 --- a/pcr/corosync/corosync.init +++ /dev/null @@ -1,126 +0,0 @@ -#!/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 deleted file mode 100644 index e601181ee..000000000 --- a/pcr/corosync/corosync.service +++ /dev/null @@ -1,13 +0,0 @@ -[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-glue/PKGBUILD b/pcr/ha-glue/PKGBUILD index ed46bc66d..ab23a80d2 100644 --- a/pcr/ha-glue/PKGBUILD +++ b/pcr/ha-glue/PKGBUILD @@ -3,7 +3,7 @@ pkgname=ha-glue _pkgname=${pkgname:3} pkgver=1.0.11 -pkgrel=6 +pkgrel=7 pkgdesc='Set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack' arch=( i686 diff --git a/pcr/ha-glue/ha-glue.install b/pcr/ha-glue/ha-glue.install index abfedb7c4..05e2160d3 100644 --- a/pcr/ha-glue/ha-glue.install +++ b/pcr/ha-glue/ha-glue.install @@ -1,22 +1,17 @@ _CLUSTER_USER=hacluster _CLUSTER_GROUP=haclient -_PREFIX=/usr -_PREFIXETC=/etc -_PREFIXVAR=/var -_LCRSODIR=$PREFIX/libexec/lcrso _DGID=666 _DUID=666 + pre_install() { getent group $_CLUSTER_GROUP >/dev/null || groupadd -r -g $_DGID $_CLUSTER_GROUP - getent passwd $_CLUSTER_USER >/dev/null || useradd -r -g $_CLUSTER_GROUP -u $_DUID -d /var/lib/heartbeat/cores/hacluster -s /sbin/nologin -c "cluster user" ${_CLUSTER_USER} + getent passwd $_CLUSTER_USER >/dev/null || useradd -r -g $_CLUSTER_GROUP -u $_DUID -d /var/lib/heartbeat/cores/hacluster -s /sbin/nologin -c 'cluster user' $_CLUSTER_USER } post_install() { - echo -e "\nNow you must install ha-resourceagent, ha-heartbeat and ha-pacemaker\n" - + echo -e 'Now you must install ha-resourceagent, ha-heartbeat and ha-pacemaker' } post_remove() { - echo -e "\nDeleting user $_CLUSTER_USER and group $_CLUSTER_GROUP " - userdel $_CLUSTER_USER - groupdel $_CLUSTER_GROUP + echo -e "Deleting user $_CLUSTER_USER and group $_CLUSTER_GROUP" + userdel $_CLUSTER_USER && groupdel $_CLUSTER_GROUP } diff --git a/pcr/ha-pacemaker/PKGBUILD b/pcr/ha-pacemaker/PKGBUILD new file mode 100644 index 000000000..64132b521 --- /dev/null +++ b/pcr/ha-pacemaker/PKGBUILD @@ -0,0 +1,81 @@ +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgname=ha-pacemaker +_pkgname=${pkgname:3} +pkgver=1.1.9 +pkgrel=2 +pkgdesc='Cluster resource manager' +arch=( + i686 + x86_64 + mips64el +) +url=http://linux-ha.org/wiki/${_pkgname^} +license=GPL2 +depends=( + corosync + ha-heartbeat + ha-resourceagent + libqb +) +optdepens=( + inkscape + lynx + openssh + valgrind + w3m +) +makedepends=( + help2man + inkscape + libxslt + lynx + openssh + valgrind + w3m +) +options=(!libtool) +source=https://github.com/ClusterLabs/$_pkgname/archive/${_pkgname^}-$pkgver.tar.gz +sha512sums=97d13cf722aea9cba1ce344afc3137d9edc15a978d2a7acc44179c4859ecb18f800312caf02c9574b0fab528cd6e2c3e4876a1ffde8a08c2500c0ba816cdf071 + +prepare() { + cd $srcdir/$_pkgname-${_pkgname^}-$pkgver + sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|; + s|AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)|AM_INIT_AUTOMAKE|; + ' configure.ac + sed -i 's|INCLUDES|AM_CPPFLAGS|; + ' {cib,crmd,cts,lib/{cib,cluster,common,fencing,lrmd,pengine,services,transition},mcp,pengine,replace,tools}/Makefile.am +} + +build() { + cd $srcdir/$_pkgname-${_pkgname^}-$pkgver + setarch $CARCH ./autogen.sh + setarch $CARCH ./configure --prefix=/usr\ + --enable-fatal-warnings=yes\ + --disable-static\ + --enable-systemd\ + --enable-upstart\ + --libdir=/usr/lib\ + --libexecdir=/usr/lib\ + --localstatedir=/var\ + --sysconfdir=/etc\ + --with-acl\ + --with-ais\ + --with-cibsecrets\ + --with-cman\ + --with-corosync\ + --with-cs-quorum\ + --with-esmtp\ + --with-heartbeat\ + --with-lcrso-dir=/usr/lib/lcrso\ + --with-nagios\ + --with-profiling\ + --with-snmp\ + --without-gcov + setarch $CARCH make +} + +package() { + cd $srcdir/$_pkgname-${_pkgname^}-$pkgver + setarch $CARCH make DESTDIR=$pkgdir install +} diff --git a/pcr/ha-resourceagent/PKGBUILD b/pcr/ha-resourceagent/PKGBUILD index 56dc744fe..15438769a 100644 --- a/pcr/ha-resourceagent/PKGBUILD +++ b/pcr/ha-resourceagent/PKGBUILD @@ -7,7 +7,7 @@ _yname=${_pkgname:8} _Name=${_xname^}_${_yname^} _name=${_xname}-${_yname}s pkgver=3.9.5 -pkgrel=2 +pkgrel=3 pkgdesc='Standardized interface for a cluster resource' arch=( i686 @@ -46,8 +46,8 @@ prepare() { build() { cd $srcdir/$_name-$pkgver - ./autogen.sh - ./configure --prefix=/usr\ + setarch $CARCH ./autogen.sh + setarch $CARCH ./configure --prefix=/usr\ --enable-fatal-warnings\ --enable-libnet\ --libdir=/usr/lib\ diff --git a/pcr/pybonjour/PKGBUILD b/pcr/pybonjour/PKGBUILD new file mode 100644 index 000000000..9f77354b2 --- /dev/null +++ b/pcr/pybonjour/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: Ruben Schuller <r.schuller@orgizm.net> + +pkgname=pybonjour +pkgver=1.1.1 +pkgrel=2 +pkgdesc="pybonjour provides a pure-Python interface to Apple Bonjour/Avahi" +arch=('any') +provides=('pybonjour') +license=('MIT') +url="http://code.google.com/p/pybonjour/" +depends=('python2') +makedepends=() +source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz) +md5sums=('30cbfd3e9e9721b39f6aa67df1c315a2') + +package() { + cd $srcdir/$pkgname-$pkgver + python2 setup.py install --root=$pkgdir + } |