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