summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilosD2015-07-05 11:54:49 +0200
committerMilosD2015-07-05 11:54:49 +0200
commita83130893aedd77c8f70b1df4f85c9f0110ba65d (patch)
treea0ae80c351fc123595e5fc3264887f2d27c90792
downloadaur-ha-pacemaker-crmsh.tar.gz
ha-pacemaker-crmsh first push
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD44
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9c412438974
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = ha-pacemaker-crmsh
+ pkgdesc = Pacemaker Configuration Shell - The original shell from SUSE
+ pkgver = 1.2.6
+ pkgrel = 1
+ url = https://savannah.nongnu.org/projects/crmsh/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = ha-pacemaker-git
+ makedepends = python2
+ depends = ha-glue
+ depends = ha-heartbeat
+ depends = libxslt
+ depends = ha-pacemaker-git
+ depends = python2
+ options = !libtool
+ options = docs
+ options = strip
+ source = http://download.savannah.gnu.org/releases/crmsh/crmsh-1.2.6.tar.bz2
+ md5sums = b3cdfc87ad04b65e367b1f462b31208b
+
+pkgname = ha-pacemaker-crmsh
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b2d71fa362
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: gls < ghostlovescorebg at gmail dot com >
+
+pkgname=ha-pacemaker-crmsh
+pkgver=1.2.6
+pkgrel=1
+_pkgname=crmsh
+pkgdesc="Pacemaker Configuration Shell - The original shell from SUSE"
+arch=('i686' 'x86_64')
+url="https://savannah.nongnu.org/projects/crmsh/"
+license=('GPL')
+makedepends=('ha-pacemaker-git' 'python2')
+depends=('ha-glue' 'ha-heartbeat' 'libxslt' 'ha-pacemaker-git' 'python2')
+source=("http://download.savannah.gnu.org/releases/crmsh/crmsh-1.2.6.tar.bz2")
+md5sums=('b3cdfc87ad04b65e367b1f462b31208b')
+options=('!libtool' 'docs' 'strip')
+
+build() {
+ unset LDFLAGS
+ _CLUSTER_USER=hacluster
+ _CLUSTER_GROUP=haclient
+ _PREFIX=/usr
+ _PREFIXETC=/etc
+ _PREFIXINIT=${_PREFIXETC}/rc.d
+ _PREFIXVAR=/var
+ _LCRSODIR=${_PREFIX}/lib/lcrso
+ cd "${srcdir}/${_pkgname}-${_pkgname}-${pkgver}"
+ ./autogen.sh
+ PYTHON="/usr/bin/python2" ./configure \
+ --sbindir=/usr/bin \
+ --localstatedir=${_PREFIXVAR} \
+ --sysconfdir=${_PREFIXETC}
+ make
+}
+
+package() {
+ cd ${srcdir}/${_pkgname}-${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ #fix python
+ sed -i 's:/usr/bin/python$:/usr/bin/python2:g' ${pkgdir}/usr/bin/crm
+ #cp ${srcdir}/crm2 ${pkgdir}/usr/sbin/crm2
+ #chmod 755 ${pkgdir}/usr/sbin/crm2
+ #chown root:root ${pkgdir}/usr/sbin/crm2
+}