ssahani / rpms / dhcp

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