blob: 72b847be30b2faf65271dbbfbffb621eb9663f69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
PACKAGE_WRITE_DEPS += "attr-native"
inherit qemu
XATTR_PACKAGES ??= "${PN}"
xattr_settings_common() {
if [ "x$D" != "x" ]; then
$INTERCEPT_DIR/postinst_intercept setfattr -n user.name -v test ${bindir}/curl
else
${bindir}/setfattr -n user.name -v test ${bindir}/curl
fi
}
python populate_packages_append () {
packages = d.getVar('XATTR_PACKAGES').split()
for pkg in packages:
bb.note("adding xattr postinst script to %s" % pkg)
postinst = d.getVar('pkg_postinst_%s' % pkg)
if not postinst:
postinst = '#!/bin/sh\n'
postinst += d.getVar('xattr_settings_common')
d.setVar('pkg_postinst_%s' % pkg, postinst)
}
|