Re: avoiding conflicts with %config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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-----

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux