avahi: Install backup definition - bug#12714

Message ID 20211029171134.2730006-1-adolf.belka@ipfire.org
State Accepted
Commit 2d78849475f1c3ce33e10ae0890fe9187907b960
Headers
Series avahi: Install backup definition - bug#12714 |

Commit Message

Adolf Belka Oct. 29, 2021, 5:11 p.m. UTC
  - Addition of backup definition install into lfs file
- Update of rootfile

Fixes: 12714
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/packages/avahi | 1 +
 lfs/avahi                       | 8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)
  

Comments

Peter Müller Oct. 30, 2021, 8:57 a.m. UTC | #1
Looks good to me.

Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> - Addition of backup definition install into lfs file
> - Update of rootfile
> 
> Fixes: 12714
> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
> ---
>  config/rootfiles/packages/avahi | 1 +
>  lfs/avahi                       | 8 ++++++--
>  2 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/config/rootfiles/packages/avahi b/config/rootfiles/packages/avahi
> index e6ab0c0ff..0a88be7f0 100644
> --- a/config/rootfiles/packages/avahi
> +++ b/config/rootfiles/packages/avahi
> @@ -175,3 +175,4 @@ usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml
>  #usr/share/man/man8/avahi-daemon.8
>  #usr/share/man/man8/avahi-dnsconfd.8
>  #usr/share/man/man8/avahi-dnsconfd.action.8
> +var/ipfire/backup/addons/includes/avahi
> diff --git a/lfs/avahi b/lfs/avahi
> index ae166a88c..795ba4130 100644
> --- a/lfs/avahi
> +++ b/lfs/avahi
> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
>  DIR_APP    = $(DIR_SRC)/$(THISAPP)
>  TARGET = $(DIR_INFO)/$(THISAPP)
>  PROG       = avahi
> -PAK_VER    = 8
> +PAK_VER    = 9
>  
>  DEPS       = dbus libdaemon
>  
> @@ -102,6 +102,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>  
>  	# Install initscript
>  	$(call INSTALL_INITSCRIPT,avahi)
> -
> +	
> +	#install backup definition
> +	install -v -m 644 ${DIR_SRC}/config/backup/includes/avahi \
> +			/var/ipfire/backup/addons/includes/avahi
> +			
>  	@rm -rf $(DIR_APP)
>  	@$(POSTBUILD)
>
  

Patch

diff --git a/config/rootfiles/packages/avahi b/config/rootfiles/packages/avahi
index e6ab0c0ff..0a88be7f0 100644
--- a/config/rootfiles/packages/avahi
+++ b/config/rootfiles/packages/avahi
@@ -175,3 +175,4 @@  usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml
 #usr/share/man/man8/avahi-daemon.8
 #usr/share/man/man8/avahi-dnsconfd.8
 #usr/share/man/man8/avahi-dnsconfd.action.8
+var/ipfire/backup/addons/includes/avahi
diff --git a/lfs/avahi b/lfs/avahi
index ae166a88c..795ba4130 100644
--- a/lfs/avahi
+++ b/lfs/avahi
@@ -32,7 +32,7 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET = $(DIR_INFO)/$(THISAPP)
 PROG       = avahi
-PAK_VER    = 8
+PAK_VER    = 9
 
 DEPS       = dbus libdaemon
 
@@ -102,6 +102,10 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 	# Install initscript
 	$(call INSTALL_INITSCRIPT,avahi)
-
+	
+	#install backup definition
+	install -v -m 644 ${DIR_SRC}/config/backup/includes/avahi \
+			/var/ipfire/backup/addons/includes/avahi
+			
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)