wok view snapper/receipt @ rev 25621
Add sngrep
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 31 08:29:57 2023 +0000 (14 months ago) |
parents | bc2b9d9bed6f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="snapper"
4 VERSION="0.8.7"
5 CATEGORY="base-system"
6 SHORT_DESC="The ultimate snapshot tool for Linux."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/openSUSE/snapper/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="ftp://ftp.suse.com/pub/projects/snapper/$TARBALL"
14 DEPENDS="acl attr dbus gcc83-lib-base libboost-system libboost-thread libxml2 \
15 util-linux-blkid util-linux-mount util-linux-uuid zlib"
16 BUILD_DEPENDS="btrfs-dev dbus-dev docbook-xsl e2fsprogs-dev gcc83
17 libboost-dev libboost-thread-dev libjson-c-dev lvm2 pkg-config
18 util-linux-mount-dev util-linux-uuid"
20 CONFIG_FILES="/etc/snapper"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://github.com/openSUSE/snapper/tags 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 export LDFLAGS="$LDFLAGS -luuid"
34 ./configure \
35 CC=gcc-83 \
36 CXX=g++-83 \
37 --prefix=/usr \
38 --infodir=/usr/share/info \
39 --mandir=/usr/share/man \
40 --disable-pam \
41 $CONFIGURE_ARGS &&
42 make &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share
50 mkdir -p $fs/usr/lib
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/lib/zypp $fs/usr/lib
56 cp -a $install/usr/lib/snapper $fs/usr/lib
57 cp -a $install/usr/share/dbus* $fs/usr/share
58 cp -a $install/usr/share/locale $fs/usr/share
59 cp -a $install/etc $fs
60 }