All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] avahi: enable service when using systemd
@ 2011-06-01 14:22 Koen Kooi
  2011-06-01 14:25 ` Koen Kooi
  2011-06-03  0:13 ` Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Koen Kooi @ 2011-06-01 14:22 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta/recipes-connectivity/avahi/avahi.inc       |   20 +++++++++++++++++++-
 meta/recipes-connectivity/avahi/avahi_0.6.30.bb |    2 +-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index 099c5a4..e631ac5 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -44,7 +44,25 @@ EXTRA_OECONF = "--with-distro=debian \
 PACKAGES =+ "avahi-systemd avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-gobject avahi-autoipd avahi-ui-utils avahi-utils libavahi-ui libavahi-ui-dev"
 
 FILES_avahi-systemd = "${base_libdir}/systemd"
-RDEPENDS_avahi-systemd = "avahi-daemon"
+RDEPENDS_avahi-systemd = "avahi-daemon systemd"
+
+pkg_postinst_avahi-systemd() {
+	# can't do this offline
+	if [ "x$D" != "x" ]; then
+		exit 1
+	fi
+	
+	systemctl enable avahi-daemon.service
+}
+
+pkg_postrm_avahi-systemd() {
+	# can't do this offline
+	if [ "x$D" != "x" ]; then
+		exit 1
+	fi
+
+	systemctl disable avahi-daemon.service
+}
 
 FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
 FILES_libavahi-core = "${libdir}/libavahi-core.so.*"
diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
index e63f406..9d10800 100644
--- a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
+++ b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                     file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf"
 
 RDEPENDS_avahi-daemon = "sysvinit-pidof"
-PR = "r1"
+PR = "r2"
 
 EXTRA_OECONF += "--disable-gtk3"
 
-- 
1.6.6.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] avahi: enable service when using systemd
  2011-06-01 14:22 [PATCH] avahi: enable service when using systemd Koen Kooi
@ 2011-06-01 14:25 ` Koen Kooi
  2011-06-03  0:13 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2011-06-01 14:25 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

scratch that one, the RDEPENDS change makes it depend on meta-oe


Op 1 jun 2011, om 16:22 heeft Koen Kooi het volgende geschreven:

> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
> meta/recipes-connectivity/avahi/avahi.inc       |   20 +++++++++++++++++++-
> meta/recipes-connectivity/avahi/avahi_0.6.30.bb |    2 +-
> 2 files changed, 20 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
> index 099c5a4..e631ac5 100644
> --- a/meta/recipes-connectivity/avahi/avahi.inc
> +++ b/meta/recipes-connectivity/avahi/avahi.inc
> @@ -44,7 +44,25 @@ EXTRA_OECONF = "--with-distro=debian \
> PACKAGES =+ "avahi-systemd avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-gobject avahi-autoipd avahi-ui-utils avahi-utils libavahi-ui libavahi-ui-dev"
> 
> FILES_avahi-systemd = "${base_libdir}/systemd"
> -RDEPENDS_avahi-systemd = "avahi-daemon"
> +RDEPENDS_avahi-systemd = "avahi-daemon systemd"
> +
> +pkg_postinst_avahi-systemd() {
> +	# can't do this offline
> +	if [ "x$D" != "x" ]; then
> +		exit 1
> +	fi
> +	
> +	systemctl enable avahi-daemon.service
> +}
> +
> +pkg_postrm_avahi-systemd() {
> +	# can't do this offline
> +	if [ "x$D" != "x" ]; then
> +		exit 1
> +	fi
> +
> +	systemctl disable avahi-daemon.service
> +}
> 
> FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
> FILES_libavahi-core = "${libdir}/libavahi-core.so.*"
> diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
> index e63f406..9d10800 100644
> --- a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
> +++ b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
> @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
>                     file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf"
> 
> RDEPENDS_avahi-daemon = "sysvinit-pidof"
> -PR = "r1"
> +PR = "r2"
> 
> EXTRA_OECONF += "--disable-gtk3"
> 
> -- 
> 1.6.6.1
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] avahi: enable service when using systemd
  2011-06-01 14:22 [PATCH] avahi: enable service when using systemd Koen Kooi
  2011-06-01 14:25 ` Koen Kooi
@ 2011-06-03  0:13 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2011-06-03  0:13 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi

On 06/01/2011 07:22 AM, Koen Kooi wrote:
> Signed-off-by: Koen Kooi<koen@dominion.thruhere.net>
> ---
>   meta/recipes-connectivity/avahi/avahi.inc       |   20 +++++++++++++++++++-
>   meta/recipes-connectivity/avahi/avahi_0.6.30.bb |    2 +-
>   2 files changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
> index 099c5a4..e631ac5 100644
> --- a/meta/recipes-connectivity/avahi/avahi.inc
> +++ b/meta/recipes-connectivity/avahi/avahi.inc
> @@ -44,7 +44,25 @@ EXTRA_OECONF = "--with-distro=debian \
>   PACKAGES =+ "avahi-systemd avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-gobject avahi-autoipd avahi-ui-utils avahi-utils libavahi-ui libavahi-ui-dev"
>
>   FILES_avahi-systemd = "${base_libdir}/systemd"
> -RDEPENDS_avahi-systemd = "avahi-daemon"
> +RDEPENDS_avahi-systemd = "avahi-daemon systemd"
> +
> +pkg_postinst_avahi-systemd() {
> +	# can't do this offline
> +	if [ "x$D" != "x" ]; then
> +		exit 1
> +	fi
> +	
> +	systemctl enable avahi-daemon.service
> +}
> +
> +pkg_postrm_avahi-systemd() {
> +	# can't do this offline
> +	if [ "x$D" != "x" ]; then
> +		exit 1
> +	fi
> +
> +	systemctl disable avahi-daemon.service
> +}
>
>   FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
>   FILES_libavahi-core = "${libdir}/libavahi-core.so.*"
> diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
> index e63f406..9d10800 100644
> --- a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
> +++ b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb
> @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
>                       file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf"
>
>   RDEPENDS_avahi-daemon = "sysvinit-pidof"
> -PR = "r1"
> +PR = "r2"
>
>   EXTRA_OECONF += "--disable-gtk3"
>
Merged into oe-core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-03  0:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 14:22 [PATCH] avahi: enable service when using systemd Koen Kooi
2011-06-01 14:25 ` Koen Kooi
2011-06-03  0:13 ` Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.