mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 15:58:56 -04:00
add cockpit web console
This commit is contained in:
parent
7936d248df
commit
8e09bb1353
9
acct-group/cockpit-ws/cockpit-ws-0.ebuild
Normal file
9
acct-group/cockpit-ws/cockpit-ws-0.ebuild
Normal 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
|
12
acct-group/cockpit-ws/metadata.xml
Normal file
12
acct-group/cockpit-ws/metadata.xml
Normal 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>
|
14
acct-user/cockpit-ws/cockpit-ws-0.ebuild
Normal file
14
acct-user/cockpit-ws/cockpit-ws-0.ebuild
Normal 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
|
12
acct-user/cockpit-ws/metadata.xml
Normal file
12
acct-user/cockpit-ws/metadata.xml
Normal 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>
|
2
app-admin/cockpit/Manifest
Normal file
2
app-admin/cockpit/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST cockpit-233.1.tar.xz 18270036 SHA512 941ef6916901c34a1a427e45993b3f53c49e95c52e4b6d4f7c1781e3e59ad27f863d379778b3b4ddd1ca22b5d3641d0650e8c9a98bfd3b283c6c7dfe92d6b9ae
|
||||
DIST cockpit-cache-233.1.tar.xz 65771760 SHA512 7de49514685d0abbda5aecda4ff3e5608994c76b78e735f6248135e37a918bacf84705cf7fcf838f2cd4e0561cf2f52664e8492636b926b03dc2195781714bad
|
54
app-admin/cockpit/cockpit-233.1.ebuild
Normal file
54
app-admin/cockpit/cockpit-233.1.ebuild
Normal 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
|
||||
}
|
4
app-admin/cockpit/files/cockpit.pam
Normal file
4
app-admin/cockpit/files/cockpit.pam
Normal 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
|
Loading…
x
Reference in New Issue
Block a user