Alpha version of installer. Might work

This commit is contained in:
2004-01-27 22:16:41 +00:00
parent 7b81c1e3ae
commit 9f2417ad7a
3 changed files with 33 additions and 0 deletions

12
installer/check_modules.py Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/python
import sys
try:
import dns
has = 1
except:
has = 0
if has == 1:
sys.exit(0)
else:
sys.exit(1)

Binary file not shown.

21
installer/install.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
DNSPYTHON_VER=1.2.0
# Do we have the dns modules??
./check_dnsmod.py
if [ "$?" == "1" ]; then
DNSPYTHON=dnspython-$DNSPYTHON_VER
tar zxf $DNSPYTHON.tar.gz
cd $DNSPYTHON
python setup.py install
cd ..
fi
# Copy the manpages
cp ../dnsupdate.1 /usr/share/man/man1
gzip /usr/share/man/man1/dnsupdate.1
cp ../dnsupdaterc.5 /usr/share/man/man5
gzip /usr/share/man/man5/dnsupdaterc.5
cp ../dnsupdate.py /usr/bin/dnsupdate
chmod 755 /usr/bin/dnsupdate