From: Jørn A. <Jor...@nt...> - 2009-06-18 07:22:27
|
Thank you, Reza! I copied the new package to our csm server and updated the internal sysadmin-wiki. I did not recon files created in %post can not be included in %files. It has to be that way of course, although in principle the %pre and %post scripts should avoid creating files if possible, in order to maintain an accurate RPM file database. --joern On Wed, 17 Jun 2009, Reza Arbab wrote: > Hi Jørn, > > On 16 Jun 2009, 03:41AM CDT, Jørn Amundsen <Jor...@nt...> wrote: >> 2. Change the last line in /etc/webmin/stop from >> kill `cat $pidfile` >> to >> if [ -s $pidfile ]; then kill `cat $pidfile`; fi > > I built webmin-1.150-2 with this change: > > <ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/webmin/webmin-1.150-2.aix5.2.noarch.rpm> > >> BTW, /etc/webmin/stop is not listed in the spec file files section. It >> should be, >> >> root@f01n02:/# rpm -qf /etc/webmin/stop >> file /etc/webmin/stop is not owned by any package > > While /etc/webmin/stop does rightfully belong to the webmin package, it can't > be put in %files because it is not actually contained in the RPM package. As > you found, it is instead created dynamically in %post by setup.sh. > > So, 'rpm -qf' will not provide a useful result. At least they took care not > to leave a mess behind when the package is uninstalled. The %postun section > will remove all of /etc/webmin. > > Thanks for your fix! > > > -- > Reza Arbab > ar...@au... > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > aixtoolbox-list mailing list > aix...@li... > https://lists.sourceforge.net/lists/listinfo/aixtoolbox-list > |