2013-11-05 12:06:16 +01:00
|
|
|
# Template file for 'snapper'
|
|
|
|
pkgname=snapper
|
2014-11-11 18:43:59 +01:00
|
|
|
version=0.2.4
|
2014-06-25 16:52:06 +02:00
|
|
|
revision=1
|
2014-04-02 10:33:54 +02:00
|
|
|
lib32disabled=yes
|
2013-11-05 12:06:16 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-zypp --with-conf=/etc/conf.d"
|
|
|
|
hostmakedepends="pkg-config automake libtool libxml2-devel libxslt docbook-xsl"
|
2014-06-25 16:52:06 +02:00
|
|
|
makedepends="zlib-devel boost-devel>=1.54 dbus-devel libxml2-devel pam-devel
|
|
|
|
acl-devel libmount-devel libbtrfs-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/conf.d/snapper"
|
2013-11-05 12:09:26 +01:00
|
|
|
short_desc="Tool for Linux filesystem snapshot management"
|
2013-11-05 12:06:16 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://snapper.io"
|
|
|
|
distfiles="ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$version.tar.bz2"
|
2014-11-11 18:43:59 +01:00
|
|
|
checksum=8fc70b8e7a39dc3249ce9141e2c5f0623bb80f8e4150a543d8ed04d2ad27f399
|
2013-11-05 12:06:16 +01: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
|
2014-11-11 18:43:59 +01:00
|
|
|
|
|
|
|
vsv snapperd
|
2013-11-05 12:06:16 +01: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"
|
|
|
|
}
|
|
|
|
}
|