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.

87 lines
2.0 KiB

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