mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-14 22:19:55 +00:00
This commit creates a new revision (-r4) that replaces the earlier unstable -r3. The ebuild itself includes an update to EAPI=6 and the associated simplifications, as well as the addition of a new user named "cancd" that is used by the init script. The service script was completely rewritten and simplified, and now uses more modern features of OpenRC. The original motivation for that was bug 603208. This is a non-maintainer commit, but robbat2 (the maintainer on file) recently made a post to gentoo-dev, "Packages up for grabs: robbat2 edition," stating that this package was up for grabs. Closes: https://bugs.gentoo.org/603208 Package-Manager: Portage-2.3.13, Repoman-2.3.3
22 lines
596 B
Text
22 lines
596 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
command="/usr/sbin/cancd"
|
|
command_args="-p ${CANCD_PORT}
|
|
-l ${CANCD_LOG_DIR}
|
|
-o ${CANCD_LOG_FORMAT}"
|
|
command_user="cancd"
|
|
|
|
# cancd daemonizes itself, but doesn't write a PID file and doesn't
|
|
# have an option to run in the foreground. So the best we can do
|
|
# is try to match the process name when stopping it.
|
|
procname="cancd"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner cancd --mode 0700 "${CANCD_LOG_DIR}"
|
|
}
|