From: Bruce A. <ba...@gr...> - 2002-10-31 10:29:14
|
Hi Arkadiusz, I've got a new release of smartmontools in CVS, RELEASE_5_0_25. You can get it using the -r RELEASE_5_0_25 option to CVS checkout. In this new release, if /etc/smartd.conf contains the word: DEVICESCAN in capital letters, as the first non-comment entry, then smartd will scan for devices, and ignore the remainder of the smartd.conf file. I have also added DEVICESCAN as the first non-comment entry to the smartd.conf file included with the package. Is this OK for you? By the way, can you use CVS co and a tag in your .spec file? Cheers, =09Bruce On 30 Oct 2002, Arkadiusz Miskiewicz wrote: > Bruce Allen <ba...@gr...> writes: >=20 > > The tarfiles normally have the name > > smartmontools-5.0-24.tar.gz > >=20 > > and when untarred they untar into > >=20 > > smartmontools-5.0-24/file1 > > smartmontools-5.0-24/file2 > > ... > > and so on. > > Is there a %setup line that will unpack these correcly, so I can give a > > path in the URL. I spent some hours playing with it, and could only g= et > > things to work when the file name was > > smartmontools-5.0.tar.gz > > and the untarred directory as > > smartmontools-5.0/ > >=20 > > Can I get around this in the setup line? > Now I don't know what you really want. Sorry :-) > With %setup -q rpm unpacks what tgz contains and then does > cd %{name}-%{version}. >=20 > > Yes, I could easily add somethere where if the word "SEARCH" > > were the first word on the first line of the file, then the code would= =20 > > behave as if it had never found a config file. Is this a good solution= ? > Not only first file line, better first non-comment line. >=20 > > Is there a way to make the rpm avoid overwriting the users config file = on > > reinstall or upgrade? > Yes, there is. >=20 > %config does that, while %config(noreplace) means that if user changed > its config file then never overwrite it (instead rpm after package upgrea= de > will create config.file.conf.rpmnew) and there are options for verificati= on > (%verify()). >=20 > These are used in PLD smartmontools.spec file. >=20 > > Bruce >=20 > ps. if you place spec file inside of tarball then rpm -ta package.tar.gz > will create binary rpm, too. >=20 > --=20 > Arkadiusz Mi=B6kiewicz CS at FoE, Wroclaw University of Technology > ar...@ss... AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux >=20 |