RE: (no subject)

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

 



The way I approach this is have a %post scriptlet that either edits the files to what they need to be, or overwrites them (while preserving a copy of the existing ones to restore to when uninstalling) with the new version of these files (which should be part of the package).

Something like (I am only trying to demonstrate):

%post
mv $(DEFAULT_FILE) $(SAVE_DEFAULT_FILE)
mv $(NEW_DEFAULT_FILE) $(DEFAULT_FILE)

%postun
mv $(SAVE_DEFAULT_FILE) $(DEFAULT_FILE)

%files
$(NEW_DEFAULT_FILE)

-nik


-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]On
Behalf Of Rob Hassing
Sent: Wednesday, June 15, 2005 8:55 AM
To: rpm-list@xxxxxxxxxx
Subject: (no subject)


Hello,

I'm trying to build an RPM to make a system fit in our network.
This means the rpm should replace some default config files.
The files ldap.conf, yp.conf and auto.master should be replaced by this 
rpm.

I know it is possible to overwrite files using the --replacefiles option.
Is it also possible to create a SPEC file which overwrites files from 
other packages ?

According to google I'm the only one trying to do this(or the first who 
has problems doing this) ;)

Thank you very much in advance.

Best regards,
Rob Hassing

_______________________________________________
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