Files
meta-openembedded/meta-oe/recipes-support/snapper/snapper_0.11.2.bb
T
Yi Zhao 83a8e761ed snapper: set pam module path to ${base_libdir}/security
Set pam module path to ${base_libdir}/security as this is the default
path in libpam.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-01-06 07:22:29 -08:00

42 lines
1.5 KiB
BlitzBasic

SUMMARY = "Snapper is a tool for Linux file system snapshot management"
HOMEPAGE = "https://github.com/openSUSE/snapper"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "acl boost btrfs-tools dbus e2fsprogs json-c libxml2 lvm2 ncurses zlib"
# Build separation is slightly broken
inherit autotools-brokensep pkgconfig gettext
SRC_URI = " \
git://github.com/openSUSE/snapper.git;protocol=https;branch=master \
file://0001-Include-linux-types.h-for-__u16-__u32-__u64-type.patch \
file://0002-Use-statvfs-instead-of-statvfs64.patch \
"
SRCREV = "6c603565f36e9996d85045c8012cd04aba5f3708"
S = "${WORKDIR}/git"
EXTRA_OECONF += "--disable-zypp"
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'api-documentation systemd pam', d)}"
PACKAGECONFIG[pam] = "--enable-pam --with-pam-security=${base_libdir}/security, --disable-pam,libpam"
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd"
PACKAGECONFIG[api-documentation] = "--enable-doc,--disable-doc,libxslt-native docbook-xsl-stylesheets-native"
# Avoid HOSTTOOLS path in binaries
export DIFFBIN = "${bindir}/diff"
export RMBIN = "${bindir}/rm"
export TOUCHBIN = "${bindir}/touch"
export CPBIN = "${bindir}/cp"
do_install:append() {
install -d ${D}${sysconfdir}/sysconfig
install -m0644 ${S}/data/default-config ${D}${sysconfdir}/sysconfig/snapper
}
FILES:${PN} += "${base_libdir}/security ${nonarch_libdir} ${systemd_system_unitdir} ${datadir}"
# bash is needed for the testsuite
RDEPENDS:${PN} = "bash diffutils util-linux util-linux-mount"