lkundrak / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone
db449ef
#!/bin/bash
db449ef
#
db449ef
# Fetch latest version of LDAP patch.  The patch is downloaded and split in
db449ef
# the ldap/ subdirectory.  It is up to the packager to merge the updates with
db449ef
# the RPM.
db449ef
#
db449ef
# Upstream: http://home.ntelos.net/~masneyb/
db449ef
#
db449ef
# David Cantrell <dcantrell@redhat.com>
db449ef
#
db449ef
db449ef
CWD=$(pwd)
db449ef
db449ef
rm -f masneyb.html-$$
db449ef
wget -O masneyb.html-$$ http://home.ntelos.net/~masneyb
db449ef
p="$(grep "ldap-patch" masneyb.html-$$ | cut -d '>' -f 3 | cut -d '<' -f 1)"
db449ef
rm -f masneyb.html-$$
db449ef
db449ef
rm -rf ldap/
db449ef
mkdir -p ldap/
db449ef
cd ldap/
db449ef
wget -N http://home.ntelos.net/~masneyb/$p
db449ef
splitdiff -a -d $p
db449ef
rm -f $p
db449ef
db449ef
rm -f *_debian_*