From fb89d3feb7b1b5c289b5df7a278a7ced709ae789 Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 13 Sep 2006 23:26:55 +0000 Subject: tor: signature checking, initscript and slack-required git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@188 370017ae-e619-0410-ac65-c121f96126d4 --- tor/tor.SlackBuild | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'tor/tor.SlackBuild') diff --git a/tor/tor.SlackBuild b/tor/tor.SlackBuild index e17078b8..4017448d 100755 --- a/tor/tor.SlackBuild +++ b/tor/tor.SlackBuild @@ -4,7 +4,17 @@ # by rhatto at riseup.net # -# TODO: signature checking +if [ -s "slack-required" ]; then + echo Recomended and required packages for building tor are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap + else + echo Sleeping 3 seconds... + sleep 3 + fi +fi CWD="`pwd`" @@ -47,8 +57,14 @@ fi if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then wget "$URL" -O "$SRC_DIR/$SRC" + wget "$URL.asc" -O "$SRC_DIR/$SRC.asc" fi +gpg --keyserver subkeys.pgp.net --recv-keys 0x28988BF5 +gpg --keyserver subkeys.pgp.net --recv-keys 0x165733EA +gpg --verify $SRC_DIR/$SRC.asc $SRC_DIR/$SRC || echo WARNING: Could not check signature or WRONG signature found. +sleep 3 + TMP="$TMP/$PACKAGE" rm -rf $TMP mkdir -p $TMP @@ -102,6 +118,10 @@ for file in AUTHORS ChangeLog INSTALL LICENSE README; do cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ done +# install script +echo '( chroot . /sbin/ldconfig )' > install/doinst.sh +echo '( if [ ! -f "etc/rc.d/rc.tor" ]; then mv etc/rc.d/rc.tor.new etc/rc.d/rc.tor ; fi )' >> install/doinst.sh + makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz if [ "$CLEANUP" == "yes" ]; then -- cgit v1.2.3