diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2013-07-04 12:48:55 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-07-08 10:35:58 +0200 |
| commit | a0726a33b3f9eac73ecd63314866fae7d956094a (patch) | |
| tree | 1a378d50e4c35e0a393bacc8e9c2014c17131f3c /meta-oe/recipes-benchmark/lmbench | |
| parent | 77bc54f180eed8ce1ec2712e3c6aa00b2c7ac1b4 (diff) | |
| download | meta-openembedded-a0726a33b3f9eac73ecd63314866fae7d956094a.tar.gz | |
lmbench: remove /run/lmbench from package
Create /run/lmbench on startup using populate-volatiles.sh and
tmpfiles.d for systemd.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-benchmark/lmbench')
| -rw-r--r-- | meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb index 31a1109045..d42d62c900 100644 --- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb +++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb | |||
| @@ -37,9 +37,18 @@ do_compile () { | |||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | do_install () { | 39 | do_install () { |
| 40 | install -d ${D}${localstatedir}/run/lmbench \ | 40 | install -d ${D}${sysconfdir}/default/volatiles \ |
| 41 | ${D}${bindir} ${D}${mandir} ${D}${libdir}/lmbench \ | 41 | ${D}${bindir} ${D}${mandir} ${D}${libdir}/lmbench \ |
| 42 | ${D}${datadir}/lmbench/scripts | 42 | ${D}${datadir}/lmbench/scripts |
| 43 | |||
| 44 | echo "d root root 0755 ${localstatedir}/run/${BPN} none" \ | ||
| 45 | > ${D}${sysconfdir}/default/volatiles/99_lmbench | ||
| 46 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 47 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
| 48 | echo "d /run/${BPN} - - - -" \ | ||
| 49 | > ${D}${sysconfdir}/tmpfiles.d/lmbench.conf | ||
| 50 | fi | ||
| 51 | |||
| 43 | oe_runmake 'BASE=${D}${prefix}' \ | 52 | oe_runmake 'BASE=${D}${prefix}' \ |
| 44 | -C src install | 53 | -C src install |
| 45 | mv ${D}${bindir}/line ${D}${bindir}/lm_line | 54 | mv ${D}${bindir}/line ${D}${bindir}/lm_line |
| @@ -52,5 +61,15 @@ do_install () { | |||
| 52 | install -m 0755 ${S}/scripts/* ${D}${datadir}/lmbench/scripts | 61 | install -m 0755 ${S}/scripts/* ${D}${datadir}/lmbench/scripts |
| 53 | } | 62 | } |
| 54 | 63 | ||
| 64 | pkg_postinst_${PN} () { | ||
| 65 | if [ -z "$D" ]; then | ||
| 66 | if command -v systemd-tmpfiles >/dev/null; then | ||
| 67 | systemd-tmpfiles --create | ||
| 68 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | ||
| 69 | ${sysconfdir}/init.d/populate-volatile.sh update | ||
| 70 | fi | ||
| 71 | fi | ||
| 72 | } | ||
| 73 | |||
| 55 | RDEPENDS_${PN} = "debianutils" | 74 | RDEPENDS_${PN} = "debianutils" |
| 56 | FILES_${PN} += "${datadir}/lmbench ${libdir}/lmbench" | 75 | FILES_${PN} += "${datadir}/lmbench ${libdir}/lmbench" |
