Skip to content

Commit 0ac3f77

Browse files
committed
Merge pull request simonclausen#33 from pysiak/master
Update libsodium and dnscrypt to latest versions
2 parents b3aaa40 + eca9d7b commit 0ac3f77

8 files changed

+46
-22
lines changed

dnscrypt-autoinstall-redhat.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ fi
2929
LSODIUMINST=false
3030
DNSCRYPTINST=false
3131
DNSCRYPTCONF=false
32-
LSODIUMVER=0.6.1
33-
DNSCRYPTVER=1.4.0
34-
LSODIUMURL="https://github.com/jedisct1/libsodium/releases/download/0.6.1"
35-
DNSCRYPTURL="https://github.com/jedisct1/dnscrypt-proxy/releases/download/1.4.0"
32+
LSODIUMVER=1.0.0
33+
DNSCRYPTVER=1.4.1
34+
LSODIUMURL="https://github.com/jedisct1/libsodium/releases/download/1.0.0"
35+
DNSCRYPTURL="https://github.com/jedisct1/dnscrypt-proxy/releases/download/1.4.1"
3636
GPGURL_LS="https://download.libsodium.org/libsodium/releases"
3737
GPGURL_DC="http://download.dnscrypt.org/dnscrypt-proxy"
3838
INITURL="https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/init-scripts"
@@ -239,7 +239,7 @@ EOF
239239

240240
tar -zxf libsodium-$LSODIUMVER.tar.gz
241241
pushd libsodium-$LSODIUMVER
242-
./configure && make && make check && \
242+
./configure --enable-minimal && make && make check && \
243243
sudo bash <<EOF
244244
make install
245245

dnscrypt-autoinstall.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ fi
2929
LSODIUMINST=false
3030
DNSCRYPTINST=false
3131
DNSCRYPTCONF=false
32-
LSODIUMVER=0.6.1
33-
DNSCRYPTVER=1.4.0
34-
LSODIUMURL="https://github.com/jedisct1/libsodium/releases/download/0.6.1"
35-
DNSCRYPTURL="https://github.com/jedisct1/dnscrypt-proxy/releases/download/1.4.0"
32+
LSODIUMVER=1.0.0
33+
DNSCRYPTVER=1.4.1
34+
LSODIUMURL="https://github.com/jedisct1/libsodium/releases/download/1.0.0"
35+
DNSCRYPTURL="https://github.com/jedisct1/dnscrypt-proxy/releases/download/1.4.1"
3636
GPGURL_LS="https://download.libsodium.org/libsodium/releases"
3737
GPGURL_DC="http://download.dnscrypt.org/dnscrypt-proxy"
3838
INITURL="https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/init-scripts"
@@ -237,7 +237,7 @@ EOF
237237

238238
tar -zxf libsodium-$LSODIUMVER.tar.gz
239239
pushd libsodium-$LSODIUMVER
240-
./configure && make && make check && \
240+
./configure --enable-minimal && make && make check && \
241241
sudo bash <<EOF
242242
make install
243243
ldconfig

init-scripts/initscript-cloudns.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ case "$1" in
2929
;;
3030
stop)
3131
echo "Stopping $NAME"
32-
pkill -f dnscrypt-proxy
32+
pkill -f $DAEMON
33+
;;
34+
restart)
35+
$0 stop
36+
$0 start
3337
;;
3438
*)
35-
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop}"
39+
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}"
3640
exit 1
3741
;;
3842
esac

init-scripts/initscript-dnscrypteu.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ case "$1" in
2929
;;
3030
stop)
3131
echo "Stopping $NAME"
32-
pkill -f dnscrypt-proxy
32+
pkill -f $DAEMON
33+
;;
34+
restart)
35+
$0 stop
36+
$0 start
3337
;;
3438
*)
35-
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop}"
39+
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}"
3640
exit 1
3741
;;
3842
esac

init-scripts/initscript-opendns.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ case "$1" in
2222
;;
2323
stop)
2424
echo "Stopping $NAME"
25-
pkill -f dnscrypt-proxy
25+
pkill -f $DAEMON
26+
;;
27+
restart)
28+
$0 stop
29+
$0 start
2630
;;
2731
*)
28-
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop}"
32+
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}"
2933
exit 1
3034
;;
3135
esac

init-scripts/initscript-openniceu.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ case "$1" in
2929
;;
3030
stop)
3131
echo "Stopping $NAME"
32-
pkill -f dnscrypt-proxy
32+
pkill -f $DAEMON
33+
;;
34+
restart)
35+
$0 stop
36+
$0 start
3337
;;
3438
*)
35-
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop}"
39+
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}"
3640
exit 1
3741
;;
3842
esac

init-scripts/initscript-opennicjp.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ case "$1" in
2525
;;
2626
stop)
2727
echo "Stopping $NAME"
28-
pkill -f dnscrypt-proxy
28+
pkill -f $DAEMON
29+
;;
30+
restart)
31+
$0 stop
32+
$0 start
2933
;;
3034
*)
31-
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop}"
35+
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}"
3236
exit 1
3337
;;
3438
esac

init-scripts/initscript-soltysiak.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ case "$1" in
2525
;;
2626
stop)
2727
echo "Stopping $NAME"
28-
pkill -f dnscrypt-proxy
28+
pkill -f $DAEMON
29+
;;
30+
restart)
31+
$0 stop
32+
$0 start
2933
;;
3034
*)
31-
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop}"
35+
echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}"
3236
exit 1
3337
;;
3438
esac

0 commit comments

Comments
 (0)