void-packages/srcpkgs/keepalived/template

23 lines
786 B
Bash

# Template file for 'keepalived'
pkgname=keepalived
version=1.4.2
revision=3
conf_files="/etc/${pkgname}/${pkgname}.conf"
build_style=gnu-configure
configure_args="--enable-sha1"
hostmakedepends="pkg-config"
makedepends="libressl-devel libnl3-devel popt-devel libnfnetlink-devel"
short_desc="Failover and monitoring daemon for LVS clusters"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2"
homepage="http://www.keepalived.org/"
distfiles="http://www.keepalived.org/software/$pkgname-$version.tar.gz"
checksum=4e2d7cc01a6ee29a3955f5c622d47704ba7d9dd758189f15e9def016a2d1faa3
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
}