Package Details: baph 1.72-1

Git Clone URL: https://aur.archlinux.org/baph.git (read-only, click to copy)
Package Base: baph
Description: Basic AUR Package Helper
Upstream URL: https://bitbucket.org/natemaia/baph
Licenses: GPL
Submitter: PandaFoss
Maintainer: natemaia
Last Packager: natemaia
Votes: 6
Popularity: 0.94
First Submitted: 2019-05-31 16:15 (UTC)
Last Updated: 2024-12-12 20:37 (UTC)

Dependencies (9)

Required by (0)

Sources (1)

Latest Comments

natemaia commented on 2024-12-20 21:42 (UTC)

That's a pretty good idea TBH, if I get time today I'll work on implementing that. If the variable is empty then the behaviour will be the same as it is currently

eugene2k commented on 2024-12-19 08:57 (UTC)

If you're willing to entertain another suggestion: it seems like adding authentication clients is not the optimum solution, perhaps baph should check for the presence of an environment variable that specifies the program to run for authentication (same as how the text editor to run is determined) and if the variable does not exist just try sudo and then su if sudo doesn't exist, since sudo is likely to be present on an arch system and su must be present on any LSB compliant system.

eugene2k commented on 2024-12-19 08:41 (UTC) (edited on 2024-12-19 08:42 (UTC) by eugene2k)

With pkexec the default is to ask the user to authenticate every time (as specified in /usr/share/polkit-1/actions/org.freedesktop.policykit.policy), but that can be changed by adding a rule like:

/etc/polkit-1/rules.d/50-pkexec.rules

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.policykit.exec") return polkit.Result.AUTH_ADMIN_KEEP
}

natemaia commented on 2024-12-12 20:40 (UTC) (edited on 2024-12-12 20:40 (UTC) by natemaia)

I've added pkexec support when the -g flag is used and fixed the multiple auth issue but it's still the case with pkexec due it not storing a "session" like sudo does. I don't think this is a big deal though.

appreciate the suggestion, cheers

eugene2k commented on 2024-12-09 07:30 (UTC)

It would be nice if baph could also test for policykit's pkexec when elevating privileges.

natemaia commented on 2021-06-26 18:20 (UTC)

Author here, I never knew this was packaged and instead of using my repo as the source it was forked only to be left unmaintained. Regardless I've adopted and updated it.

The issues Alad brought up have since been fixed, thanks

mauriicio commented on 2019-12-02 11:02 (UTC) (edited on 2019-12-02 11:03 (UTC) by mauriicio)

During installing, i received this message:

Validating source files with md5sums FAILED ERROR: one or more files did not pass the validity check!

Alad commented on 2019-07-25 21:46 (UTC)

Two main issues I see here:

  1. makepkg signature verification uses the user keyring, NOT the pacman keyring. See the wiki.
  2. eval PKGBUILD is pointless and only opens up to code execution, read .SRCINFO instead.