[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: avoiding conflicts with %config
- From: Will Harris <will harris ncmail net>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: avoiding conflicts with %config
- Date: Mon, 03 Oct 2005 14:28:48 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ok, That helps a lot. Thanks.
Jos Vos wrote:
> Hi,
>
> On Mon, Oct 03, 2005 at 02:16:39PM -0400, Will Harris wrote:
>
>
>> I am not sure if this is possible, but I am trying to find a way to
>>make a custom package with a set of (edited) config files and security
>>changes. However since these config files belong to other packages (ssh,
>>xinetd, selinux, etc) I get conflicts. I can force it, but then
>>upgrading the package becomes another hassle.
>> I'm wondering if there is some macro I am missing that will let me
>>install my config but not cause the conflicts for the original package
>>on update. I would not mind if I even had to reinstall my custom
>>package. Does anyone know of any trick to accomplish this?
>
>
> Let your custom package include files in an own directory:
>
> %files
> /etc/custom/sshd_config
> ...
>
> and use trigger scripts to replace the original files with your
> custom files, e.g.
>
> %triggerin -- openssh-server
> cp -a /etc/custom/sshd_config /etc/ssh/
>
> Now after every install/upgrade of openssh-server (or at the moment
> you install custom -- when openssh-server is already installed), it
> will replace the sshd_config file with your custom one.
>
> Hope this helps,
>
- --
Will Harris
System Administrator
State of North Carolina
Office of Information Technology Services
P.O. Box 17209
Raleigh, N.C. 27619-7209
phone: (919) 981-4478
mobile: (919) 279-7325
Most Failure is to due to giving up, not realizing
how close to success you were - Thomas Edison
############################NOTICE######################################
E-mail correspondence to and from this address may be subject to the
North Carolina Public Records Law and may be disclosed to third parties.
########################################################################
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDQXhgZL0IoGaeD6MRAi6sAJ9nexjtfDKF25juGTc0WwrNyoFTNgCgoCSZ
aI4SC5eYuh++Sfs5wrGV0xg=
=lUR+
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]