/usr/src/openswan-2.6.38/packaging/utils/kerngitpull.sh is in openswan-modules-dkms 1:2.6.38-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/sh
klips_git=/mara1/git/klips
openswan_git=`pwd`
patchdir=$openswan_git/linux/patches
# generate set of patches against last time we did this, and apply
# the patches to the linux/ subtree.
rm -rf $patchdir
cd $klips_git
mkdir -p $patchdir
git-format-patch -o $openswan_git/linux/patches --mbox openswan_klips
SIGNOFF="Michael Richardson <mcr@xelerance.com>"
mkdir .dotest
cd $openswan_git/linux
for p in patches/0*.txt
do
rm -rf .dotest && mkdir -p .dotest
num_msgs=$(git-mailsplit "$p" .dotest) || exit 1
set -- x .dotest/0*
shift
while case "$#" in 0) break;; esac
do
i="$1"
git-mailinfo -k .dotest/msg .dotest/patch <$i >.dotest/info
git-stripspace <.dotest/msg >.dotest/msg-clean
sed -e 's|^\+\+\+ b/|+++ b/linux/|' -e 's|^--- a/|--- a/linux/|' <.dotest/patch >.dotest/patch-osw
#cat .dotest/patch-osw
(cd $openswan_git && git-applypatch linux/.dotest/msg-clean linux/.dotest/patch-osw linux/.dotest/info "$SIGNOFF" )
read ans
shift
done
done
cd $klips_git
cg-switch openswan_klips
cg-update klipsNG
cg-switch klipsNG
|