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.

85 lines
1.8 KiB

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