1
0

Compare commits

...

6 Commits
68 ... 81

Author SHA1 Message Date
9c7d852c19 Merge pull request #9 from linuxserver/3.7
bump to alpine 3.7 and fix continuation lines
2017-12-16 18:21:50 +00:00
d09999bb98 bump to alpine 3.7 and fix continuation lines 2017-12-13 15:30:12 +00:00
fa339bcc4d Merge pull request #8 from bibene/master
add card reader driver package
2017-10-19 17:12:58 +03:00
aef729f7c2 add card reader driver package
update version history
2017-10-19 15:31:54 +03:00
95ef84a777 add card reader driver package
changes after review
2017-10-19 15:30:10 +03:00
bc850b20aa add card reader driver package
My card reader "ID 08e6:3437 Gemalto (was Gemplus) GemPC Twin SmartCard Reader" was not working due to missing driver, adding package ccid solves this. It also includes drivers for many other readers.
2017-10-19 13:52:37 +03:00
2 changed files with 32 additions and 22 deletions

View File

@ -1,13 +1,13 @@
FROM lsiobase/alpine:3.6 FROM lsiobase/alpine:3.7
MAINTAINER saarg
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE
ARG VERSION ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="saarg"
# install build packages
RUN \ RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \ apk add --no-cache --virtual=build-dependencies \
bzr \ bzr \
curl \ curl \
@ -19,16 +19,15 @@ RUN \
libressl-dev \ libressl-dev \
pcsc-lite-dev \ pcsc-lite-dev \
tar && \ tar && \
echo "**** install runtime packages ****" && \
# install runtime packages
apk add --no-cache \ apk add --no-cache \
ccid \
libcrypto1.0 \ libcrypto1.0 \
libssl1.0 \ libssl1.0 \
libusb \ libusb \
pcsc-lite \ pcsc-lite \
pcsc-lite-libs && \ pcsc-lite-libs && \
echo "**** compile oscam ****" && \
# compile oscam from source
bzr branch lp:oscam /tmp/oscam-svn && \ bzr branch lp:oscam /tmp/oscam-svn && \
cd /tmp/oscam-svn && \ cd /tmp/oscam-svn && \
./config.sh \ ./config.sh \
@ -43,20 +42,31 @@ RUN \
LCDSUPPORT \ LCDSUPPORT \
LEDSUPPORT \ LEDSUPPORT \
READ_SDT_CHARSETS && \ READ_SDT_CHARSETS && \
make \ echo "**** attempt to set number of cores available for make to use ****" && \
set -ex && \
CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \
if echo $CPU_CORES | grep -E -q '^[0-9]+$'; then \
: ;\
if [ "$CPU_CORES" -gt 7 ]; then \
CPU_CORES=$(( CPU_CORES - 3 )); \
elif [ "$CPU_CORES" -gt 5 ]; then \
CPU_CORES=$(( CPU_CORES - 2 )); \
elif [ "$CPU_CORES" -gt 3 ]; then \
CPU_CORES=$(( CPU_CORES - 1 )); fi \
else CPU_CORES="1"; fi && \
make -j $CPU_CORES \
CONF_DIR=/config \ CONF_DIR=/config \
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \ DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
NO_PLUS_TARGET=1 \ NO_PLUS_TARGET=1 \
OSCAM_BIN=/usr/bin/oscam \ OSCAM_BIN=/usr/bin/oscam \
pcsc-libusb && \ pcsc-libusb && \
set +ex && \
# fix broken permissions from pcscd install. echo "**** fix broken permissions from pcscd install ****" && \
chown root:root \ chown root:root \
/usr/sbin/pcscd && \ /usr/sbin/pcscd && \
chmod 755 \ chmod 755 \
/usr/sbin/pcscd && \ /usr/sbin/pcscd && \
echo "**** install PCSC drivers ****" && \
# install PCSC drivers for OmniKey devices
mkdir -p \ mkdir -p \
/tmp/omnikey && \ /tmp/omnikey && \
curl -o \ curl -o \
@ -67,13 +77,11 @@ RUN \
/tmp/omnikey --strip-components=2 && \ /tmp/omnikey --strip-components=2 && \
cd /tmp/omnikey && \ cd /tmp/omnikey && \
./install && \ ./install && \
echo "**** fix group for card readers and add abc to dialout group ****" && \
# fix group for card readers and add abc to dialout group
groupmod -g 24 cron && \ groupmod -g 24 cron && \
groupmod -g 16 dialout && \ groupmod -g 16 dialout && \
usermod -a -G 16 abc && \ usermod -a -G 16 abc && \
echo "**** cleanup ****" && \
# cleanup
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \
rm -rf \ rm -rf \

View File

@ -100,9 +100,11 @@ The web interface is at port 8888.
## Versions ## Versions
+ **17.10.2017:** Switch to using bzr for source code, streamboard awol. + **13.12.17:** Rebase to alpine 3.7.
+ **28.05.2017:** Rebase to alpine 3.6. + **19.10.17:** Add ccid package for usb card readers.
+ **09.02.2017:** Rebase to alpine 3.5. + **17.10.17:** Switch to using bzr for source code, streamboard awol.
+ **14.10.2016:** Add version layer information. + **28.05.17:** Rebase to alpine 3.6.
+ **02.10.2016:** Add info on passing through devices to README. + **09.02.17:** Rebase to alpine 3.5.
+ **25.09.2016:** Initial release. + **14.10.16:** Add version layer information.
+ **02.10.16:** Add info on passing through devices to README.
+ **25.09.16:** Initial release.