mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Move back to Ubuntu 14.04, but with custom libyubikey and libykpers-1 builds, resolves #1114
This commit is contained in:
parent
6d46717cfc
commit
51b42bc7b8
57
Dockerfile
57
Dockerfile
@ -14,51 +14,54 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
FROM centos:7
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
|
ENV QT5_VERSION=59
|
||||||
|
ENV QT5_PPA_VERSION=${QT5_VERSION}2
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& curl "https://copr.fedorainfracloud.org/coprs/bugzy/keepassxc/repo/epel-7/bugzy-keepassxc-epel-7.repo" \
|
&& apt-get update -y \
|
||||||
> /etc/yum.repos.d/bugzy-keepassxc-epel-7.repo
|
&& apt-get -y install software-properties-common
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& curl "https://copr.fedorainfracloud.org/coprs/sic/backports/repo/epel-7/sic-backports-epel-7.repo" \
|
&& add-apt-repository ppa:beineri/opt-qt${QT5_PPA_VERSION}-trusty
|
||||||
> /etc/yum.repos.d/sic-backports-epel-7.repo
|
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& yum clean -y all \
|
&& apt-get update -y \
|
||||||
&& yum upgrade -y
|
&& apt-get upgrade -y
|
||||||
|
|
||||||
# build and runtime dependencies
|
# build and runtime dependencies
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& yum install -y \
|
&& apt-get install -y \
|
||||||
make \
|
cmake3 \
|
||||||
automake \
|
g++ \
|
||||||
gcc-c++ \
|
libgcrypt20-dev \
|
||||||
cmake \
|
qt${QT5_VERSION}base \
|
||||||
libgcrypt16-devel \
|
qt${QT5_VERSION}tools \
|
||||||
qt5-qtbase-devel \
|
qt${QT5_VERSION}x11extras \
|
||||||
qt5-linguist \
|
zlib1g-dev \
|
||||||
qt5-qttools \
|
libxi-dev \
|
||||||
zlib-devel \
|
libxtst-dev \
|
||||||
qt5-qtx11extras \
|
mesa-common-dev
|
||||||
qt5-qtx11extras-devel \
|
|
||||||
libXi-devel \
|
ENV CMAKE_PREFIX_PATH=/opt/qt${QT5_VERSION}/lib/cmake
|
||||||
libXtst-devel
|
ENV LD_LIBRARY_PATH=/opt/qt${QT5_VERSION}/lib
|
||||||
|
RUN set -x \
|
||||||
|
&& echo /opt/qt${QT_VERSION}/lib > /etc/ld.so.conf.d/qt${QT5_VERSION}.conf
|
||||||
|
|
||||||
# AppImage dependencies
|
# AppImage dependencies
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& yum install -y \
|
&& apt-get install -y \
|
||||||
wget \
|
wget \
|
||||||
fuse-libs
|
libfuse2
|
||||||
|
|
||||||
# build libyubikey
|
# build libyubikey
|
||||||
ENV YUBIKEY_VERSION=1.13
|
ENV YUBIKEY_VERSION=1.13
|
||||||
RUN set -x && yum install -y libusb-devel
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& wget "https://developers.yubico.com/yubico-c/Releases/libyubikey-${YUBIKEY_VERSION}.tar.gz" \
|
&& wget "https://developers.yubico.com/yubico-c/Releases/libyubikey-${YUBIKEY_VERSION}.tar.gz" \
|
||||||
&& tar xf libyubikey-${YUBIKEY_VERSION}.tar.gz \
|
&& tar xf libyubikey-${YUBIKEY_VERSION}.tar.gz \
|
||||||
&& cd libyubikey-${YUBIKEY_VERSION} \
|
&& cd libyubikey-${YUBIKEY_VERSION} \
|
||||||
&& ./configure --prefix=/usr --libdir=/usr/lib64 \
|
&& ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
@ -66,11 +69,13 @@ RUN set -x \
|
|||||||
|
|
||||||
# build libykpers-1
|
# build libykpers-1
|
||||||
ENV YKPERS_VERSION=1.18.0
|
ENV YKPERS_VERSION=1.18.0
|
||||||
|
RUN set -x \
|
||||||
|
&& apt-get install -y libusb-dev
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& wget "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${YKPERS_VERSION}.tar.gz" \
|
&& wget "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${YKPERS_VERSION}.tar.gz" \
|
||||||
&& tar xf ykpers-${YKPERS_VERSION}.tar.gz \
|
&& tar xf ykpers-${YKPERS_VERSION}.tar.gz \
|
||||||
&& cd ykpers-${YKPERS_VERSION} \
|
&& cd ykpers-${YKPERS_VERSION} \
|
||||||
&& ./configure --prefix=/usr --libdir=/usr/lib64 \
|
&& ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
|
Loading…
Reference in New Issue
Block a user