PaulHowarth/Blog/2006-01-27

Friday 27th January 2006

Firewall

Finally gave Shoreline Firewall a go, in the hope of getting decent NAT behaviour on my LAN. It fixed the issues I'd been having (IMAPS, SSH not working except from firewall itself) straight away. So my old firewall script from projectfiles.com has now bitten the dust.

Fedora Extras

Got some feedback from Steve Pritchard on my smbldap-tools submission. I'll apply those suggestions and hopefully it'll be approved soon.

Local Packages

Updated my local smbldap-tools package along the same lines as the Fedora Extras one, except that it uses either /etc/pki/tls/certs or /usr/share/ssl/certs as the directory for TLS certificates depending on the distribution.

I need to update my distribution-detection spec-foo, which currently looks like this:

# Detect the distribution we're using
%define __distinit %(%{__sed} -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' /etc/redhat-release | /usr/bin/tr -d '[:space:]' | /usr/bin/cut -c 1-4 | /usr/bin/tr '[:upper:]' '[:lower:]')
%define __distvers %(%{__sed} -e 's/.* release \\([^ ]*\\) [(].*[)].*/\\1/' /etc/redhat-release)
# Apply kludges for CentOS & White Box
%if "%{__distinit}" == "c" || "%{__distinit}" == "wbel"
%define __distinit rhel
%endif

This unfortunately results in %{__distinit}%{__distvers} values of e.g. rhel4.2 on CentOS 4.2, whereas I really want it to be rhel4. The fix is simple enough but it'll be a lot of specs to update.


Recent