Archive for the ‘RPM’ Category.

djbdns, daemontools and ucspi-tcp RPMS

Every so often I need a copy of one or all of these on a new machine. I tend to normally use RPM based distros and always have issues trying to find RPMS of these packages. As a result I’ve packaged them up and put them in my svn repo.

Feel free to checkout that directory, it includes a readme of how to build them for a system I’ve yet to need them on. replace the fc7 or el5 with something appropriate for your distribution.

Direct download links:

Redhat/Centos 5:

Fedora 7:

RPM spec file conditionals

I never remember how to do this, if you need vendor specific bits inside a spec file (like init scripts etc) you can use this to do different things depending on vendor.

%if "%{_vendor}" == "suse"
  # Suse specific stuff
%endif
%if "%{_vendor}" == "redhat"
  # Redhat specific stuff
%endif

If…else works like this:

%if "%{vendor}" == "suse"
  # Suse specific stuff
%else
  # Redhat specific stuff
%endif