# Maintainer: Florent ThiƩry pkgname=cockpit-minimal pkgver=183 pkgrel=0 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/' license=(LGPL2.1) conflicts=(cockpit-git cockpit) depends=(libssh krb5 sshpass accountsservice perl-json perl-locale-po json-glib glib-networking networkmanager) # udisks support disables some features #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 packagekit) 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) noextract=(cockpit-${pkgver}.tar.xz) sha1sums=('97697f8d00665d3577ae889f4df99c8d3375d77d' 'a28e0f8ae1815b6869618f6cb85b9cb76914a030') prepare() { cd $srcdir #bsdtar can't extract cockpit tar -xf cockpit-${pkgver}.tar.xz } build() { cd cockpit-${pkgver} ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --disable-pcp --disable-doc make } package() { cd cockpit-${pkgver} make DESTDIR="$pkgdir" install cd $pkgdir 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; rm -rf usr/src/debug/usr/share/cockpit/$d; done }