Subj : Crypt option To : Richard Menedetter From : mark lewis Date : Fri Dec 16 2016 05:50 pm 16 Dec 16 20:42, you wrote to All: RM> I have compiled binkd myself. RM> Strangely it does not send the CRYPT option ... RM> did I miss a configure flag that I need to set?? what flags did you use to compile with? i use the following script which logs everything to the screen and a file via tee... the log file has the same name as the script with ".log" appended... the script will rotate the logs so you'll have a max of 9 old ones plus the new one... edit the "MYBINKDDIR=" line to set your directory where your binkd sources are located... the script pulls the sources from the master branch on github, prunes out old branches and then uploads to your fork in your account on github... you can cut those lines out if you desire... once the pull is finished, it copies the necessary files, runs configure, make and then make install... it runs make install twice... the first time so you can make sure everything is right and the second time to install it with sudo... i keep my sources in ~/fido-dev/binkd and install to my home directory in ~/fido/sbin... watch the wordwrap... there's 103 lines in the script counting the empty line at the end... as the script stands, lines 73, 74, 81 and 82 will likely be wrapped and you'll need to unwrap them... ==== Begin "build-binkd" ==== #!/bin/bash # # script to update and build binkd # # first set the variables LOGFILE=$0.log CWD=$PWD MYBINKDDIR=~/fido-dev/binkd function rotate () { # minimum file size to rotate in MBi: local MB="$1" # filename to rotate (full path) local F="$2" local msize="$((1024*1024*${MB}))" test -e "$F" || return 2 local D="$(dirname "$F")" local E=${F##*.} local B="$(basename "$F" ."$E")" local s= printf "rotate msize=$msize file=$F -> $D | $B | $E\n" if [ "$(stat --printf %s "$F")" -ge $msize ] ; then for i in 8 7 6 5 4 3 2 1 0; do s="$D/$B-$i.$E" test -e "$s" && mv $s "$D/$B-$((i+1)).$E" # this empty command is need to avoid exit iteration if test fails: :; done && mv $F $D/$B-0.$E else printf "rotate skip: $F < $msize, skip\n" fi return $? } # rotate this script's log file rotate 0 $LOGFILE # Redirect stdout ( > ) into a named pipe ( >() ) running "tee" exec > >(tee $LOGFILE) # Without this, only stdout would be captured - i.e. your # log file would not contain any error messages. exec 2>&1 printf "***** starting in $CWD *****\n" printf "***** $(date +%Y%m%d_%H%M%S%Z) *****\n" SDATE1=$(date +"%s") printf "\n" printf "cd $MYBINKDDIR\n" cd $MYBINKDDIR SDATE2=$(date +"%s") printf "git pull upstream master\n" git pull upstream master printf "\n" printf "git remote prune upstream\n" git remote prune upstream printf "\n" printf "git push origin\n" git push origin printf "\n" printf "cp mkfls/unix/{configure*,install-sh,Makefile.*,mkinstalldirs} ./\n" cp mkfls/unix/{configure*,install-sh,Makefile.*,mkinstalldirs} ./ printf "\n" printf "chmod +x mkinstalldirs\n" chmod +x mkinstalldirs printf "\n" printf "./configure --prefix=/home/wkitty42/fido --with-zlib --with-bzip2 --with-https --with-ntlm --with-bwlim\n" ../configure --prefix=/home/wkitty42/fido --with-zlib --with-bzip2 --with-https --with-ntlm --with-bwlim printf "\n" printf "make\n" make printf "\n" printf "make -n install\n" make -n install printf "\n" printf "sudo make install\n" sudo make install printf "\n" EDATE2=$(date +"%s") DIFF=$(($EDATE2-$SDATE2)) cd $CWD printf "***** elapsed time: $(($DIFF / 60))m $(($DIFF % 60))s *****\n" printf "\n" ==== End "build-binkd" ==== )\/(ark Always Mount a Scratch Monkey Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong... .... The French form of government is democratic but noisy. --- * Origin: (1:3634/12.73) .