Install this version:
emerge -a =app-admin/cockpit-360
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-admin/cockpit-360
Or alternatively:
emerge --autounmask-write -a =app-admin/cockpit-360
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit autotools pam python-single-r1 tmpfiles
DESCRIPTION="Server Administration Web Interface "
HOMEPAGE="https://cockpit-project.org/"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/cockpit-project/cockpit.git"
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/cockpit-project/${PN}/releases/download/${PV}/${P}.tar.xz"
fi
SRC_URI="${SRC_URI} https://www.gentoo.org/assets/img/logo/gentoo-logo.png"
LICENSE="LGPL-2.1+"
SLOT="0"
IUSE="debug doc firewalld +networkmanager pcp selinux test tuned udisks"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
BDEPEND="
>=app-crypt/mit-krb5-1.11
>=dev-libs/glib-2.56
>=dev-libs/json-glib-1.4
>=net-libs/gnutls-3.6.0
>=sys-apps/systemd-235[policykit]
>=sys-auth/polkit-0.105[systemd]
doc? (
app-text/xmlto
dev-util/gtk-doc
)
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pip[${PYTHON_USEDEP}]
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
)
')
"
DEPEND="
networkmanager? (
firewalld? (
net-firewall/firewalld
)
net-misc/networkmanager[policykit,systemd]
)
pcp? (
app-metrics/pcp
)
udisks? (
sys-fs/udisks[lvm,systemd]
)
tuned? (
sys-apps/tuned
)
virtual/libcrypt:=
${PYTHON_DEPS}
"
RDEPEND="${DEPEND}
acct-group/cockpit-ws
acct-group/cockpit-wsinstance
acct-user/cockpit-ws
acct-user/cockpit-wsinstance
app-crypt/sscg
dev-libs/libgudev
net-libs/glib-networking[ssl]
virtual/krb5
"
src_prepare() {
default
eapply_user
eaclocal
eautoreconf
eautomake
}
src_configure() {
local myconf=(
$(use_enable debug)
$(use_enable doc)
--with-pamdir="/$(get_libdir)/security"
--localstatedir="${EPREFIX}/var"
)
econf "${myconf[@]}"
}
src_install() {
default
python_optimize
if ! use selinux; then
rm -rf "${ED}"/usr/share/cockpit/selinux
rm -rf "${ED}"/usr/share/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml
fi
rm -rf "${ED}"/usr/share/cockpit/{packagekit,playground,sosreport}
rm -rf "${ED}"/usr/share/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml
insinto /usr/share/cockpit/branding/gentoo
doins "${FILESDIR}/branding.css"
newins "${DISTDIR}/gentoo-logo.png" logo.png
newins "${DISTDIR}/gentoo-logo.png" apple-touch-icon.png
newins "${DISTDIR}/gentoo-logo.png" favicon.ico
# Remove branding from others distros
rm -rf "${ED}"/usr/share/cockpit/branding/{arch,centos,debian,fedora,opensuse,rhel,scientific,ubuntu}
ewarn "Installing experimental pam configuration file"
ewarn "use at your own risk"
newpamd "${FILESDIR}/cockpit.pam" cockpit
dodoc README.md AUTHORS
# Required for store self-signed certificates
keepdir /etc/cockpit/ws-certs.d/
}
pkg_postinst() {
tmpfiles_process cockpit-ws.conf
elog ""
elog "To enable Cockpit run:"
elog " - systemctl enable --now cockpit.socket"
elog ""
}
Manage flags for this package:
euse -i <flag> -p app-admin/cockpit |
euse -E <flag> -p app-admin/cockpit |
euse -D <flag> -p app-admin/cockpit
networkmanager? ( firewalld? ( net-firewall/firewalld ) net-misc/networkmanager[policykit,systemd] ) pcp? ( app-metrics/pcp ) udisks? ( sys-fs/udisks[lvm,systemd] ) tuned? ( sys-apps/tuned ) virtual/libcrypt:=
networkmanager? ( firewalld? ( net-firewall/firewalld ) net-misc/networkmanager[policykit,systemd] ) pcp? ( app-metrics/pcp ) udisks? ( sys-fs/udisks[lvm,systemd] ) tuned? ( sys-apps/tuned ) virtual/libcrypt:= acct-group/cockpit-ws acct-group/cockpit-wsinstance acct-user/cockpit-ws acct-user/cockpit-wsinstance app-crypt/sscg dev-libs/libgudev net-libs/glib-networking[ssl] virtual/krb5
>=app-crypt/mit-krb5-1.11 >=dev-libs/glib-2.56 >=dev-libs/json-glib-1.4 >=net-libs/gnutls-3.6.0 >=sys-apps/systemd-235[policykit] >=sys-auth/polkit-0.105[systemd] doc? ( app-text/xmlto dev-util/gtk-doc ) $(python_gen_cond_dep ' dev-python/pip[] test? ( dev-python/pytest-asyncio[] dev-python/pytest-cov[] dev-python/pytest-timeout[] ) ')
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | cockpit-360.tar.xz | 15499768 bytes | https://github.com/cockpit-project/cockpit/releases/download/360/cockpit-360.tar.xz |