Skip to content

Commit

Permalink
update 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleyel committed Jan 12, 2024
1 parent 4edf313 commit c5c8cb4
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 175 deletions.
114 changes: 70 additions & 44 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,50 @@ RUN add-apt-repository ppa:deadsnakes/ppa -y
# build requirements
RUN apt-get update && apt-get install -y \
git g++-12 build-essential autoconf autotools-dev gettext libtool libtool-bin unzip swig \
python3.11-dev \
python3-pip python3-twisted python3-usb python3-requests \
python3.12-dev \
python3-twisted python3-usb python3-requests \
libz-dev libssl-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsigc++-2.0-dev \
libfreetype6-dev libfribidi-dev \
libavahi-client-dev libjpeg-dev libgif-dev libsdl2-dev libxml2-dev \
libarchive-dev libcurl4-openssl-dev libgpgme11-dev libntirpc-dev \
x11vnc xvfb xdotool nginx openssh-server curl vsftpd nano locales iputils-ping net-tools gdb valgrind
x11vnc xvfb xdotool nginx openssh-server curl vsftpd nano locales iputils-ping net-tools gdb valgrind libsqlite3-dev


RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1

RUN rm /usr/bin/python3 && ln -sf /usr/bin/python3.11 /usr/bin/python3
RUN rm /usr/bin/pygettext3 && ln -sf /usr/bin/pygettext3.11 /usr/bin/pygettext3
RUN rm /usr/bin/pydoc3 && ln -sf /usr/bin/pydoc3.11 /usr/bin/pydoc3
RUN rm /usr/bin/python3-config && ln -sf /usr/bin/python3.11-config /usr/bin/python3-config
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1

RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python get-pip.py

RUN find / -name 'pip*'

RUN update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.12 1

RUN rm /usr/bin/python3 && ln -sf /usr/bin/python3.12 /usr/bin/python3
RUN rm /usr/bin/pygettext3 && ln -sf /usr/bin/pygettext3.12 /usr/bin/pygettext3
RUN rm /usr/bin/pydoc3 && ln -sf /usr/bin/pydoc3.12 /usr/bin/pydoc3
#RUN rm /usr/bin/python3-config && ln -sf /usr/bin/python3.12-config /usr/bin/python3-config
#RUN rm /usr/bin/python3-config && ln -sf /usr/local/bin/pip3.12 /usr/bin/pip3

RUN pip3 install wifi Cheetah3 pillow treq future
RUN pip3 install netifaces cffi puremagic
#RUN pip3 install --upgrade pip
RUN pip3 install setuptools

RUN pip3 install wifi
RUN pip3 install Cheetah3
RUN pip3 install pillow
RUN pip3 install treq
RUN pip3 install future
RUN pip3 install netifaces
RUN pip3 install cffi
RUN pip3 install puremagic
RUN pip3 install tmdbsimple
RUN pip3 install tvdbsimple
#RUN pip3 install sqlite
#RUN pip3 install scalene

WORKDIR /work
Expand All @@ -53,6 +74,7 @@ RUN cd tuxtxt/libtuxtxt \
&& CPP="gcc -E -P" ./configure --with-boxtype=generic --prefix=/usr \
&& make \
&& make install

RUN cd tuxtxt/tuxtxt \
&& autoreconf -i \
&& CPP="gcc -E -P" ./configure --with-boxtype=generic --prefix=/usr \
Expand All @@ -70,25 +92,22 @@ RUN cd "opkg-$OPKG_VER" \

RUN git clone --depth 1 https://github.com/openatv/enigma2.git
RUN cd enigma2 \
&& ./autogen.sh \
&& ./configure --with-libsdl --with-gstversion=1.0 --prefix=/usr --sysconfdir=/etc \
&& make -j4 \
&& make install
# disable startup wizards
COPY enigma2-settings /etc/enigma2/settings
&& ./autogen.sh \
&& ./configure --with-libsdl --with-gstversion=1.0 --prefix=/usr --sysconfdir=/etc --with-boxtype=dm920 \
&& make -j4 \
&& make install
RUN ldconfig

RUN git clone --depth 10 https://github.com/oe-mirrors/branding-module.git
COPY ax_python_devel.m4 branding-module/m4/ax_python_devel.m4
RUN cd branding-module \
&& autoreconf -i \
&& ./configure --prefix=/usr --with-imageversion="7.1" \
&& ./configure --prefix=/usr --with-imageversion="7.4" \
&& make \
&& make install

RUN git clone --depth 1 https://github.com/openatv/MetrixHD.git -b master
RUN cd MetrixHD && cp -arv usr /
# && rm -r /usr/lib/enigma2/python/Plugins/Extensions/MyMetrixLite

#default skin
RUN git clone --depth 1 https://github.com/openatv/oe-alliance-e2-skindefault.git
Expand All @@ -98,31 +117,36 @@ RUN cd oe-alliance-e2-skindefault && cp -arv fonts /usr/share/ && cp -arv skin_d
RUN git clone --depth 1 https://github.com/IanSav/OverlayHD.git
RUN cd OverlayHD && cp -arv usr /

RUN git clone --depth 1 https://github.com/openatv/WeatherInfo.git
RUN cd WeatherInfo && cp Weatherinfo.py /usr/lib/enigma2/python/Tools/


# rpc error
RUN cp /usr/include/tirpc/rpc/* /usr/include/rpc/
RUN cp /usr/include/tirpc/netconfig.h /usr/include/

# oe-alliance-plugins
#RUN git clone --depth 1 https://github.com/oe-alliance/oe-alliance-plugins.git
#COPY Makefile-oe-alliance-plugins.am oe-alliance-plugins/Makefile.am
#RUN cd oe-alliance-plugins \
# && autoreconf -i \
# && ./configure --prefix=/usr \
# && make \
# && make install
RUN git clone --depth 1 https://github.com/oe-alliance/oe-alliance-plugins.git
COPY Makefile-oe-alliance-plugins.am oe-alliance-plugins/Makefile.am
COPY ax_python_devel.m4 enigma2-plugins/m4/ax_python_devel.m4
RUN cd oe-alliance-plugins \
&& autoreconf -i \
&& ./configure --prefix=/usr \
&& make \
&& make install


# enigma2-plugins
#RUN git clone --depth 1 https://github.com/oe-alliance/enigma2-plugins.git
#COPY Makefile-enigma2-plugins.am enigma2-plugins/Makefile.am
#RUN cd enigma2-plugins \
# && sed -i '/PKG_CHECK_MODULES(ENIGMA2, enigma2)/d' ./configure.ac \
# && sed -i '/PKG_CHECK_MODULES(LIBCRYPTO, libcrypto)/d' ./configure.ac \
# && autoreconf -i \
# && ./configure --prefix=/usr --without-debug --with-po \
# && make \
# && make install
RUN git clone --depth 1 https://github.com/oe-alliance/enigma2-plugins.git
COPY Makefile-enigma2-plugins.am enigma2-plugins/Makefile.am
COPY ax_python_devel.m4 enigma2-plugins/m4/ax_python_devel.m4
RUN cd enigma2-plugins \
&& sed -i '/PKG_CHECK_MODULES(ENIGMA2, enigma2)/d' ./configure.ac \
&& sed -i '/PKG_CHECK_MODULES(LIBCRYPTO, libcrypto)/d' ./configure.ac \
&& autoreconf -i \
&& ./configure --prefix=/usr --without-debug --with-po \
&& make \
&& make install

# OWI
RUN git clone --depth 1 https://github.com/oe-alliance/OpenWebif.git
Expand All @@ -133,17 +157,16 @@ RUN cd OpenWebif \



#RUN git clone --depth 1 https://github.com/oe-mirrors/e2openplugin-EnhancedMovieCenter.git
#RUN cd e2openplugin-EnhancedMovieCenter \
# && autoreconf -i \
# && ./configure --prefix=/usr \
# && make \
# && make install

RUN git clone --depth 1 https://github.com/oe-mirrors/e2openplugin-EnhancedMovieCenter.git
RUN cd e2openplugin-EnhancedMovieCenter \
&& autoreconf -i \
&& ./configure --prefix=/usr \
&& make \
&& make install

COPY enigma.info /usr/lib/enigma.info

COPY process.py /usr/lib/python3.10/site-packages/process.py
COPY process.py /usr/lib/python3.12/site-packages/process.py


# OPKG
Expand All @@ -154,7 +177,7 @@ RUN echo "option status_file /var/lib/opkg/status" >> /etc/opkg/opkg.conf
RUN echo "arch all 1" > /etc/opkg/arch.conf
RUN echo "arch any 6" >> /etc/opkg/arch.conf
RUN echo "arch noarch 11" >> /etc/opkg/arch.conf
RUN echo "src/gz openatv-all http://feeds2.mynonpublic.com/7.1/vusolo4k/all" >> /etc/opkg/all-feed.conf
RUN echo "src/gz openatv-all http://feeds2.mynonpublic.com/7.4/vusolo4k/all" >> /etc/opkg/all-feed.conf
RUN echo "src/gz oe-alliance-settings-feed https://raw.githubusercontent.com/oe-alliance/oe-alliance-settings-feed/master/feed" >> /etc/opkg/oe-alliance-settings-feed.conf

COPY opkg.py /work/opkg.py
Expand All @@ -179,6 +202,9 @@ COPY vsftpd.conf /etc/
RUN mkdir -p /var/run/vsftpd/empty
RUN sed -i '/root/d' /etc/ftpusers

RUN mkdir -p /usr/share/enigma2/receiver
COPY test.png /usr/share/enigma2/receiver
COPY test_front.png /usr/share/enigma2/receiver
COPY entrypoint.sh /opt
RUN chmod 755 /opt/entrypoint.sh
ENV DISPLAY=:99
Expand Down
Loading

0 comments on commit c5c8cb4

Please sign in to comment.