commit: 08dab4becbb49935e6652c5dfb98022fcb92e148
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 7 11:23:19 2016 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Wed Dec 7 11:23:19 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08dab4be
sys-auth/docker_auth: Add missed dependencies, install initscript
Gentoo-Bug: 601884 601882
Package-Manager: portage-2.3.3
.../{docker_auth-1.1.ebuild => docker_auth-1.1-r1.ebuild} | 8 ++++++++
sys-auth/docker_auth/docker_auth-1.1.ebuild | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/sys-auth/docker_auth/docker_auth-1.1.ebuild
b/sys-auth/docker_auth/docker_auth-1.1-r1.ebuild
similarity index 95%
copy from sys-auth/docker_auth/docker_auth-1.1.ebuild
copy to sys-auth/docker_auth/docker_auth-1.1-r1.ebuild
index 6b94516..e535d4d 100644
--- a/sys-auth/docker_auth/docker_auth-1.1.ebuild
+++ b/sys-auth/docker_auth/docker_auth-1.1-r1.ebuild
@@ -33,6 +33,9 @@ LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
+DEPEND="dev-go/go-crypto:=
+ dev-go/go-sys:="
+
_golang-include-src() {
local VENDORPN=$1 TARBALL=$2
mkdir -p "${WORKDIR}/${P}/src/${VENDORPN}" || die
@@ -85,5 +88,10 @@ src_install() {
insinto /etc/docker_auth/
newins examples/reference.yml config.yml.example
dobin auth_server/bin/auth_server
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotated ${PN}
+ keepdir /var/log/docker_auth
popd || die
}
diff --git a/sys-auth/docker_auth/docker_auth-1.1.ebuild
b/sys-auth/docker_auth/docker_auth-1.1.ebuild
index 6b94516..e535d4d 100644
--- a/sys-auth/docker_auth/docker_auth-1.1.ebuild
+++ b/sys-auth/docker_auth/docker_auth-1.1.ebuild
@@ -33,6 +33,9 @@ LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
+DEPEND="dev-go/go-crypto:=
+ dev-go/go-sys:="
+
_golang-include-src() {
local VENDORPN=$1 TARBALL=$2
mkdir -p "${WORKDIR}/${P}/src/${VENDORPN}" || die
@@ -85,5 +88,10 @@ src_install() {
insinto /etc/docker_auth/
newins examples/reference.yml config.yml.example
dobin auth_server/bin/auth_server
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotated ${PN}
+ keepdir /var/log/docker_auth
popd || die
}