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.

81 lines
1.6 KiB

  1. FROM lsiobase/alpine
  2. MAINTAINER saarg
  3. # install runtime packages
  4. RUN \
  5. apk add --no-cache \
  6. libcrypto1.0 \
  7. libssl1.0 \
  8. libusb \
  9. pcsc-lite \
  10. pcsc-lite-libs && \
  11. # install build packages
  12. apk add --no-cache --virtual=build-dependencies \
  13. curl \
  14. gcc \
  15. g++ \
  16. libusb-dev \
  17. linux-headers \
  18. make \
  19. openssl-dev \
  20. pcsc-lite-dev \
  21. subversion \
  22. tar && \
  23. # compile oscam from source
  24. svn checkout http://www.streamboard.tv/svn/oscam/trunk /tmp/oscam-svn && \
  25. cd /tmp/oscam-svn && \
  26. ./config.sh \
  27. --enable all \
  28. --disable \
  29. CARDREADER_DB2COM \
  30. CARDREADER_INTERNAL \
  31. CARDREADER_STINGER \
  32. CARDREADER_STAPI \
  33. CARDREADER_STAPI5 \
  34. IPV6SUPPORT \
  35. LCDSUPPORT \
  36. LEDSUPPORT \
  37. READ_SDT_CHARSETS && \
  38. make \
  39. OSCAM_BIN=/usr/bin/oscam \
  40. NO_PLUS_TARGET=1 \
  41. CONF_DIR=/config \
  42. DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
  43. pcsc-libusb && \
  44. # fix broken permissions from pcscd install.
  45. chown root:root \
  46. /usr/sbin/pcscd && \
  47. chmod 755 \
  48. /usr/sbin/pcscd && \
  49. # install PCSC drivers for OmniKey devices
  50. mkdir -p \
  51. /tmp/omnikey && \
  52. curl -o \
  53. /tmp/omnikey.tar.gz -L \
  54. https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
  55. tar xzf /tmp/omnikey.tar.gz -C \
  56. /tmp/omnikey --strip-components=2 && \
  57. cd /tmp/omnikey && \
  58. ./install && \
  59. # fix group for card readers and add abc to dialout group
  60. groupmod -g 24 cron && \
  61. groupmod -g 16 dialout && \
  62. usermod -a -G 16 abc && \
  63. # cleanup
  64. apk del --purge \
  65. build-dependencies && \
  66. rm -rf \
  67. /tmp/*
  68. # copy local files
  69. COPY root/ /
  70. # Ports and volumes
  71. EXPOSE 8888
  72. VOLUME /config