[2/2] cups: Add link at /etc/cups pointing to configuration

Message ID 20220725160204.3885100-2-michael.tremer@ipfire.org
State Accepted
Commit 71aba971c455ac695bef6a3d41ed8563a53f9a44
Headers
Series [1/2] cups-pdf: New package |

Commit Message

Michael Tremer July 25, 2022, 4:02 p.m. UTC
  This is needed because cups-pdf is looking for its configuration file in
/etc/cups.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/rootfiles/packages/cups | 1 +
 lfs/cups                       | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
  

Patch

diff --git a/config/rootfiles/packages/cups b/config/rootfiles/packages/cups
index 18987be0e..65ad4f418 100644
--- a/config/rootfiles/packages/cups
+++ b/config/rootfiles/packages/cups
@@ -1,3 +1,4 @@ 
+etc/cups
 etc/dbus-1/system.d/cups.conf
 etc/pam.d/cups
 etc/rc.d/init.d/cups
diff --git a/lfs/cups b/lfs/cups
index d333532e3..312f165d8 100644
--- a/lfs/cups
+++ b/lfs/cups
@@ -33,7 +33,7 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/cups-$(VER)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = cups
-PAK_VER    = 27
+PAK_VER    = 28
 
 DEPS       = avahi cups-filters dbus ghostscript
 
@@ -104,5 +104,8 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	$(call INSTALL_INITSCRIPTS,$(SERVICES))
 	cp -fv $(DIR_SRC)/config/cups/cupsd.conf /var/ipfire/cups/
 
+	# Install convenience link
+	ln -svf /var/ipfire/cups /etc/cups
+
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)