Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 600422 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-admin/webmin/webmin-1.791.ebuild (-5 / +9 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI="5"
4
EAPI="5"
Lines 93-99 Link Here
93
93
94
	# Copy our own setup script to installation folder
94
	# Copy our own setup script to installation folder
95
	insinto /usr/libexec/webmin
95
	insinto /usr/libexec/webmin
96
	newins "${FILESDIR}"/gentoo-setup-${PV} gentoo-setup.sh
96
	newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh
97
	fperms 0744 /usr/libexec/webmin/gentoo-setup.sh
97
	fperms 0744 /usr/libexec/webmin/gentoo-setup.sh
98
98
99
	# This is here if we ever want in future ebuilds to add some specific
99
	# This is here if we ever want in future ebuilds to add some specific
Lines 153-162 Link Here
153
}
153
}
154
154
155
pkg_postinst() {
155
pkg_postinst() {
156
	# Run pkg_config phase first - non interactively
156
	# Run webmin_config first - non interactively
157
	export INTERACTIVE="no"
157
	export INTERACTIVE="no"
158
	pkg_config
158
	webmin_config
159
	# Every next time pkg_config should be interactive
159
	# Every next time webmin_config should be interactive
160
	INTERACTIVE="yes"
160
	INTERACTIVE="yes"
161
161
162
	ewarn
162
	ewarn
Lines 199-204 Link Here
199
}
199
}
200
200
201
pkg_config(){
201
pkg_config(){
202
	webmin_config
203
}
204
205
webmin_config(){
202
	# First stop service if running
206
	# First stop service if running
203
	ebegin "Stopping any running Webmin instance"
207
	ebegin "Stopping any running Webmin instance"
204
	if systemd_is_booted ; then
208
	if systemd_is_booted ; then

Return to bug 600422