Mercurial > hg > anonet-resdb
changeset 639:15bbd88257a6 draft
added configurations to splice3 installations
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Sat, 01 Oct 2011 14:01:03 -0500 |
parents | 6753fb814c94 |
children | 1917aac8a593 |
files | contrib/splice3/CHANGES contrib/splice3/LINUX/splice3-deshadow.py contrib/splice3/LINUX/splice3.py contrib/splice3/Makefile contrib/splice3/README contrib/splice3/setup contrib/splice3/setup-deb |
diffstat | 7 files changed, 66 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/splice3/CHANGES Sun Sep 25 17:33:38 2011 -0500 +++ b/contrib/splice3/CHANGES Sat Oct 01 14:01:03 2011 -0500 @@ -53,3 +53,8 @@ Sat Sep 24 2011 d3v11 Changed Makefile and disabled py_compile to avoid interpreter errors. + + Sat Oct 1 2011 + d3v11 added setup and setup-deb with Makefile + to check for dependencies and set the + correct environment paths.
--- a/contrib/splice3/LINUX/splice3-deshadow.py Sun Sep 25 17:33:38 2011 -0500 +++ b/contrib/splice3/LINUX/splice3-deshadow.py Sat Oct 01 14:01:03 2011 -0500 @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!PYTHON import sys; sys.tracebacklimit = 0 from crypt import crypt TestHash = crypt(sys.argv[1], sys.argv[2])
--- a/contrib/splice3/LINUX/splice3.py Sun Sep 25 17:33:38 2011 -0500 +++ b/contrib/splice3/LINUX/splice3.py Sat Oct 01 14:01:03 2011 -0500 @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!PYTHON import os import re
--- a/contrib/splice3/Makefile Sun Sep 25 17:33:38 2011 -0500 +++ b/contrib/splice3/Makefile Sat Oct 01 14:01:03 2011 -0500 @@ -2,6 +2,7 @@ install-deb: make clean + ./setup-deb mkdir DEBIAN/splice3 mkdir DEBIAN/splice3/DEBIAN mkdir DEBIAN/splice3/usr @@ -9,8 +10,9 @@ mkdir DEBIAN/splice3/etc mkdir DEBIAN/splice3/etc/splice3 cp DEBIAN/control DEBIAN/splice3/DEBIAN/control - cp LINUX/splice3.py DEBIAN/splice3/usr/bin/splice3 - cp LINUX/splice3-deshadow.py DEBIAN/splice3/usr/bin/splice3-deshadow + cp LINUX/splice3.cp DEBIAN/splice3/usr/bin/splice3 + cp LINUX/splice3-deshadow.cp DEBIAN/splice3/usr/bin/splice3-deshadow + rm -rf LINUX/*.cp chmod +x DEBIAN/splice3/usr/bin/splice3 chmod +x DEBIAN/splice3/usr/bin/splice3-deshadow cp SPLICE3/splice3.list DEBIAN/splice3/etc/splice3/splice3.list @@ -29,9 +31,11 @@ install: make clean + ./setup make uninstall - cp LINUX/splice3.py /usr/bin/splice3 - cp LINUX/splice3-deshadow.py /usr/bin/splice3-deshadow + cp LINUX/splice3.cp /usr/bin/splice3 + cp LINUX/splice3-deshadow.cp /usr/bin/splice3-deshadow + rm -rf LINUX/*.cp chmod +x /usr/bin/splice3 chmod +x /usr/bin/splice3-deshadow mkdir /etc/splice3 @@ -51,18 +55,10 @@ rm -f /usr/bin/splice3 rm -f /usr/bin/splice3-deshadow -update-tor: - usewithtor wget http://nbafkr7odek2wh6r.onion/splice3.tgz -O ../splice3.tgz - tar -xvf ../splice3.tgz --directory='../' - rm ../splice3.tgz - cat CHANGES - update: wget http://www.d3v11.ano/splice3.tgz -O ../splice3.tgz tar -xvf ../splice3.tgz --directory='../' rm ../splice3.tgz - cat CHANGES clean: rm DEBIAN/splice3 DEBIAN/*.deb -rf -
--- a/contrib/splice3/README Sun Sep 25 17:33:38 2011 -0500 +++ b/contrib/splice3/README Sat Oct 01 14:01:03 2011 -0500 @@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. DEPENDS ON: - python2.7 + python2.7, man INSTALL AND UNINSTALL: To install, `cd' to the extracted splice folder.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/splice3/setup Sat Oct 01 14:01:03 2011 -0500 @@ -0,0 +1,21 @@ +#!/bin/bash +echo 'checking for python2.7' +if which python2.7 >/dev/null; then + : +else + echo 'python2.7 not found. Quiting... :-(' + exit 1 +fi + +echo 'checking for man' +if which man >/dev/null; then + : +else + echo 'man not found. Quiting... :-(' + exit 1 +fi + +echo 'configuring path to python2.7' +PYPATH=`which python2.7` +sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3.py >LINUX/splice3.cp +sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3-deshadow.py >LINUX/splice3-deshadow.cp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/splice3/setup-deb Sat Oct 01 14:01:03 2011 -0500 @@ -0,0 +1,29 @@ +#!/bin/bash +echo 'checking for python2.7' +if which python2.7 >/dev/null; then + : +else + echo 'python2.7 not found. Quiting... :-(' + exit 1 +fi + +echo 'checking for man' +if which man >/dev/null; then + : +else + echo 'man not found. Quiting... :-(' + exit 1 +fi + +echo 'checking for dpkg' +if which dpkg >/dev/null; then + : +else + echo 'dpkg not found. Quiting... :-(' + exit 1 +fi + +echo 'configuring path to python2.7' +PYPATH=`which python2.7` +sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3.py >LINUX/splice3.cp +sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3-deshadow.py >LINUX/splice3-deshadow.cp