void-packages/srcpkgs/snapper/template

53 lines
1.5 KiB
Bash
Raw Normal View History

2013-11-05 11:06:16 +00:00
# Template file for 'snapper'
pkgname=snapper
2015-02-27 19:56:32 +00:00
version=0.2.6
2014-06-25 14:52:06 +00:00
revision=1
lib32disabled=yes
2013-11-05 11:06:16 +00:00
build_style=gnu-configure
configure_args="--disable-zypp --with-conf=/etc/conf.d"
hostmakedepends="pkg-config automake libtool libxml2-devel libxslt docbook-xsl"
makedepends="zlib-devel boost-devel dbus-devel libxml2-devel pam-devel
2014-06-25 14:52:06 +00:00
acl-devel libmount-devel libbtrfs-devel"
conf_files="/etc/conf.d/snapper"
2013-11-05 11:09:26 +00:00
short_desc="Tool for Linux filesystem snapshot management"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-11-05 11:06:16 +00:00
license="GPL-2"
homepage="http://snapper.io"
distfiles="ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$version.tar.bz2"
2015-02-27 19:56:32 +00:00
checksum=3390650be0e4709595d28df287a0e5902fb570e9fcb5ba992f435326bc53b75e
2013-11-05 11:06:16 +00:00
pre_configure() {
# rename cron scripts
sed -i -e 's@suse.de-@@g' scripts/Makefile.am
# fix config location in cron scripts
sed -i -e 's@/etc/sysconfig/@/etc/conf.d/@g' scripts/snapper-{daily,hourly}
sed -i -e 's@lboost_thread-mt@lboost_thread@g' snapper/Makefile.am
sed -i -e 's@lboost_system-mt@lboost_system@g' snapper/Makefile.am
# fix pam plugin install location
sed -i -e 's@shell echo /@shell echo /usr/@g' pam/Makefile.am
autoreconf -fi
}
post_install() {
vinstall data/sysconfig.snapper 644 etc/conf.d snapper
vsv snapperd
2013-11-05 11:06:16 +00:00
}
libsnapper_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
snapper-devel_package() {
short_desc+=" - development files"
depends="libsnapper>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}