diff options
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.bb | 40 |
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 @@ | |||
1 | SUMMARY = "Snapper is a tool for Linux file system snapshot management" | ||
2 | HOMEPAGE = "https://github.com/openSUSE/snapper" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
5 | |||
6 | DEPENDS = "acl boost btrfs-tools dbus e2fsprogs json-c libxml2 lvm2 ncurses zlib" | ||
7 | |||
8 | # Build separation is slightly broken | ||
9 | inherit autotools-brokensep pkgconfig gettext | ||
10 | |||
11 | SRC_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 | " | ||
16 | SRCREV = "6c603565f36e9996d85045c8012cd04aba5f3708" | ||
17 | |||
18 | |||
19 | EXTRA_OECONF += "--disable-zypp" | ||
20 | |||
21 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'api-documentation systemd pam', d)}" | ||
22 | PACKAGECONFIG[pam] = "--enable-pam --with-pam-security=${base_libdir}/security, --disable-pam,libpam" | ||
23 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" | ||
24 | PACKAGECONFIG[api-documentation] = "--enable-doc,--disable-doc,libxslt-native docbook-xsl-stylesheets-native" | ||
25 | |||
26 | # Avoid HOSTTOOLS path in binaries | ||
27 | export DIFFBIN = "${bindir}/diff" | ||
28 | export RMBIN = "${bindir}/rm" | ||
29 | export TOUCHBIN = "${bindir}/touch" | ||
30 | export CPBIN = "${bindir}/cp" | ||
31 | |||
32 | do_install:append() { | ||
33 | install -d ${D}${sysconfdir}/sysconfig | ||
34 | install -m0644 ${S}/data/default-config ${D}${sysconfdir}/sysconfig/snapper | ||
35 | } | ||
36 | |||
37 | FILES:${PN} += "${base_libdir}/security ${nonarch_libdir} ${systemd_system_unitdir} ${datadir}" | ||
38 | |||
39 | # bash is needed for the testsuite | ||
40 | RDEPENDS:${PN} = "bash diffutils util-linux util-linux-mount" | ||