void-packages/srcpkgs/keepalived/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

22 lines
783 B
Bash

# Template file for 'keepalived'
pkgname=keepalived
version=1.2.15
revision=2
conf_files="/etc/${pkgname}/${pkgname}.conf"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --enable-sha1"
hostmakedepends="pkg-config"
makedepends="libressl-devel libnl3-devel popt-devel"
short_desc="Failover and monitoring daemon for LVS clusters"
maintainer="Juan RP <xtraeme@gmail.com>"
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
}