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.

83 lines
1.8 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. svn checkout http://www.streamboard.tv/svn/oscam/trunk /tmp/oscam-svn && \
  31. cd /tmp/oscam-svn && \
  32. ./config.sh \
  33. --enable all \
  34. --disable \
  35. CARDREADER_DB2COM \
  36. CARDREADER_INTERNAL \
  37. CARDREADER_STINGER \
  38. CARDREADER_STAPI \
  39. CARDREADER_STAPI5 \
  40. IPV6SUPPORT \
  41. LCDSUPPORT \
  42. LEDSUPPORT \
  43. READ_SDT_CHARSETS && \
  44. make \
  45. CONF_DIR=/config \
  46. DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
  47. NO_PLUS_TARGET=1 \
  48. OSCAM_BIN=/usr/bin/oscam \
  49. pcsc-libusb && \
  50. echo "**** fix broken permissions from pcscd install ****" && \
  51. chown root:root \
  52. /usr/sbin/pcscd && \
  53. chmod 755 \
  54. /usr/sbin/pcscd && \
  55. echo "**** install PCSC drivers ****" && \
  56. mkdir -p \
  57. /tmp/omnikey && \
  58. curl -o \
  59. /tmp/omnikey.tar.gz -L \
  60. https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
  61. tar xzf \
  62. /tmp/omnikey.tar.gz -C \
  63. /tmp/omnikey --strip-components=2 && \
  64. cd /tmp/omnikey && \
  65. ./install && \
  66. echo "**** fix group for card readers and add abc to dialout group ****" && \
  67. groupmod -g 24 cron && \
  68. groupmod -g 16 dialout && \
  69. usermod -a -G 16 abc && \
  70. echo "**** cleanup ****" && \
  71. apk del --purge \
  72. build-dependencies && \
  73. rm -rf \
  74. /tmp/*
  75. # copy local files
  76. COPY root/ /
  77. # Ports and volumes
  78. EXPOSE 8888
  79. VOLUME /config