* [Buildroot] [PATCH 1/1] package/cups: enable systemd services
@ 2019-11-01 1:18 James Hilliard
0 siblings, 0 replies; only message in thread
From: James Hilliard @ 2019-11-01 1:18 UTC (permalink / raw)
To: buildroot
These are normally enabled by systemctl preset-all.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/cups/cups.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/cups/cups.mk b/package/cups/cups.mk
index bc2913b428..68fb4473c4 100644
--- a/package/cups/cups.mk
+++ b/package/cups/cups.mk
@@ -70,4 +70,18 @@ else
CUPS_CONF_OPTS += --disable-avahi
endif
+define CUPS_INSTALL_INIT_SYSTEMD
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf ../../../../lib/systemd/system/org.cups.cupsd.path \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/org.cups.cupsd.path
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/printer.target.wants
+ ln -sf ../../../../lib/systemd/system/org.cups.cupsd.service \
+ $(TARGET_DIR)/etc/systemd/system/printer.target.wants/org.cups.cupsd.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants
+ ln -sf ../../../../lib/systemd/system/org.cups.cupsd.socket \
+ $(TARGET_DIR)/etc/systemd/system/sockets.target.wants/org.cups.cupsd.socket
+ ln -sf ../../../../lib/systemd/system/org.cups.cups-lpd.socket \
+ $(TARGET_DIR)/etc/systemd/system/sockets.target.wants/org.cups.cups-lpd.socket
+endef
+
$(eval $(autotools-package))
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-01 1:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 1:18 [Buildroot] [PATCH 1/1] package/cups: enable systemd services James Hilliard
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.