summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Thiéry2019-02-18 10:00:30 +0100
committerFlorent Thiéry2019-02-18 10:00:30 +0100
commit4db0770f0d16cd5b27dcf79fab4915f223326166 (patch)
treec9117891e3f8eb59b7b118cfd10ad0f317f31538
parentd160670a58de3dc84d9cfae41c5d0a657475acee (diff)
downloadaur-4db0770f0d16cd5b27dcf79fab4915f223326166.tar.gz
add pam config sample
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD16
-rw-r--r--cockpit-pam5
3 files changed, 20 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cb3258209c49..c6c5d6ec1d26 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cockpit-minimal
pkgdesc = A systemd web based user interface for Linux servers (minimal setup with system graphs, journalctl, storage, network, user accounts, systemd services and terminal)
pkgver = 187
- pkgrel = 0
+ pkgrel = 1
url = http://www.cockpit-project.org/
arch = i686
arch = x86_64
@@ -35,8 +35,10 @@ pkgbase = cockpit-minimal
noextract = cockpit-187.tar.xz
source = https://github.com/cockpit-project/cockpit/releases/download/187/cockpit-187.tar.xz
source = https://github.com/cockpit-project/cockpit/releases/download/187/cockpit-cache-187.tar.xz
+ source = cockpit-pam
sha1sums = 31b3b1591ada044a5e7530b0b0e8418b66f96712
sha1sums = 097d033816be57c8228209f1f5e46005fef2e4e6
+ sha1sums = 69b899b034e981cf217c2f8d61264caa2015c0e6
pkgname = cockpit-minimal
diff --git a/PKGBUILD b/PKGBUILD
index 7adf0794fca3..74cb16355c6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=cockpit-minimal
pkgver=187
-pkgrel=0
+pkgrel=1
pkgdesc='A systemd web based user interface for Linux servers (minimal setup with system graphs, journalctl, storage, network, user accounts, systemd services and terminal)'
arch=(i686 x86_64 armv6h armv7h)
url='http://www.cockpit-project.org/'
@@ -13,11 +13,15 @@ depends=(libssh krb5 sshpass accountsservice perl-json perl-locale-po json-glib
#http://cockpit-project.org/guide/latest/feature-storaged.html
optdepends=('udisks2: disk stats support')
makedepends=(git intltool python2-pyscss gtk-doc perl-javascript-minifier-xs gobject-introspection networkmanager libgsystem xmlto npm tar)
-source=(https://github.com/cockpit-project/cockpit/releases/download/${pkgver}/cockpit-${pkgver}.tar.xz
- https://github.com/cockpit-project/cockpit/releases/download/${pkgver}/cockpit-cache-${pkgver}.tar.xz)
+source=(
+ https://github.com/cockpit-project/cockpit/releases/download/${pkgver}/cockpit-${pkgver}.tar.xz
+ https://github.com/cockpit-project/cockpit/releases/download/${pkgver}/cockpit-cache-${pkgver}.tar.xz
+ cockpit-pam
+)
noextract=(cockpit-${pkgver}.tar.xz)
sha1sums=('31b3b1591ada044a5e7530b0b0e8418b66f96712'
- '097d033816be57c8228209f1f5e46005fef2e4e6')
+ '097d033816be57c8228209f1f5e46005fef2e4e6'
+ '69b899b034e981cf217c2f8d61264caa2015c0e6')
prepare() {
cd $srcdir
@@ -36,6 +40,10 @@ package() {
cd cockpit-${pkgver}
make DESTDIR="$pkgdir" install
cd $pkgdir
+
+ mkdir -p etc/pam.d
+ cp ../../cockpit-pam etc/pam.d/cockpit
+
rm usr/lib/firewalld/services/cockpit.xml # owned by firewalld
for d in docker kubernetes tuned kdump selinux ovirt pcp playground realmd sosreport subscriptions; do
rm -r usr/share/cockpit/$d;
diff --git a/cockpit-pam b/cockpit-pam
new file mode 100644
index 000000000000..9d354b0b762d
--- /dev/null
+++ b/cockpit-pam
@@ -0,0 +1,5 @@
+#%PAM-1.0
+auth include system-remote-login
+account include system-remote-login
+password include system-remote-login
+session include system-remote-login