Add missing files for systemd
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-multimedia / avsystem / avsystem.inc
index 6a9020c..bc028a5 100644 (file)
@@ -2,13 +2,13 @@ DESCRIPTION = "Audio Video System"
 HOMEPAGE = "http://nohomepage.org"
 SECTION = "System/Libraries"
 LICENSE = "Apache-2.0"
-PV = "0.5.5"
+PV = "0.5.6"
 
 SRC_URI = ""
 
 S = "${WORKDIR}/git"
 
-inherit manifest autotools-brokensep
+inherit manifest autotools-brokensep 
 
 BBCLASSEXTEND = ""
 PROVIDES = ""
@@ -47,7 +47,7 @@ DEPENDS += "alsa-scenario"
 do_prep() {
  cd ${S}
  chmod -Rf a+rX,u+w,g-w,o-w ${S}
- #setup -q -n avsystem-0.5.5
+ #setup -q -n avsystem-0.5.6
  cp ${S}/packaging/avsystem.manifest .
  
  
@@ -70,7 +70,7 @@ do_compile() {
   
   autotools_do_configure
   
-  oe_runmake ${PARALLEL_MAKE}
+  oe_runmake
   
   
   
@@ -101,6 +101,10 @@ do_install() {
  install -m 0644 ${S}/packaging/avsystem.service ${D}${systemd_unitdir}/system/avsystem.service
  ln -sf ../avsystem.service ${D}${systemd_unitdir}/system/multi-user.target.wants/avsystem.service
  
+ mkdir -m 755 -p ${D}/etc/rc.d/rc3.d/
+ mkdir -m 755 -p ${D}/etc/rc.d/rc4.d/
+ ln -sf ../init.d/snd_init ${D}/etc/rc.d/rc3.d/S15snd_init
+ ln -sf ../init.d/snd_init ${D}/etc/rc.d/rc4.d/S15snd_init
  
  
 }
@@ -112,25 +116,6 @@ 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
 
@@ -138,13 +123,6 @@ pkg_postrm_libavsysaudio() {
 
 }
 
-pkg_postrm_${PN}() {
-    #!/bin/sh -e
-
-    systemctl daemon-reload
-
-}
-
 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
 PACKAGES += " avsystem "
 PACKAGES += " avsystem-dev "
@@ -154,6 +132,9 @@ avsystem_files = ""
 avsystem_files += "${prefix}/bin/*"
 avsystem_files += "${systemd_unitdir}/system/avsystem.service"
 avsystem_files += "${systemd_unitdir}/system/multi-user.target.wants/avsystem.service"
+avsystem_files += "/etc/rc.d/init.d/snd_init"
+avsystem_files += "/etc/rc.d/rc3.d/S15snd_init"
+avsystem_files += "/etc/rc.d/rc4.d/S15snd_init"
 MANIFESTFILES_${PN} = "avsystem.manifest"
 
 avsystem-dev_files = ""