app-emulation/docker-registry: revbump to 2.6.2-r1 for bug 629202
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Sep 2017 22:09:01 +0000 (15:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Sep 2017 22:13:24 +0000 (15:13 -0700)
Package-Manager: Portage-2.3.8, Repoman-2.3.2

app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild [moved from app-emulation/docker-registry/docker-registry-2.6.2.ebuild with 100% similarity]
app-emulation/docker-registry/files/registry.initd

index 43637a9dbe892e8db51c42ecae0026e871397dd9..b81303c624d16170f8f593fdf6a5725348e88ac3 100644 (file)
@@ -1,24 +1,19 @@
 #!/sbin/openrc-run
-# Copyright 2016 Gentoo Foundation
+# Copyright 2016-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 description="Docker Registry 2.0"
-pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
-user=${user:-${SVCNAME}}
-group=${group:-${SVCNAME}}
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
 
-command="/usr/libexec/docker-${SVCNAME}/${SVCNAME}"
+command="/usr/libexec/docker-${RC_SVCNAME}/${RC_SVCNAME}"
 command_args="${command_args:-serve /etc/docker/registry/config.yml}"
 command_background="true"
 start_stop_daemon_args="--user ${user} --group ${group} \
-       --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
-       --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
+       --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+       --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
 
 depend() {
        need net
-       after net
-}
-
-start_pre() {
-       checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
 }