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

Conversation

Pedrochu
Copy link

All files belong to one of the packages

[+]      Wrapping sys-apps/polkit#0.116.0
[+]          name: polkit
[+]          category: sys-apps
[+]          version: 0.116.0
[+]          description: Application development toolkit for controlling system-wide privileges.
[+]          tags: privileges, polkit
[+]          maintainer: [email protected]
[+]          licenses: lgpl
[+]          upstream_url: https://gitlab.freedesktop.org/polkit/polkit/
[+]          kind: effective
[+]          wrap_date: 2019-12-11T22:59:36Z
[+]          dependencies:
[+]              sys-libs/pam
[+]              dev-libs/glib
[+]              sys-libs/glibc
[+]              sys-apps/systemd
[+]              sys-libs/expat
[+]         
[+]          Files added:
[+]              ./usr/lib64/libpolkit-agent-1.so.0.0.0
[+]              ./usr/lib64/libpolkit-gobject-1.so.0 -> libpolkit-gobject-1.so.0.0.0
[+]              ./usr/lib64/libpolkit-gobject-1.so.0.0.0
[+]              ./usr/lib64/libpolkit-agent-1.so.0 -> libpolkit-agent-1.so.0.0.0
[+]              ./usr/lib64/pkgconfig/polkit-gobject-1.pc
[+]              ./usr/lib64/pkgconfig/polkit-agent-1.pc
[+]              ./usr/share/gettext/its/polkit.loc
[+]              ./usr/share/gettext/its/polkit.its
[+]              ./usr/share/gir-1.0/PolkitAgent-1.0.gir
[+]              ./usr/share/gir-1.0/Polkit-1.0.gir
[+]              ./usr/share/polkit-1/actions/org.freedesktop.policykit.policy
[+]              ./usr/share/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
[+]              ./usr/share/locale/it/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/zh_TW/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/zh_CN/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/cs/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/uk/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/id/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/sk/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/sv/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/pl/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/da/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/tr/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/de/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/pt_BR/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/hu/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/locale/hr/LC_MESSAGES/polkit-1.mo
[+]              ./usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
[+]              ./usr/bin/pkexec
[+]              ./usr/bin/pkttyagent
[+]              ./usr/bin/pkaction
[+]              ./usr/bin/pk-example-frobnicate
[+]              ./usr/bin/pkcheck
[+]              ./etc/polkit-1/rules.d/50-default.rules
[+]              ./etc/pam.d/polkit-1
[+]              ./etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
[+]          (That's 36 files.)
[+]          Creating data.tar.gz
[+]          Creating manifest.toml
[+]          Creating polkit-0.116.0.nest
[+]      Wrapping sys-apps/polkit-dev#0.116.0
[+]          name: polkit-dev
[+]          category: sys-apps
[+]          version: 0.116.0
[+]          description: Headers and manuals to compile or write a software using the sys-apps/polkit package.
[+]          tags: privileges, polkit
[+]          maintainer: [email protected]
[+]          licenses: lgpl
[+]          upstream_url: https://gitlab.freedesktop.org/polkit/polkit/
[+]          kind: effective
[+]          wrap_date: 2019-12-11T22:59:36Z
[+]          dependencies:
[+]              sys-apps/polkit#=0.116.0
[+]         
[+]          Files added:
[+]              ./usr/include/polkit-1/polkitagent/polkitagentenumtypes.h
[+]              ./usr/include/polkit-1/polkitagent/polkitagentsession.h
[+]              ./usr/include/polkit-1/polkitagent/polkitagenttypes.h
[+]              ./usr/include/polkit-1/polkitagent/polkitagenttextlistener.h
[+]              ./usr/include/polkit-1/polkitagent/polkitagentlistener.h
[+]              ./usr/include/polkit-1/polkitagent/polkitagent.h
[+]              ./usr/include/polkit-1/polkit/polkiterror.h
[+]              ./usr/include/polkit-1/polkit/polkittemporaryauthorization.h
[+]              ./usr/include/polkit-1/polkit/polkitunixnetgroup.h
[+]              ./usr/include/polkit-1/polkit/polkittypes.h
[+]              ./usr/include/polkit-1/polkit/polkitauthority.h
[+]              ./usr/include/polkit-1/polkit/polkitauthorizationresult.h
[+]              ./usr/include/polkit-1/polkit/polkitunixgroup.h
[+]              ./usr/include/polkit-1/polkit/polkitactiondescription.h
[+]              ./usr/include/polkit-1/polkit/polkitsubject.h
[+]              ./usr/include/polkit-1/polkit/polkitidentity.h
[+]              ./usr/include/polkit-1/polkit/polkitunixsession.h
[+]              ./usr/include/polkit-1/polkit/polkitprivate.h
[+]              ./usr/include/polkit-1/polkit/polkitenumtypes.h
[+]              ./usr/include/polkit-1/polkit/polkitsystembusname.h
[+]              ./usr/include/polkit-1/polkit/polkitcheckauthorizationflags.h
[+]              ./usr/include/polkit-1/polkit/polkit.h
[+]              ./usr/include/polkit-1/polkit/polkitunixprocess.h
[+]              ./usr/include/polkit-1/polkit/polkitauthorityfeatures.h
[+]              ./usr/include/polkit-1/polkit/polkitpermission.h
[+]              ./usr/include/polkit-1/polkit/polkitunixuser.h
[+]              ./usr/include/polkit-1/polkit/polkitimplicitauthorization.h
[+]              ./usr/include/polkit-1/polkit/polkitdetails.h
[+]              ./usr/lib64/libpolkit-agent-1.la
[+]              ./usr/lib64/libpolkit-agent-1.a
[+]              ./usr/lib64/libpolkit-agent-1.so -> libpolkit-agent-1.so.0.0.0
[+]              ./usr/lib64/libpolkit-gobject-1.so -> libpolkit-gobject-1.so.0.0.0
[+]              ./usr/lib64/libpolkit-gobject-1.a
[+]              ./usr/lib64/libpolkit-gobject-1.la
[+]              ./usr/lib64/girepository-1.0/PolkitAgent-1.0.typelib
[+]              ./usr/lib64/girepository-1.0/Polkit-1.0.typelib
[+]              ./usr/lib/polkit-1/polkitd
[+]              ./usr/lib/polkit-1/polkit-agent-helper-1
[+]              ./usr/lib/systemd/system/polkit.service
[+]          (That's 39 files.)
[+]          Creating data.tar.gz
[+]          Creating manifest.toml
[+]          Creating polkit-dev-0.116.0.nest
[+]      Wrapping sys-apps/polkit-doc#0.116.0
[!]      The package is empty -- Skipping
[+]  Done!

sys-apps/polkit/polkit.py Outdated Show resolved Hide resolved

def patch_polkit():
# There should be a dedicated user and group to take control of the polkitd daemon after it's started
stdlib.cmd("groupadd -fg 27 polkitd && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will install the daemon on the host system (the one building the package), not the user's system.

You can install it on the user's system with an instruction file, which executes command after the package is installed. See this package for an example. The file instructions.sh contains commands to execute at different point of the installation. You want to fill the after_install function.

Remember to load the instruction file with packages['xxx/yyy'].load_instructions('./instructions.sh') at the end of the manifest and to put the both files in another subdirectory.

sys-apps/polkit/polkit.py Outdated Show resolved Hide resolved
sys-apps/polkit/polkit.py Outdated Show resolved Hide resolved
sys-apps/polkit/polkit.py Outdated Show resolved Hide resolved
sys-apps/polkit/instructions.sh Outdated Show resolved Hide resolved
sys-apps/polkit/instructions.sh Outdated Show resolved Hide resolved
sys-apps/polkit/polkit.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants