Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the sys-apps/polkit build manifest #111

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sys-apps/polkit/instructions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

after_install() {
groupadd -fg 27 polkitd
Pedrochu marked this conversation as resolved.
Show resolved Hide resolved
useradd -c 'PolicyKit Daemon Owner' -d /etc/polkit-1 -u 27 -g polkitd -s /bin/false polkitd
Pedrochu marked this conversation as resolved.
Show resolved Hide resolved
}
57 changes: 57 additions & 0 deletions sys-apps/polkit/polkit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-

import os
import stdlib
import stdlib.split.drain_all
from stdlib.template import autotools
from stdlib.template.configure import configure
from stdlib.patch import patch
from stdlib.manifest import manifest


@manifest(
name='polkit',
category='sys-apps',
description='''
Application development toolkit for controlling system-wide privileges.
''',
tags=['privileges', 'polkit'],
maintainer='[email protected]',
licenses=[stdlib.license.License.LGPL],
upstream_url='https://gitlab.freedesktop.org/polkit/polkit/',
kind=stdlib.kind.Kind.EFFECTIVE,
versions_data=[
{
'semver': '0.116.0',
'fetch': [{
'url': 'https://www.freedesktop.org/software/polkit/releases/polkit-0.116.tar.gz',
'sha256': '88170c9e711e8db305a12fdb8234fac5706c61969b94e084d0f117d8ec5d34b1',
}],
},
],
build_dependencies=[
'dev-libs/glib-dev',
'sys-libs/libtool-dev',
'dev-libs/gobject-introspection-dev',
'dev-apps/js-dev',
'sys-libs/expat-dev',
'sys-apps/systemd-dev',
'sys-libs/pam-dev',
'dev-perl/xml-parser'
]
)
def build(build):
packages = autotools.build(
configure=lambda: configure('--with-os-type=Raven-OS',
'--enable-libsystemd-login=yes',
'--disable-man-pages')
)

packages['sys-apps/polkit-dev'].drain('usr/lib64/')
Pedrochu marked this conversation as resolved.
Show resolved Hide resolved
packages['sys-apps/polkit-dev'].drain('usr/lib/')
packages['sys-apps/polkit'].drain('usr/share/')

packages['sys-apps/polkit'].load_instructions('./instructions.sh')

return packages