diff --git a/srcpkgs/keepalived/files/keepalived/run b/srcpkgs/keepalived/files/keepalived/run new file mode 100644 index 0000000000..bec8c0de5e --- /dev/null +++ b/srcpkgs/keepalived/files/keepalived/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec keepalived --dont-fork diff --git a/srcpkgs/keepalived/template b/srcpkgs/keepalived/template new file mode 100644 index 0000000000..674ffe0402 --- /dev/null +++ b/srcpkgs/keepalived/template @@ -0,0 +1,22 @@ +# Template file for 'keepalived' +pkgname=keepalived +version=1.2.15 +revision=1 +conf_files="/etc/${pkgname}/${pkgname}.conf" +build_style=gnu-configure +configure_args="--sbindir=/usr/bin --enable-sha1" +hostmakedepends="pkg-config" +makedepends="libssl-devel libnl3-devel popt-devel" +short_desc="Failover and monitoring daemon for LVS clusters" +maintainer="Juan RP " +license="GPL-2" +homepage="http://www.keepalived.org/" +distfiles="http://www.keepalived.org/software/$pkgname-$version.tar.gz" +checksum=47db44d78549da704e0794198bfc874be65ca570d15429a6a5c23b8d91109aa9 + +post_install() { + vsv $pkgname + rm -rf ${DESTDIR}/etc/rc.d ${DESTDIR}/etc/sysconfig + vmkdir usr/share/examples/$pkgname + mv ${DESTDIR}/etc/$pkgname/samples/* ${DESTDIR}/usr/share/examples/$pkgname +}