mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
x11-common: use ${sysconfdir} instead of /etc for packaging
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. (From OE-Core rev: 5082056a4671570ca4578da2f622b3cc6f9f2dda) Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4efdf2c82f
commit
7d17a8ebf1
@@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts and configuration files"
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
PR = "r44"
|
PR = "r45"
|
||||||
|
|
||||||
SRC_URI = "file://etc \
|
SRC_URI = "file://etc \
|
||||||
file://gplv2-license.patch"
|
file://gplv2-license.patch"
|
||||||
@@ -12,10 +12,10 @@ S = "${WORKDIR}"
|
|||||||
inherit allarch
|
inherit allarch
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
cp -R ${S}/etc ${D}/etc
|
cp -R ${S}/etc ${D}${sysconfdir}
|
||||||
chmod -R 755 ${D}/etc
|
chmod -R 755 ${D}${sysconfdir}
|
||||||
find ${D}/etc -type d -name .svn -prune -exec rm -rf {} \;
|
find ${D}${sysconfdir} -type d -name .svn -prune -exec rm -rf {} \;
|
||||||
find ${D}/etc -type f -name \*~ -exec rm -rf {} \;
|
find ${D}${sysconfdir} -type f -name \*~ -exec rm -rf {} \;
|
||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xtscal xinit formfactor"
|
RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xtscal xinit formfactor"
|
||||||
|
|||||||
Reference in New Issue
Block a user