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