Use systemd, useradd class to handle properly user creation and systemd script...
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-multimedia / avsystem / avsystem.inc
index 315e6a8..31d3df9 100644 (file)
@@ -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 "