From eef1aaff9ae5f6271a9a0aa7507ba443017ca88f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 5 Nov 2013 12:06:16 +0100 Subject: [PATCH] New package: snapper-0.1.7. --- common/shlibs | 1 + srcpkgs/libsnapper | 1 + srcpkgs/snapper-devel | 1 + srcpkgs/snapper/template | 56 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 120000 srcpkgs/libsnapper create mode 120000 srcpkgs/snapper-devel create mode 100644 srcpkgs/snapper/template diff --git a/common/shlibs b/common/shlibs index fda9758e7a5..c1efa21d08f 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1435,3 +1435,4 @@ libglusterfs.so.0 libglusterfs-3.4.1_1 libgfrpc.so.0 libglusterfs-3.4.1_1 libgfxdr.so.0 libglusterfs-3.4.1_1 libgfapi.so.0 libglusterfs-3.4.1_1 +libsnapper.so.2 libsnapper-0.1.7_1 diff --git a/srcpkgs/libsnapper b/srcpkgs/libsnapper new file mode 120000 index 00000000000..e56c83abd1d --- /dev/null +++ b/srcpkgs/libsnapper @@ -0,0 +1 @@ +snapper \ No newline at end of file diff --git a/srcpkgs/snapper-devel b/srcpkgs/snapper-devel new file mode 120000 index 00000000000..e56c83abd1d --- /dev/null +++ b/srcpkgs/snapper-devel @@ -0,0 +1 @@ +snapper \ No newline at end of file diff --git a/srcpkgs/snapper/template b/srcpkgs/snapper/template new file mode 100644 index 00000000000..f52f86938a1 --- /dev/null +++ b/srcpkgs/snapper/template @@ -0,0 +1,56 @@ +# Template file for 'snapper' +pkgname=snapper +version=0.1.7 +revision=1 +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>=1.54 dbus-devel libxml2-devel pam-devel" +short_desc="The GNU stream editor" +maintainer="Juan RP " +license="GPL-2" +homepage="http://snapper.io" +distfiles="ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$version.tar.bz2" +checksum=fcb8d98aa36021970b214a2b6ea85f86aa29e107559bf677226e2e4ade2c6ed0 + +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 +} + +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" + } +} + +snapper_package() { + conf_files="/etc/conf.d/snapper" + pkg_install() { + vmove all + } +}