add cockpit web console

This commit is contained in:
microcai 2020-12-04 11:52:37 +08:00
parent 7936d248df
commit 8e09bb1353
7 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
DESCRIPTION="Group for the cockpit server"
ACCT_GROUP_ID=501

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>hurikhan77+bgo@gmail.com</email>
<name>Kai Krakow</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,14 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
DESCRIPTION="User for the cockpit server"
ACCT_USER_ID=501
ACCT_USER_HOME=/var/lib/cockpit
ACCT_USER_HOME_PERMS=0755
ACCT_USER_GROUPS=( cockpit-ws )
acct-user_add_deps

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>hurikhan77+bgo@gmail.com</email>
<name>Kai Krakow</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,2 @@
DIST cockpit-233.1.tar.xz 18270036 SHA512 941ef6916901c34a1a427e45993b3f53c49e95c52e4b6d4f7c1781e3e59ad27f863d379778b3b4ddd1ca22b5d3641d0650e8c9a98bfd3b283c6c7dfe92d6b9ae
DIST cockpit-cache-233.1.tar.xz 65771760 SHA512 7de49514685d0abbda5aecda4ff3e5608994c76b78e735f6248135e37a918bacf84705cf7fcf838f2cd4e0561cf2f52664e8492636b926b03dc2195781714bad

View File

@ -0,0 +1,54 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
RESTRICT="mirror"
DESCRIPTION="A systemd web based user interface for Linux server"
HOMEPAGE="https://cockpit-project.org/"
SRC_URI="https://github.com/cockpit-project/cockpit/releases/download/${PV}/cockpit-${PV}.tar.xz
https://github.com/cockpit-project/cockpit/releases/download/${PV}/cockpit-cache-${PV}.tar.xz
"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/krb5
net-libs/libssh[server]
sys-apps/accountsservice
dev-perl/JSON
dev-perl/Locale-PO
dev-libs/json-glib
net-libs/glib-networking
acct-user/cockpit-ws
"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}
dev-util/gtk-doc
dev-libs/gobject-introspection
net-misc/networkmanager
app-text/xmlto
"
# libgsystem npm pcp
src_configure(){
econf \
--libexecdir=/usr/lib/${PN} \
--with-nfs-client-package='"nfs-utils"' \
--with-cockpit-user=cockpit-ws \
--with-cockpit-ws-instance-user=cockpit-ws \
--disable-pcp
}
src_install(){
emake DESTDIR="${D}" install
insinto /etc/pam.d/
newins ${FILESDIR}/cockpit.pam cockpit
}

View File

@ -0,0 +1,4 @@
auth include system-remote-login
account include system-remote-login
password include system-remote-login
session include system-remote-login