public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Add backup/include for cups
@ 2022-03-11 12:57 Daniel Weismueller
  2022-03-19 22:05 ` Adolf Belka
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Weismueller @ 2022-03-11 12:57 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

To solve the behavior discribed in bug 12404 I added the path
 /var/ipfire/cups to the backup.

Signed-off-by: Daniel Weismueller <daniel.weismueller(a)ipfire.org>
---
 config/backup/includes/cups    | 1 +
 config/rootfiles/packages/cups | 1 +
 lfs/cups                       | 3 +++
 3 files changed, 5 insertions(+)
 create mode 100644 config/backup/includes/cups

diff --git a/config/backup/includes/cups b/config/backup/includes/cups
new file mode 100644
index 000000000..445413c2f
--- /dev/null
+++ b/config/backup/includes/cups
@@ -0,0 +1 @@
+/var/ipfire/cups
diff --git a/config/rootfiles/packages/cups b/config/rootfiles/packages/cups
index f9d15bc8b..1143df6d5 100644
--- a/config/rootfiles/packages/cups
+++ b/config/rootfiles/packages/cups
@@ -837,6 +837,7 @@ usr/share/locale/zh_CN/cups_zh_CN.po
 #usr/share/man/man8/lpmove.8
 var/cache/cups
 var/cache/cups/rss
+var/ipfire/backup/addons/includes/cups
 #var/ipfire/cups
 var/ipfire/cups/cups-files.conf
 var/ipfire/cups/cups-files.conf.default
diff --git a/lfs/cups b/lfs/cups
index 99c9c8887..5c5aef5f8 100644
--- a/lfs/cups
+++ b/lfs/cups
@@ -94,6 +94,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 	cd $(DIR_APP) && ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb
 
+	install -v -m 644 $(DIR_SRC)/config/backup/includes/cups \
+                         /var/ipfire/backup/addons/includes/cups
+
 	# install initscript
 	$(call INSTALL_INITSCRIPT,cups)
 	cp -fv $(DIR_SRC)/config/cups/cupsd.conf /var/ipfire/cups/
-- 
2.34.1


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

* Re: [PATCH] Add backup/include for cups
  2022-03-11 12:57 [PATCH] Add backup/include for cups Daniel Weismueller
@ 2022-03-19 22:05 ` Adolf Belka
  0 siblings, 0 replies; 2+ messages in thread
From: Adolf Belka @ 2022-03-19 22:05 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1698 bytes --]

Reviewed-by: Adolf Belka <adolf.belka(a)ipfire.org>

On 11/03/2022 13:57, Daniel Weismueller wrote:
> To solve the behavior discribed in bug 12404 I added the path
>   /var/ipfire/cups to the backup.
>
> Signed-off-by: Daniel Weismueller <daniel.weismueller(a)ipfire.org>
> ---
>   config/backup/includes/cups    | 1 +
>   config/rootfiles/packages/cups | 1 +
>   lfs/cups                       | 3 +++
>   3 files changed, 5 insertions(+)
>   create mode 100644 config/backup/includes/cups
>
> diff --git a/config/backup/includes/cups b/config/backup/includes/cups
> new file mode 100644
> index 000000000..445413c2f
> --- /dev/null
> +++ b/config/backup/includes/cups
> @@ -0,0 +1 @@
> +/var/ipfire/cups
> diff --git a/config/rootfiles/packages/cups b/config/rootfiles/packages/cups
> index f9d15bc8b..1143df6d5 100644
> --- a/config/rootfiles/packages/cups
> +++ b/config/rootfiles/packages/cups
> @@ -837,6 +837,7 @@ usr/share/locale/zh_CN/cups_zh_CN.po
>   #usr/share/man/man8/lpmove.8
>   var/cache/cups
>   var/cache/cups/rss
> +var/ipfire/backup/addons/includes/cups
>   #var/ipfire/cups
>   var/ipfire/cups/cups-files.conf
>   var/ipfire/cups/cups-files.conf.default
> diff --git a/lfs/cups b/lfs/cups
> index 99c9c8887..5c5aef5f8 100644
> --- a/lfs/cups
> +++ b/lfs/cups
> @@ -94,6 +94,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>   
>   	cd $(DIR_APP) && ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb
>   
> +	install -v -m 644 $(DIR_SRC)/config/backup/includes/cups \
> +                         /var/ipfire/backup/addons/includes/cups
> +
>   	# install initscript
>   	$(call INSTALL_INITSCRIPT,cups)
>   	cp -fv $(DIR_SRC)/config/cups/cupsd.conf /var/ipfire/cups/

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

end of thread, other threads:[~2022-03-19 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-11 12:57 [PATCH] Add backup/include for cups Daniel Weismueller
2022-03-19 22:05 ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox