void-packages/srcpkgs/keepalived/template

24 lines
801 B
Bash

# Template file for 'keepalived'
pkgname=keepalived
version=2.0.13
revision=1
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-or-later"
homepage="http://www.keepalived.org/"
distfiles="http://www.keepalived.org/software/${pkgname}-${version}.tar.gz"
checksum=c7fb38e8a322fb898fb9f6d5d566827a30aa5a4cd1774f474bb4041c85bcbc46
conf_files="/etc/keepalived/keepalived.conf"
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
}