Re: [aur-general] Create user

2020-05-21 Thread Kusoneko
On May 22, 2020 2:29:52 AM UTC, karx via aur-general 
 wrote:
>Hey,
>
>An application I'm thinking about packaging for AUR requires its own
>user
>to run. Is it ok to be/How would I go about creating a "user" that will
>be
>created on the installer's system when they install the package?
>
>Thanks,
>Yash


I looked up an official package I know creates a user (postgresql) and it seems 
to provide this file[1] and install it in the PKGBUILD[2] with the following 
line (line 208) :

> install -Dm 644 ${pkgname}.sysusers 
> "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"

[1]: 
https://git.archlinux.org/svntogit/packages.git/tree/trunk/postgresql.sysusers?h=packages/postgresql
[2]: 
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/postgresql


signature.asc
Description: PGP signature


Re: [aur-general] Create user

2020-05-21 Thread Eli Schwartz via aur-general
On 5/21/20 10:29 PM, karx via aur-general wrote:
> Hey,
> 
> An application I'm thinking about packaging for AUR requires its own user
> to run. Is it ok to be/How would I go about creating a "user" that will be
> created on the installer's system when they install the package?

Use sysusers.d(5) to install a description of the user you need. systemd
comes with a pacman hook to create users based on sysusers.d dropins
(and for non-systemd distros using e.g. OpenRC, there are
reimplementations like opensysusers, because this is generally portable
and beneficial to use).

You can usually specify the "-" placeholder instead of a reserved,
hardocded uid, and have one automatically assigned. This is preferable
whenever possible.

You can check the output of

$ pkgfile -vr '/usr/lib/sysusers.d/.*\.conf'

to see which packages in the repositories use sysusers.d files, and see
how they are using it for inspiration. (Or see which packages on your
system provide files in /usr/lib/sysusers.d/)

-- 
Eli Schwartz
Bug Wrangler and Trusted User



signature.asc
Description: OpenPGP digital signature


[aur-general] Create user

2020-05-21 Thread karx via aur-general
Hey,

An application I'm thinking about packaging for AUR requires its own user
to run. Is it ok to be/How would I go about creating a "user" that will be
created on the installer's system when they install the package?

Thanks,
Yash


Re: [aur-general] TU application; freswa

2020-05-21 Thread Giancarlo Razzolini via aur-general

Em maio 17, 2020 11:40 Frederik Schwan via aur-general escreveu:

On 17/05/2020 05.28, Robin Broda via aur-general wrote:

On 5/17/20 5:06 AM, Frederik Schwan via aur-general wrote:

Changes can be found here:
https://github.com/freswa/aur/commit/c3778f6bda345f0165289f3a57d36047e6ba5934

Thank you for doing the review :)

Time for the next round:

Package: datagrip datagrip-jre
Package: or-tools-java 
Package: pass-sshaskpass 
Package: pass-sshaskpass-git 
Package: tomighty 
Package: tpacpi-bat-git 
Package: unifi-beta 
Package: youtrack 


Fixed.
https://github.com/freswa/aur/commit/6a1f6efae06f137b6d93f7f66973a6272766fe1d

Thank you
Frederik




The discussion period is over. Let's vote!

https://aur.archlinux.org/tu/?id=121

Regards,
Giancarlo Razzolini

pgpGGcNnzbvey.pgp
Description: PGP signature