[ZendTo] Re: ZendTo ANNOUNCE: Version 4.06 released

John Cooper johnpcooper at yahoo.com
Sun Sep 25 21:53:42 BST 2011


Looks like there isn't anyway to build an RPM which will check 
dependencies for Fedora and Centos separately. I thought the spec file 
would add the logic but it is purely for build time only. Options :-

1. Build a separate RPM for Fedora on Centos 
(http://www.openfusion.net/linux/mocking_rpms)
  yum install zendto_fedora

2. Remove the clamd dependency and check at end of install in %post and 
print a warning message.

<cut>
service crond reload

if [ $1 = 1 ]; then
   # We are being installed, not upgraded (that would be 2)
   if [ -r /etc/fedora-release ]; then
         if [ \! -r /usr/sbin/clamd ]
           then
           echo
           echo "WARNING: clamav-server is not installed, please install 
now"
         fi
   else
         if [ \! -r /usr/sbin/clamd ]; then
             echo
             echo "WARNING: clamd is not installed, please install now"
         fi
   fi
   echo
   echo Now add a new website to your Apache configuration with the
   echo DocumentRoot set to "/opt/zendto/www/".
   echo
   echo For technical support, please go to www.zendto.com.
   echo
fi

if [ $1 = 2 ]; then
   # We are being upgraded
   echo
   echo "Please reload Apache to pick up an new changes otherwise you 
may see errors as the old versions of software will not be available"
   echo
fi
%preun
</cut>

3. Users have to build there own on Fedora

I'm happy to build my own.

Thanks, John.

On 23/09/11 16:12, Jules wrote:
> But that involved you building a Fedora-specific RPM on Fedora. I need a
> generic spec file that will build on RHEL and produce an RPM that will
> work on RHEL and Fedora systems.
>
> Jules.
>
> On 23/09/2011 16:01, John Cooper wrote:
>> Hi Jules,
>>     I recompiled using your spec file in the tarball and that worked. As
>> root (needs to do a chown)
>>
>> cp ZendTo-4.06-1/docs/rpm/zendto.spec ~/rpmbuild/SPECS
>> cp ZendTo-4.06-1.tgz ~/rpmbuild/SOURCES
>> cd ~/rpmbuild/SPECS
>> rpmbuild -ba zendto.spec
>>
>> # rpm -Uvh /root/rpmbuild/RPMS/noarch/zendto-4.06-1.noarch.rpm
>> Preparing...                ###########################################
>> [100%]
>>       1:zendto                 ###########################################
>> [100%]
>> Reloading crond:                                           [  OK  ]
>>
>> Now add a new website to your Apache configuration with the
>> DocumentRoot set to /opt/zendto/www/.
>>
>> So your update to the spec file worked.
>>
>> I suggest you also give a message to restart or reload Apache otherwise
>> you may see strange errors.
>>
>> yum update zendto
>> service httpd restart
>>
>> Thanks, John.
>>
>> On 23/09/11 15:15, Jules wrote:
>>> If someone who knows more about RPM spec files than I do, can tell me
>>> how to test for Fedora then I can tweak the spec file. I failed to find
>>> anything on the web that actually worked to test for Fedora in a spec file.
>>>
>>> On 23/09/2011 13:56, John Cooper wrote:
>>>> Fedora is still broken due to looking for clamd instead of clamav-server
>>>> again.
>>>>
>>>> Thanks, John.
>>>>
>>>>
>>>> $ sudo yum install zendto
>>>> Loaded plugins: langpacks, presto, refresh-packagekit
>>>> Adding en_GB to language list
>>>> Setting up Install Process
>>>> Resolving Dependencies
>>>> -->     Running transaction check
>>>> --->     Package zendto.noarch 0:4.06-1 set to be installed
>>>> -->     Processing Dependency: clamd for package: zendto-4.06-1.noarch
>>>> -->     Finished Dependency Resolution
>>>> Error: Package: zendto-4.06-1.noarch (ZendTo)
>>>>                 Requires: clamd
>>>>       You could try using --skip-broken to work around the problem
>>>>       You could try running: rpm -Va --nofiles --nodigest
>>>>
>>>> $ rpm -q clamav-server
>>>> clamav-server-0.97.2-1400.fc14.x86_64
>>>>
>>>> On 23/09/11 13:02, Jules wrote:
>>>>> Hi folks!
>>>>>
>>>>> I have just released version 4.06 of ZendTo.
>>>>> It's mostly just little issues and niggles this month, including getting
>>>>> the statistics graphs working correctly. For example it will now attempt
>>>>> to warn you if you try to navigate away from the "New Dropoff" page if
>>>>> an upload is in progress, as that will abandon the drop-off. And Active
>>>>> Directory logins are now more tolerant of common user errors, such as
>>>>> entering their domain name or email address.
>>>>>
>>>>> *Note*: You will need to delete your /var/zendto/rrd/zendto.rrd file for
>>>>> the graphs to start working correctly again, but it will automatically
>>>>> replace all data for the past month (if that's how long you keep drop-offs).
>>>>>
>>>>> Download as usual from
>>>>>           http://zend.to/
>>>>>
>>>>> The full Change Log for the month is this:
>>>>>
>>>>> - Fixed 2 security problems in HTML handling.
>>>>> - Stats graphs y-axis will now always start at 0.
>>>>> - Added total size at the bottom of lists of drop-offs.
>>>>> - Fixed bug in AD authenticator where logins attempted with email addresses
>>>>>         instead of usernames were incorrectly handled. Now correctly ignores
>>>>> @ and
>>>>>         everything after it in the supplied username.
>>>>> - AD authenticator now handles "domain\username" logins as well as
>>>>> "username"
>>>>>         and "username at domain.com" type login attempts.
>>>>> - Make illegal username attempts show the user an error, previously just
>>>>>         quietly re-presented the login page.
>>>>> - Made bars wider on graphs for>= 90 days to provide some data smoothing.
>>>>> - Fixed timestamp errors from rrdInit.php which was stopping it from
>>>>> working.
>>>>> - Fixed more rrdInit.php database problems. Now produces sensible figures.
>>>>> - IE and Firefox will now warn you if you try to leave the page while
>>>>>         uploading a Drop-off, which would abandon the drop-off. Safari and Chrome
>>>>>         should support this feature in the future. Thanks UxBoD ! (Safari and
>>>>> Chrome
>>>>>         support for this feature will be added very soon.)
>>>>>
>>>>> Any problems, do let me know!
>>>>>
>>>>> Jules
>>>>>
>>>> _______________________________________________
>>>> ZendTo mailing list
>>>> ZendTo at zend.to
>>>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>>> Jules
>>>
>> _______________________________________________
>> ZendTo mailing list
>> ZendTo at zend.to
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> Jules
>



More information about the ZendTo mailing list