References #153.
+++ /dev/null
-description "Common Unix Printing System"
-author "IPFire Team"
-
-start on started network
-stop on kill-all-network-services or stopping network
-
-exec /usr/sbin/cupsd -c /etc/cups/cupsd.conf
-expect daemon
-respawn
PKG_NAME = cups
PKG_VER = 1.4.5
-PKG_REL = 3
+PKG_REL = 4
PKG_MAINTAINER =
PKG_GROUPS = Applications/Printing
-mkdir -pv $(BUILDROOT)/etc/logrotate.d/
cp -vf $(DIR_SOURCE)/cups.logrotate $(BUILDROOT)/etc/logrotate.d/cups
endef
+
+# This line has to be added at the installation of cups.
+# File: /lib/udev/rules.d/99-systemd.rules
+# Line: SUBSYSTEM=="usb", ATTR{serial}=="AL01077498", TAG+="systemd", ENV{SYSTEMD_WANTS}="cups.service"
+
--- /dev/null
+[Unit]
+Description=CUPS Printing Service
+
+[Service]
+ExecStart=/usr/sbin/cupsd -f -c /etc/cups/cupsd.conf
+ExecStartPost=/sbin/udevadm trigger --subsystem-match=usb --attr-match=serial=AL01077498
+
+[Install]
+WantedBy=multi-user.target
+