forked from nobody9/openpliPC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_openpwebif.sh
executable file
·55 lines (45 loc) · 1.53 KB
/
build_openpwebif.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
echo "-----------------------------------------"
echo "*** INSTALL REQUIRED PACKAGES ***"
echo "-----------------------------------------"
REQPKG="python-cheetah python-twisted-web \
"
for p in $REQPKG; do
echo -n ">>> Checking \"$p\" : "
dpkg -s $p >/dev/null
if [ "$?" -eq "0" ]; then
echo "package is installed, skip it"
else
echo "package NOT present, installing it"
sudo apt-get -y install $p
fi
done
# where is Enigma2 plugins diretory
INSTALL_E2PDIR="/usr/local/e2/lib/enigma2/python/Plugins"
# ----------------------------------------------------------------------
# Build and install e2openplugin-OpenWebif:
PKG="e2openplugin-OpenWebif"
echo "-----------------------------------------"
echo "getting $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
git clone git://github.com/E2OpenPlugins/$PKG.git
cd $PKG/plugin
echo "--------------------------------------"
echo "installing $PKG"
echo "--------------------------------------"
sudo mkdir -p $INSTALL_E2PDIR/Extensions/OpenWebif
echo "--------------------------------------"
echo "build $PKG, please wait..."
echo "--------------------------------------"
sudo cp -R . $INSTALL_E2PDIR/Extensions/OpenWebif
sudo cheetah-compile -R --nobackup $INSTALL_E2PDIR/Extensions/OpenWebif
sudo python -O -m compileall $INSTALL_E2PDIR/Extensions/OpenWebif
cd ..
# ----------------------------------------------------------------------
echo ""
echo "**********************<END>**********************"