Patchwork avahi: systemd postinst and postrm removed in favor of using systemd.bbclass

login
register
mail settings
Submitter Sander van Grieken
Date Aug. 30, 2012, 11:33 a.m.
Message ID <1346326420-23677-1-git-send-email-sander@outrightsolutions.nl>
Download mbox | patch
Permalink /patch/35537/
State Accepted
Commit 277d2fbe50a88a9aa830efd5e06b327e04ecd72d
Headers show

Comments

Sander van Grieken - Aug. 30, 2012, 11:33 a.m.
The recipe's custom systemd service enable code is now handled by the meta-systemd
bbappend recipe in meta-openembedded.

Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
---
 meta/recipes-connectivity/avahi/avahi.inc |   19 -------------------
 1 file changed, 19 deletions(-)
Saul Wold - Sept. 4, 2012, 2:44 p.m.
On 08/30/2012 04:33 AM, Sander van Grieken wrote:
> The recipe's custom systemd service enable code is now handled by the meta-systemd
> bbappend recipe in meta-openembedded.
>
> Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
> ---
>   meta/recipes-connectivity/avahi/avahi.inc |   19 -------------------
>   1 file changed, 19 deletions(-)
>
> diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
> index c08acb5..a0a1681 100644
> --- a/meta/recipes-connectivity/avahi/avahi.inc
> +++ b/meta/recipes-connectivity/avahi/avahi.inc
> @@ -155,22 +155,3 @@ pkg_postrm_avahi-autoipd () {
>   	deluser avahi-autoipd || true
>   	delgroup avahi-autoipd || true
>   }
> -
> -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
> -}
> -
>

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index c08acb5..a0a1681 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -155,22 +155,3 @@  pkg_postrm_avahi-autoipd () {
 	deluser avahi-autoipd || true
 	delgroup avahi-autoipd || true
 }
-
-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
-}
-