FS#39682 - [pdnsd] Use configure option instead of sed/chown

Attached to Project: Community Packages
Opened by Olivier Brunel (jjacky) - Saturday, 29 March 2014, 19:52 GMT
Last edited by Daniel Micay (thestinger) - Monday, 31 March 2014, 03:32 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Daniel Micay (thestinger)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Looking at recent changes in the pdnsd package, I just thought I'd suggest using configure option (--with-default-id=pdnsd) instead of manually using sed & chown. It will take care of using the right user in the conf file, as well as setting it on var/cache/pdnsd{,/pdnsd.cache} (Note that the group remains root, only user is set, unlike what's done currently.)
This task depends upon

Closed by  Daniel Micay (thestinger)
Monday, 31 March 2014, 03:32 GMT
Reason for closing:  Not a bug
Comment by Daniel Micay (thestinger) - Monday, 31 March 2014, 03:32 GMT
Packages are built in a clean container (extra-{i686,x86_64}-build) where the pdnsd user doesn't yet exist, so using `--with-default-id=pdnsd` errors out and `--with-default-id=184` tries to use `184` as the name of the user. The PKGBUILD needs to use the hard-wired uid/gid or leave all the work up to the install file.

Loading...