summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/snapper/snapper_0.11.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/snapper/snapper_0.11.2.bb')
-rw-r--r--meta-oe/recipes-support/snapper/snapper_0.11.2.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/snapper/snapper_0.11.2.bb b/meta-oe/recipes-support/snapper/snapper_0.11.2.bb
new file mode 100644
index 0000000000..887615ef45
--- /dev/null
+++ b/meta-oe/recipes-support/snapper/snapper_0.11.2.bb
@@ -0,0 +1,40 @@
1SUMMARY = "Snapper is a tool for Linux file system snapshot management"
2HOMEPAGE = "https://github.com/openSUSE/snapper"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6DEPENDS = "acl boost btrfs-tools dbus e2fsprogs json-c libxml2 lvm2 ncurses zlib"
7
8# Build separation is slightly broken
9inherit autotools-brokensep pkgconfig gettext
10
11SRC_URI = " \
12 git://github.com/openSUSE/snapper.git;protocol=https;branch=master \
13 file://0001-Include-linux-types.h-for-__u16-__u32-__u64-type.patch \
14 file://0002-Use-statvfs-instead-of-statvfs64.patch \
15"
16SRCREV = "6c603565f36e9996d85045c8012cd04aba5f3708"
17
18
19EXTRA_OECONF += "--disable-zypp"
20
21PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'api-documentation systemd pam', d)}"
22PACKAGECONFIG[pam] = "--enable-pam --with-pam-security=${base_libdir}/security, --disable-pam,libpam"
23PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd"
24PACKAGECONFIG[api-documentation] = "--enable-doc,--disable-doc,libxslt-native docbook-xsl-stylesheets-native"
25
26# Avoid HOSTTOOLS path in binaries
27export DIFFBIN = "${bindir}/diff"
28export RMBIN = "${bindir}/rm"
29export TOUCHBIN = "${bindir}/touch"
30export CPBIN = "${bindir}/cp"
31
32do_install:append() {
33 install -d ${D}${sysconfdir}/sysconfig
34 install -m0644 ${S}/data/default-config ${D}${sysconfdir}/sysconfig/snapper
35}
36
37FILES:${PN} += "${base_libdir}/security ${nonarch_libdir} ${systemd_system_unitdir} ${datadir}"
38
39# bash is needed for the testsuite
40RDEPENDS:${PN} = "bash diffutils util-linux util-linux-mount"