/usr/src/openswan-2.6.38/packaging/utils/mvcand 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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | #! /bin/sh
# mvcand
# move packaged candidate to distribution site (password supplied manually)
PATH=/bin:/usr/bin
export PATH
umask 022
. $HOME/freeswan-regress-env.sh
localplace=~build/archive
site=freeswan@xs4.xs4all.nl
place=FTP
linkname=CANDIDATE.tar
ssh=/usr/bin/ssh
scp=/usr/bin/scp
localonly=
remove=yes
for dummy
do
case "$1" in
-l) localonly=yes ;;
-k) remove= ;;
--) shift ; break ;;
-*) echo "$0: unknown option \'$1'" >&2 ; exit 2 ;;
*) break ;;
esac
shift
done
case "$#" in
0) ;;
*) echo "Usage: $0" >&2 ; exit ;;
esac
cd ~build/tmp
tarname=`ls | sed -n '/^freeswan-.*\.gz$/s/\.gz$//p' | tail -1`
echo "moving $tarname.gz"
(
cd $localplace
rm -f freeswan-cand* $linkname.*
ln -s $tarname.gz $linkname.gz
)
cp -p $tarname.gz $tarname.gz.md5 $tarname.gz.sig CANDIDATE.tar.gz.md5 $localplace
if test "$localonly"
then
exit 0 # leaving the original around
fi
$ssh $site "cd $place ; rm -f freeswan-cand* $linkname.* ;
ln -s $tarname.gz $linkname.gz ;
ln -s $tarname.gz.sig $linkname.gz.sig"
$scp -p $tarname.gz.md5 $tarname.gz.sig $tarname.gz CANDIDATE.tar.gz.md5 $site:$place
if test "$remove"
then
rm -f $tarname.*
fi
|