You are not logged in.

#1 2016-04-22 06:46:57

raspine
Member
Registered: 2016-03-03
Posts: 3

pacman.conf drop in files

I'm making a package that performs various configuration tasks.
I want to add a custom repo in pacman.conf. in the post_install(), and remove the same in post_remove() of the *.install file.

E.g. sudo provide the "drop-in" file method to make these things really easy.

"sudo parses files contained in the directory /etc/sudoers.d/. This means that instead of editing /etc/sudoers, you can change settings in standalone files and drop them in that directory. "

Is there a similar feature available for pacman.conf? I can't find any documentation that suggest it is..

Last edited by raspine (2016-04-22 06:50:44)

Offline

#2 2016-04-22 07:56:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,387
Website

Re: pacman.conf drop in files

No.

Offline

#3 2016-04-22 19:34:51

pypi
Wiki Maintainer
Registered: 2014-04-22
Posts: 250

Re: pacman.conf drop in files

As far as I can tell, adding an Include directive to pacman.conf should do it; you have to do that for sudo as well IIRC.
For instance:

...
Include = /etc/pacman.d/*.conf

(you will, of course, actually have to add a file into /etc/pacman.d/ to make this work)

Last edited by pypi (2016-04-22 19:36:38)

Offline

Board footer

Powered by FluxBB