summaryrefslogtreecommitdiff
path: root/pcr/pacemaker/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/pacemaker/PKGBUILD')
-rw-r--r--pcr/pacemaker/PKGBUILD222
1 files changed, 0 insertions, 222 deletions
diff --git a/pcr/pacemaker/PKGBUILD b/pcr/pacemaker/PKGBUILD
deleted file mode 100644
index 3681f9111..000000000
--- a/pcr/pacemaker/PKGBUILD
+++ /dev/null
@@ -1,222 +0,0 @@
-# Maintainer: Márcio Silva <coadde@lavabit.com>
-
-pkgname=pacemaker
-pkgver=1.1.9
-pkgrel=6
-pkgdesc='Cluster resource manager (Linux-HA)'
-arch=(
- i686
- x86_64
- mips64el
-)
-group=linux-ha
-url=http://$group.org/wiki/${pkgname^}
-license=GPL2
-depends=(
- corosync
- heartbeat
- libqb
- libxslt
- resource-agent
- #saxon-he
-)
-makedepends=(
- asciidoc
- help2man
- inkscape
- lynx
- openssh
- valgrind
- w3m
-)
-options=(!libtool)
-provides=(ha-$pkgname)
-conflicts=ha-$pkgname
-replaces=ha-$pkgname
-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|;
- ' $(grep -rlI INCLUDES | grep Makefile.am)
-
- # fixing path
- sed -i 's|bin/sh|usr/bin/bash|;
- ' $(grep -rlI bin/sh)
- sed -i 's| /bin| /usr/bin|;
- ' $(grep -rlI ' /bin')
- sed -i 's| /sbin| /usr/bin|;
- ' $(grep -rlI ' /sbin')
- sed -i 's|usr/sbin|usr/bin|;
- ' $(grep -rlI usr/sbin)
- sed -i 's|/lib64|/lib|;
- ' $(grep -rlI /lib64)
- sed -i 's|usr/libexec|usr/lib|;
- ' $(grep -rlI usr/libexec)
- sed -i 's|var/lock|run/lock|;
- ' $(grep -rlI var/lock)
- sed -i 's|var/run|run|;
- ' $(grep -rlI var/run)
-
- # remove Open Source term
- sed -i 's|Open Source / ||;
- s|open source / ||;
- s|Open Source|Free|;
- s|open source|free|;
- s|Free Software Development Lab|Open Source Development Lab|;
- ' $(grep -rilI 'open source')
- sed -i 's|OpenSource / ||;
- s|opensource / ||;
- s|OpenSource|FreeSoftware|;
- s|opensource|freesoftware|;
- s|freesoftware.org|opensource.org|;
- s|http://www.opensource.org/|http://www.gnu.org/philosophy/free-sw.html|;
- s|http://www.gnu.org/philosophy/free-sw.htmllicenses/osl-|http://opensource.org/licenses/osl-|;
- s|http://www.gnu.org/philosophy/free-sw.htmlosd|http://opensource.org/osd|;
- ' $(grep -rilI opensource)
-
- # remove Linux term
- sed -i 's|Linux,|GNU/Linux,|;
- s|Linux and|GNU/Linux and|;
- s|Linux distro|GNU/Linux distro|;
- s|Linux distribution|GNU/Linux distribution|;
- s|Linux machine|GNU/Linux machine|;
- s|Linux Only|GNU/Linux Only|;
- s|Linux only|GNU/Linux only|;
- s|Linux operating|GNU/Linux operating|;
- s|Linux OS|GNU/Linux OS|;
- s|Linux platform|GNU/Linux platform|;
- s|Linux software|GNU/Linux software|;
- s|Linux specific|GNU/Linux specific|;
- s|Linux system|GNU/Linux system|;
- s|Linux will|GNU/Linux will|;
- s|# Linux$|# GNU/Linux|;
- s|# Linux.$|# GNU/Linux.|;
- s|* Linux$|* GNU/Linux|;
- s|* Linux.$|* GNU/Linux.|;
- s|// Linux$|// GNU/Linux|;
- s|// Linux.$|// GNU/Linux.|;
- s|, Linux|, GNU/Linux|;
- s|As Linux|As GNU/Linux|;
- s|as Linux|as GNU/Linux|;
- s|And Linux|And GNU/Linux|;
- s|and Linux|and GNU/Linux|;
- s|Be Linux|Be GNU/Linux|;
- s|be Linux|be GNU/Linux|;
- s|Because Linux|Because GNU/Linux|;
- s|because Linux|because GNU/Linux|;
- s|e.g. Linux|e.g. GNU/Linux|;
- s|For Linux|For GNU/Linux|;
- s|for Linux|for GNU/Linux|;
- s|In Linux|In GNU/Linux|;
- s|in Linux|in GNU/Linux|;
- s|Like Linux|Like GNU/Linux|;
- s|like Linux|like GNU/Linux|;
- s|non-Linux|non GNU/Linux|;
- s|Of Linux|Of GNU/Linux|;
- s|of Linux|of GNU/Linux|;
- s|On Linux|On GNU/Linux|;
- s|on Linux|on GNU/Linux|;
- s|OS type: Linux|OS type: GNU/Linux|;
- s|Other Linux|Other GNU/Linux|;
- s|other Linux|other GNU/Linux|;
- s|The Linux|The GNU/Linux|;
- s|the Linux|the GNU/Linux|;
- s|Typically Linux|Typically GNU/Linux|;
- s|typically Linux|typically GNU/Linux|;
- s|To Linux|To GNU/Linux|;
- s|to Linux|to GNU/Linux|;
- s|Under Linux|Under GNU/Linux|;
- s|under Linux|under GNU/Linux|;
- s|ArchGNU/Linux|ArchLinux|;
- s|e2fsprogs, typically GNU/Linux|e2fsprogs, typically Linux|;
- s|GNU/GNU|GNU|;
- s|GNU/Linux device|Linux device|;
- s|GNU/Linux Director Daemon|Linux Director Daemon|;
- s|GNU/Linux is a registered trademark of Linus Torvalds|Linux is a registered trademark of Linus Torvalds|;
- s|GNU/Linux kernel|Linux kernel|;
- s|GNU/Linux specific kernel|Linux specific kernel|;
- s|GNU/Linux Standard Base|Linux Standard Base|;
- s|GNU/Linux sysfs|Linux sysfs|;
- s|GNU/Linux Virtual Server|Linux Virtual Server|;
- s|GNU/Linux Watchdog|Linux Watchdog|;
- s|GNU/Linux watchdog|Linux watchdog|;
- s|GNU/LinuxHA|LinuxHA|;
- s|GNU/Linux-HA|Linux-HA|;
- s|GNU/LinuxSCSI|LinuxSCSI|;
- s|HA GNU/Linux|HA Linux|;
- s|High-Availability GNU/Linux|High-Availability Linux|;
- s|MkGNU/Linux|MkLinux|;
- s|SEGNU/Linux|SELinux|;
- s|VA GNU/Linux Cluster|VA Linux Cluster|;
- ' $(grep -rlI Linux)
- sed -i 's|Linux|GNU/Linux|;
- s|ArchGNU/Linux|ArchLinux|;
- s|e2fsprogs, typically GNU/Linux|e2fsprogs, typically Linux|;
- s|GNU/GNU|GNU|;
- s|GNU/Linux device|Linux device|;
- s|GNU/Linux Director Daemon|Linux Director Daemon|;
- s|GNU/Linux is a registered trademark of Linus Torvalds|Linux is a registered trademark of Linus Torvalds|;
- s|GNU/Linux kernel|Linux kernel|;
- s|GNU/Linux specific kernel|Linux specific kernel|;
- s|GNU/Linux Standard Base|Linux Standard Base|;
- s|GNU/Linux sysfs|Linux sysfs|;
- s|GNU/Linux Virtual Server|Linux Virtual Server|;
- s|GNU/Linux Watchdog|Linux Watchdog|;
- s|GNU/Linux watchdog|Linux watchdog|;
- s|GNU/LinuxHA|LinuxHA|;
- s|GNU/Linux-HA|Linux-HA|;
- s|GNU/LinuxSCSI|LinuxSCSI|;
- s|HA GNU/Linux|HA Linux|;
- s|High-Availability GNU/Linux|High-Availability Linux|;
- s|MkGNU/Linux|MkLinux|;
- s|SEGNU/Linux|SELinux|;
- s|VA GNU/Linux Cluster|VA Linux Cluster|;
- ' $(grep -rlI Linux | grep .po)
-}
-
-build() {
- cd $srcdir/$pkgname-${pkgname^}-$pkgver
- setarch $CARCH ./autogen.sh
- setarch $CARCH ./configure --prefix=/usr\
- --disable-static\
- --enable-fatal-warnings\
- --enable-systemd\
- --enable-upstart\
- --libdir=/usr/lib\
- --libexecdir=/usr/lib\
- --localstatedir=/var\
- --sbindir=/usr/bin\
- --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
-
- rm $pkgdir/etc/rc.d/pacemaker{_remote,} && rmdir $pkgdir/etc{/rc.d,}
- mv $pkgdir/{var/,}run
- mv $pkgdir/usr/bin/cibsecret{,-$pkgname}
-}
-
-# vim:set ts=2 sw=2 et: