Oscam is an Open Source Conditional Access Module software used for descrambling DVB transmissions using smart cards. It's both a server and a client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.0 KiB

  1. FROM lsiobase/alpine:arm32v7-3.8
  2. # set version label
  3. ARG BUILD_DATE
  4. ARG VERSION
  5. LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
  6. LABEL maintainer="saarg"
  7. RUN \
  8. echo "**** install build packages ****" && \
  9. apk add --no-cache --virtual=build-dependencies \
  10. bzr \
  11. curl \
  12. gcc \
  13. g++ \
  14. libusb-dev \
  15. linux-headers \
  16. make \
  17. libressl-dev \
  18. pcsc-lite-dev \
  19. subversion \
  20. tar && \
  21. echo "**** install runtime packages ****" && \
  22. apk add --no-cache \
  23. ccid \
  24. libcrypto1.0 \
  25. libssl1.0 \
  26. libusb \
  27. pcsc-lite \
  28. pcsc-lite-libs && \
  29. echo "**** compile oscam ****" && \
  30. if [ -z ${OSCAM_VERSION+x} ]; then \
  31. OSCAM_VERSION=$(svn info --show-item revision http://www.streamboard.tv/svn/oscam/trunk ); \
  32. fi && \
  33. svn checkout http://www.streamboard.tv/svn/oscam/trunk /tmp/oscam-svn && \
  34. cd /tmp/oscam-svn && \
  35. ./config.sh \
  36. --enable all \
  37. --disable \
  38. CARDREADER_DB2COM \
  39. CARDREADER_INTERNAL \
  40. CARDREADER_STINGER \
  41. CARDREADER_STAPI \
  42. CARDREADER_STAPI5 \
  43. IPV6SUPPORT \
  44. LCDSUPPORT \
  45. LEDSUPPORT \
  46. READ_SDT_CHARSETS && \
  47. make \
  48. CONF_DIR=/config \
  49. DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
  50. NO_PLUS_TARGET=1 \
  51. OSCAM_BIN=/usr/bin/oscam \
  52. pcsc-libusb && \
  53. echo "**** fix broken permissions from pcscd install ****" && \
  54. chown root:root \
  55. /usr/sbin/pcscd && \
  56. chmod 755 \
  57. /usr/sbin/pcscd && \
  58. echo "**** install PCSC drivers ****" && \
  59. mkdir -p \
  60. /tmp/omnikey && \
  61. curl -o \
  62. /tmp/omnikey.tar.gz -L \
  63. https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
  64. tar xzf \
  65. /tmp/omnikey.tar.gz -C \
  66. /tmp/omnikey --strip-components=2 && \
  67. cd /tmp/omnikey && \
  68. ./install && \
  69. echo "**** fix group for card readers and add abc to dialout group ****" && \
  70. groupmod -g 24 cron && \
  71. groupmod -g 16 dialout && \
  72. usermod -a -G 16 abc && \
  73. echo "**** cleanup ****" && \
  74. apk del --purge \
  75. build-dependencies && \
  76. rm -rf \
  77. /tmp/*
  78. # copy local files
  79. COPY root/ /
  80. # Ports and volumes
  81. EXPOSE 8888
  82. VOLUME /config