diff options
author | Baptiste Durand <baptiste.durand@open.eurogiciel.org> | 2015-05-06 14:46:19 +0200 |
---|---|---|
committer | Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org> | 2015-06-16 14:31:25 +0200 |
commit | ea1f8c25a2c98184ac194fc63108d99876cba49b (patch) | |
tree | 03fdd71b96f6516ce3a7f2543e58af70f1216712 | |
parent | 52ecb4cfb6dc957301575d5e7844272d65cda0c8 (diff) | |
download | meta-tizen-ea1f8c25a2c98184ac194fc63108d99876cba49b.tar.gz meta-tizen-ea1f8c25a2c98184ac194fc63108d99876cba49b.tar.bz2 meta-tizen-ea1f8c25a2c98184ac194fc63108d99876cba49b.zip |
Use systemd, useradd class to handle properly user creation and systemd script activation
Change-Id: I7c8387b4f71a7ab2d012895de6445f15ceea105b
Signed-off-by: Baptiste Durand <baptiste.durand@open.eurogiciel.org>
-rw-r--r-- | meta-tizen-common-base/recipes-multimedia/avsystem/avsystem.inc | 29 | ||||
-rw-r--r-- | meta-tizen-common-base/recipes-security/gumd/gumd.inc | 6 |
2 files changed, 5 insertions, 30 deletions
diff --git a/meta-tizen-common-base/recipes-multimedia/avsystem/avsystem.inc b/meta-tizen-common-base/recipes-multimedia/avsystem/avsystem.inc index 315e6a86..31d3df9e 100644 --- a/meta-tizen-common-base/recipes-multimedia/avsystem/avsystem.inc +++ b/meta-tizen-common-base/recipes-multimedia/avsystem/avsystem.inc @@ -8,7 +8,7 @@ SRC_URI = "" S = "${WORKDIR}/git" -inherit manifest autotools-brokensep +inherit manifest autotools-brokensep systemd BBCLASSEXTEND = "" PROVIDES = "" @@ -116,38 +116,13 @@ pkg_postinst_libavsysaudio() { } -pkg_postinst_${PN}() { - #!/bin/sh -e - - systemctl daemon-reload - if [ $1 == 1 ]; then - systemctl restart avsystem.service - fi - -} - -pkg_prerm_${PN}() { - #!/bin/sh -e - - if [ $1 == 0 ]; then - systemctl stop avsystem.service - fi - -} - pkg_postrm_libavsysaudio() { #!/bin/sh -e [ "x$D" == "x" ] && ldconfig } - -pkg_postrm_${PN}() { - #!/bin/sh -e - - systemctl daemon-reload - -} +SYSTEMD_SERVICE_${PN} = "avsystem.service" PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale" PACKAGES += " avsystem " diff --git a/meta-tizen-common-base/recipes-security/gumd/gumd.inc b/meta-tizen-common-base/recipes-security/gumd/gumd.inc index 7789e7bb..da27a726 100644 --- a/meta-tizen-common-base/recipes-security/gumd/gumd.inc +++ b/meta-tizen-common-base/recipes-security/gumd/gumd.inc @@ -8,7 +8,7 @@ SRC_URI = "" S = "${WORKDIR}/git" -inherit manifest autotools-brokensep +inherit manifest autotools-brokensep useradd BBCLASSEXTEND = "" PROVIDES = "" @@ -123,7 +123,6 @@ pkg_postinst_${PN}() { #!/bin/sh -e ldconfig - getent group gumd > /dev/null || groupadd -r gumd mkdir -p $D${sysconfdir}/gumd/useradd.d mkdir -p $D${sysconfdir}/gumd/userdel.d mkdir -p $D${sysconfdir}/gumd/groupadd.d @@ -196,6 +195,7 @@ PKG_libgum-dev= "libgum-dev" PKG_libgum= "libgum" PKG_gumd-doc= "gumd-doc" PKG_gumd= "gumd" - +USERADD_PACKAGES = "${PN}" +GROUPADD_PARAM_${PN} = "-r gumd" require gumd-extraconf.inc |