Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 536618
Collapse All | Expand All

(-)jenkins-bin-1.595.ebuild.org (-2 / +11 lines)
Lines 22-32 Link Here
22
22
23
S=${WORKDIR}
23
S=${WORKDIR}
24
24
25
JENKINS_DIR=/var/lib/jenkins
26
27
pkg_setup() {
25
pkg_setup() {
26
	export JENKINS_DIR="${JENKINS_DIR:=/var/lib/jenkins}"
28
	enewgroup jenkins
27
	enewgroup jenkins
29
	enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
28
	enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
29
30
	# make sure user has correct HOME as flipping between
31
	# the standard jenkins pkg and this one was possible in
32
	# the past
33
	if [[ $(egethome jenkins) != ${JENKINS_DIR} ]]; then
34
		ewarn "From this version on, the homedir of the jenkins user cannot be changed"
35
		ewarn "dynamically after the installation. For homedir different from"
36
		ewarn "/var/lib/jenkins set JENKINS_DIR in your make.conf and re-emerge."
37
		esethome jenkins "${JENKINS_DIR}"
38
	fi
30
}
39
}
31
40
32
src_install() {
41
src_install() {

Return to bug 536618