Add TOML configuration files for various packages
- Introduced build configurations for graphene, gst-plugins-bad, gst-plugins-base, gstreamer, gtk4, iso-codes, jbig2dec, libepoxy, libsoup3, libtheora, libxpm, lynx, md4c, openjpeg2, poppler-data, python-attrs, python-automat, python-constantly, python-hyperlink, python-incremental, python-twisted, python-versioneer, python-zope-interface, qpdf, sdl12-compat, tinysparql, unixodbc, vmaf, xcb-util-cursor, xcb-util-image, xcb-util-renderutil, xcb-util-wm, xcb-util, xdg-utils. - Each package includes build type, dependencies, runtime requirements, and source URLs. - Added necessary post-install scripts and configurations where applicable.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="CUPS"
|
||||
|
||||
extra_commands="checkconfig"
|
||||
extra_started_commands="reload"
|
||||
|
||||
description_checkconfig="Test the configuration file"
|
||||
description_reload="Reload"
|
||||
|
||||
: ${cfgfile:="/etc/cups/cupsd.conf"}
|
||||
|
||||
command="/usr/sbin/cupsd"
|
||||
command_args="-f -c $cfgfile"
|
||||
command_background="yes"
|
||||
|
||||
pidfile="/run/cups/$RC_SVCNAME.pid"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
before nfs
|
||||
need dbus
|
||||
after logger
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
$command $command_args -t >/dev/null 2>&1 \
|
||||
|| $command $command_args -t
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkconfig || return 1
|
||||
|
||||
checkpath -q -d -m 0775 -o root:lp /var/cache/cups
|
||||
checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
|
||||
checkpath -q -d -m 0755 -o root:lp /run/cups
|
||||
checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading $name"
|
||||
start-stop-daemon --signal HUP --pidfile "$pidfile"
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user