parent
6581dc50b8
commit
effbf509ee
@ -1,33 +1,85 @@
|
||||
FROM centos:5
|
||||
|
||||
ARG TDE_VERSION=14.0.7
|
||||
ARG TDE_VERSION=14.1.0
|
||||
ARG ARCH=x86_64
|
||||
|
||||
# Add local repositories
|
||||
RUN rm -f /etc/yum.repos.d/*.repo
|
||||
ADD centos-5.repo /etc/yum.repos.d/centos-5.repo
|
||||
ADD epel-5.repo /etc/yum.repos.d/epel-5.repo
|
||||
ADD repoforge-5.repo /etc/yum.repos.d/repoforge-5.repo
|
||||
|
||||
# Install Trinity build dependencies
|
||||
ADD packages.trinity /etc/yum.repos.d/packages
|
||||
RUN echo "multilib_policy=best" >>"/etc/yum.conf"
|
||||
RUN yum install -y setarch
|
||||
RUN setarch ${ARCH} yum update -y
|
||||
RUN setarch ${ARCH} yum install -y $(</etc/yum.repos.d/packages) || :
|
||||
COPY packages /packages
|
||||
RUN rpm -Uvh http://repo/repo/archives/centos/5/os/x86_64/CentOS/{curl-7.15.5-17.el5_9,libidn-0.6.5-1.1}.x86_64.rpm \
|
||||
&& echo "multilib_policy=best" >>/etc/yum.conf \
|
||||
&& cd /etc/yum.repos.d \
|
||||
&& rm -f *.repo \
|
||||
&& curl http://repo/repo/{centos5,epel5,repoforge5}.repo >repos.repo \
|
||||
&& rpm -e --nodeps --justdb libselinux \
|
||||
&& yum -y update \
|
||||
&& yum -y install $(</packages) || :
|
||||
|
||||
# Avoid conflict with gnome-screensaver
|
||||
RUN setarch ${ARCH} yum remove -y gnome-screensaver
|
||||
RUN setarch ${ARCH} yum install -y --disablerepo="*" --enablerepo="centos-5-extras" xscreensaver
|
||||
RUN setarch ${ARCH} yum -y remove gnome-screensaver \
|
||||
&& setarch ${ARCH} yum -y install --disablerepo="*" --enablerepo="centos-extras" xscreensaver
|
||||
|
||||
# Add YUM repository for locally built packages
|
||||
ADD rpmbuild.repo /etc/yum.repos.d/rpmbuild.repo
|
||||
RUN sed -i "/etc/yum.repos.d/rpmbuild.repo" -e "s|\${ARCH}|${ARCH}|g" -e "s|\${TDE_VERSION}|${TDE_VERSION}|g"
|
||||
# Updated build tools (not provided in centos5)
|
||||
# Distro-specific patches
|
||||
RUN rpm -Uvh http://repo/trinity/archives/el5/tools/RPMS/{noarch/autoconf-2.63-5.el5.noarch,noarch/automake-1.11.1-4.el5.noarch,x86_64/m4-1.4.13-5.el5.x86_64}.rpm \
|
||||
&& rpm -Uvh http://repo/trinity/archives/el5/trinity-14.0.4/RPMS/x86_64/trinity-poppler{,-devel}-0.12.4-1.el5.x86_64.rpm \
|
||||
&& chmod a+r /usr/libexec/utempter/utempter \
|
||||
&& sed -i "/usr/include/jasper/jas_math.h" -e "/#include <stdint.h>/ s|$|\n#ifndef SIZE_MAX\n#define SIZE_MAX ((size_t) -1)\n#endif\n|"
|
||||
|
||||
# Add non-root user to build packages
|
||||
RUN useradd -m -s /bin/bash -u 1000 trinity
|
||||
RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
||||
ADD rpmmacros /home/trinity/.rpmmacros
|
||||
RUN useradd -m -s /bin/bash -u 1000 trinity \
|
||||
&& echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
||||
|
||||
# Distro-specific patches
|
||||
RUN sed -i "/usr/include/jasper/jas_math.h" -e "/#include <stdint.h>/ s|$|\n#ifndef SIZE_MAX\n#define SIZE_MAX ((size_t) -1)\n#endif\n|"
|
||||
USER trinity
|
||||
COPY rpmmacros /home/trinity/.rpmmacros
|
||||
RUN mkdir -p ${HOME}/rpmbuild/{BUILD,BUILDROOT,SOURCES,SPECS,RPMS/noarch,RPMS/${ARCH},SRPMS}
|
||||
|
||||
# Build development packages
|
||||
RUN rpm -i --nomd5 http://vault.centos.org/6.10/os/Source/SPackages/file-5.04-30.el6.src.rpm \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/file.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/file{,-libs,-devel}-5*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://vault.centos.org/6.10/os/Source/SPackages/binutils-2.20.51.0.2-5.48.el6.src.rpm \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/binutils.spec --nodeps \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/binutils{,-devel}-2*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://fr2.rpmfind.net/linux/epel/6/SRPMS/Packages/p/pcsc-perl-1.4.14-2.el6.src.rpm \
|
||||
&& sed -i ${HOME}/rpmbuild/SPECS/pcsc-perl.spec -e "s|%license|%doc|" -e "/URL:/ s|$|\nBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)|" \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/pcsc-perl.spec --define "__isa_bits 64" \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/pcsc-perl-1*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://fr2.rpmfind.net/linux/epel/6/SRPMS/Packages/s/sword-1.7.3-2.el6.src.rpm \
|
||||
&& sed -i ${HOME}/rpmbuild/SPECS/sword.spec -e "/URL:/ s|$|\nBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)|" \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/sword.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/sword{,-devel}-1*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://vault.centos.org/6.10/os/Source/SPackages/gnuchess-5.07-14.1.el6.src.rpm \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/gnuchess.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/gnuchess-5*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://fr2.rpmfind.net/linux/epel/7/SRPMS/Packages/p/perl-PAR-1.015-4.el7.src.rpm \
|
||||
&& sed -i ${HOME}/rpmbuild/SPECS/perl-PAR.spec -e "s|%license|%doc|" -e "/perl(AutoLoader)/ s|^|#|" -e "/URL:/ s|$|\nBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)|" -e "/^make test/ s|^|#|" \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/perl-PAR.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/perl-PAR-1*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://vault.centos.org/7.7.1908/os/Source/SPackages/perl-Module-ScanDeps-1.10-3.el7.src.rpm \
|
||||
&& sed -i ${HOME}/rpmbuild/SPECS/perl-Module-ScanDeps.spec -e "/URL:/ s|$|\nBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)|" -e "/^make test/ s|^|#|" \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/perl-Module-ScanDeps.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/perl-Module-ScanDeps-*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://fr2.rpmfind.net/linux/epel/7/SRPMS/Packages/p/perl-PAR-Packer-1.041-2.el7.src.rpm \
|
||||
&& sed -i ${HOME}/rpmbuild/SPECS/perl-PAR-Packer.spec -e "s|%license|%doc|" -e "/^make test/ s|^|#|" -e "/^Summary:/ s|$|\nGroup: Development/Languages|" -e "/URL:/ s|$|\nBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)|" -e "s|desktop-file-install|desktop-file-install --vendor=''|" \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/perl-PAR-Packer.spec --define "_unpackaged_files_terminate_build 0" \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/perl-PAR-Packer-1*.rpm --nodeps
|
||||
|
||||
RPM rpm -i --nomd5 http://vault.centos.org/6.10/os/Source/SPackages/exempi-2.1.0-5.el6.src.rpm \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/exempi.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/exempi{,-devel}-2*.rpm
|
||||
|
||||
RUN rpm -i --nomd5 http://vault.centos.org/6.10/os/Source/SPackages/pilot-link-0.12.4-6.el6.src.rpm \
|
||||
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/pilot-link.spec \
|
||||
&& sudo rpm -Uvh ${HOME}/rpmbuild/RPMS/*/pilot-link{,-devel}-0*.rpm
|
||||
|
||||
|
||||
# sudo rm -f /usr/bin/gcc && sudo ln -sf /usr/bin/gcc44 /usr/bin/gcc
|
||||
# sudo rm -f /usr/bin/g++ && sudo ln -sf /usr/bin/g++44 /usr/bin/g++
|
||||
# sudo rm -f /usr/bin/c++ && sudo ln -sf /usr/bin/g++44 /usr/bin/c++
|
||||
|
@ -1,30 +0,0 @@
|
||||
[centos-5-base]
|
||||
name=CentOS-5 - Base
|
||||
baseurl=http://repo/repo/archives/centos/5/os/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
|
||||
enabled=1
|
||||
|
||||
#released updates
|
||||
[centos-5-updates]
|
||||
name=CentOS-5 - Updates
|
||||
baseurl=http://repo/repo/archives/centos/5/updates/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
|
||||
enabled=1
|
||||
|
||||
#additional packages that may be useful
|
||||
[centos-5-extras]
|
||||
name=CentOS-5 - Extras
|
||||
baseurl=http://repo/repo/archives/centos/5/extras/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
|
||||
enabled=1
|
||||
|
||||
#additional packages that extend functionality of existing packages
|
||||
[centos-5-centosplus]
|
||||
name=CentOS-5 - Plus
|
||||
baseurl=http://repo/repo/archives/centos/5/centosplus/$basearch/
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
|
||||
enabled=1
|
@ -1,5 +0,0 @@
|
||||
[epel]
|
||||
name=epel
|
||||
baseurl=http://repo/repo/archives/epel/5/$basearch/
|
||||
enabled=1
|
||||
gpgcheck=0
|
@ -1,6 +0,0 @@
|
||||
bash
|
||||
perl
|
||||
setarch
|
||||
vim-enhanced
|
||||
yum
|
||||
yum-plugin-ovl
|
@ -1,5 +0,0 @@
|
||||
[dag]
|
||||
name=dag
|
||||
baseurl=http://repo/repo/repoforge/redhat/el5/en/$basearch/dag/
|
||||
enabled=1
|
||||
gpgcheck=0
|
@ -0,0 +1,26 @@
|
||||
FROM fedora:33
|
||||
|
||||
ARG TDE_VERSION=14.1.0
|
||||
ARG ARCH=x86_64
|
||||
|
||||
# Fix DNF database corruption
|
||||
# Add RPMFUSION repository
|
||||
# Install Trinity build dependencies
|
||||
COPY packages /packages
|
||||
RUN echo "proxy=http://proxy:3128" >>"/etc/dnf.conf" \
|
||||
&& dnf -y install dnf-plugin-ovl findutils \
|
||||
&& dnf -y --enableplugin=ovl install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-33.noarch.rpm \
|
||||
&& dnf -y --enableplugin=ovl update \
|
||||
&& dnf -y --enableplugin=ovl install $(</packages)
|
||||
|
||||
# Add YUM repository for locally built packages
|
||||
COPY rpmbuild.repo /etc/yum.repos.d/rpmbuild.repo
|
||||
RUN sed -i "/etc/yum.repos.d/rpmbuild.repo" -e "s|\${ARCH}|${ARCH}|g" -e "s|\${TDE_VERSION}|${TDE_VERSION}|g"
|
||||
|
||||
# Fix utempter detection
|
||||
RUN chmod a+r /usr/libexec/utempter/utempter
|
||||
|
||||
# Add non-root user to build packages
|
||||
RUN useradd -m -s /bin/bash -u 1000 trinity \
|
||||
&& echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
||||
COPY rpmmacros /home/trinity/.rpmmacros
|
@ -0,0 +1,233 @@
|
||||
alsa-lib-devel
|
||||
aspell
|
||||
aspell-devel
|
||||
audiofile-devel
|
||||
autotrace
|
||||
avahi-devel
|
||||
bind-devel
|
||||
binutils-devel
|
||||
bison
|
||||
boost-devel
|
||||
boost-python3-devel
|
||||
bzip2-devel
|
||||
ccache
|
||||
cdparanoia
|
||||
cdparanoia-devel
|
||||
chmlib-devel
|
||||
chrpath
|
||||
clamav
|
||||
clamav-devel
|
||||
clucene-core-devel
|
||||
cmake
|
||||
cpp
|
||||
cppunit-devel
|
||||
createrepo
|
||||
cryptsetup-devel
|
||||
cups-devel
|
||||
dbus-glib-devel
|
||||
djvulibre
|
||||
djvulibre-devel
|
||||
dnf-plugin-ovl
|
||||
docbook2X
|
||||
doxygen
|
||||
dssi-devel
|
||||
esound-devel
|
||||
exempi-devel
|
||||
exiv2-devel
|
||||
fdupes
|
||||
fedora-rpm-macros
|
||||
ffmpeg-devel
|
||||
fftw-devel
|
||||
file-devel
|
||||
flac-devel
|
||||
flex-static
|
||||
fontpackages-devel
|
||||
fribidi-devel
|
||||
gamin-devel
|
||||
gcc
|
||||
gcc-c++
|
||||
geoip-devel
|
||||
gettext-devel
|
||||
giflib-devel
|
||||
glib-devel
|
||||
gmime-devel
|
||||
gmp-devel
|
||||
gnokii-devel
|
||||
gperf
|
||||
gpgme-devel
|
||||
gphoto2-devel
|
||||
GraphicsMagick-devel
|
||||
graphviz
|
||||
gsl-devel
|
||||
gstreamer1-devel
|
||||
gstreamer1-plugins-base-devel
|
||||
gtk2-devel
|
||||
gtk3-devel
|
||||
gtk+-devel
|
||||
gtk-doc
|
||||
guile-devel
|
||||
harfbuzz-devel
|
||||
hspell-devel
|
||||
htdig
|
||||
html2ps
|
||||
icu
|
||||
ImageMagick-devel
|
||||
imake
|
||||
imlib2-devel
|
||||
intltool
|
||||
jack-audio-connection-kit-devel
|
||||
jasper-devel
|
||||
java-1.8.0-openjdk-devel
|
||||
java-devel
|
||||
java-openjdk
|
||||
lame-devel
|
||||
lcms-devel
|
||||
libacl-devel
|
||||
libblkid-devel
|
||||
libcap-devel
|
||||
libcdio-devel
|
||||
libcdio-paranoia-devel
|
||||
libconfig-devel
|
||||
libcurl-devel
|
||||
libdb-cxx-devel
|
||||
libdb-devel
|
||||
libdvdread-devel
|
||||
libfontenc-devel
|
||||
libgadu-devel
|
||||
libgpod-devel
|
||||
libgsf-devel
|
||||
libical-devel
|
||||
libidn-devel
|
||||
libifp-devel
|
||||
liblo-devel
|
||||
liblrdf-devel
|
||||
libmad-devel
|
||||
libmng-devel
|
||||
libmp4v2-devel
|
||||
libmpcdec-devel
|
||||
libmtp-devel
|
||||
libmusicbrainz5-devel
|
||||
libnjb-devel
|
||||
libnsl2-devel
|
||||
libofx-devel
|
||||
libogg-devel
|
||||
libotr-devel
|
||||
libpaper-devel
|
||||
libpqxx-devel
|
||||
libqalculate-devel
|
||||
libraw1394-devel
|
||||
librsvg2
|
||||
librsvg2-tools
|
||||
libsamplerate-devel
|
||||
libsmbclient-devel
|
||||
libsndfile-devel
|
||||
libssh-devel
|
||||
libssh2-devel
|
||||
libtheora-devel
|
||||
libtiff-devel
|
||||
libtirpc-devel
|
||||
libtool
|
||||
libtool-ltdl-devel
|
||||
libudev-devel
|
||||
libudisks2-devel
|
||||
libutempter-devel
|
||||
libuuid-devel
|
||||
libv4l-devel
|
||||
libvisual-devel
|
||||
libvncserver-devel
|
||||
libvorbis-devel
|
||||
libwmf-devel
|
||||
libwpd-devel
|
||||
libXaw-devel
|
||||
libXcomposite-devel
|
||||
libXdamage-devel
|
||||
libXdmcp-devel
|
||||
libxkbfile-devel
|
||||
libXScrnSaver-devel
|
||||
libxslt-devel
|
||||
libXtst-devel
|
||||
libXv-devel
|
||||
libXxf86dga-devel
|
||||
libXxf86vm-devel
|
||||
libyaz-devel
|
||||
libzrtpcpp-devel
|
||||
lirc-devel
|
||||
lm_sensors-devel
|
||||
meanwhile-devel
|
||||
mftrace
|
||||
mysql-devel
|
||||
nas-devel
|
||||
neon-devel
|
||||
netpbm-progs
|
||||
NetworkManager-libnm-devel
|
||||
net-snmp-devel
|
||||
net-tools
|
||||
nspr-devel
|
||||
ocaml
|
||||
ocaml(compiler)
|
||||
ocaml-facile-devel
|
||||
OpenEXR-devel
|
||||
openldap-devel
|
||||
opensc
|
||||
openslp-devel
|
||||
opensp-devel
|
||||
ortp-devel
|
||||
pam-devel
|
||||
pciutils-devel
|
||||
pcre-devel
|
||||
pcsc-lite-devel
|
||||
pcsc-perl
|
||||
perl
|
||||
perl-devel
|
||||
perl(ExtUtils::MakeMaker)
|
||||
perl(PAR::Packer)
|
||||
perl(XML::Parser)
|
||||
pilot-link-devel
|
||||
pkcs11-helper-devel
|
||||
pkgconfig(pygtk-2.0)
|
||||
poppler-devel
|
||||
postgresql
|
||||
postgresql-devel
|
||||
postgresql-server-devel
|
||||
ppp
|
||||
pulseaudio-libs-devel
|
||||
python
|
||||
python3-devel
|
||||
qt4-devel
|
||||
recode
|
||||
redhat-rpm-config
|
||||
rpcgen
|
||||
rpm-build
|
||||
ruby
|
||||
ruby-devel
|
||||
sane-backends-devel
|
||||
scons
|
||||
SDL-devel
|
||||
selinux-policy-devel
|
||||
speex-devel
|
||||
sqlite-devel
|
||||
subversion-devel
|
||||
sudo
|
||||
swig
|
||||
sword-devel
|
||||
t1lib-devel
|
||||
t1utils
|
||||
taglib-devel
|
||||
texinfo
|
||||
texlive-newunicodechar
|
||||
torsocks
|
||||
transfig
|
||||
udisks-devel
|
||||
unixODBC-devel
|
||||
usbutils
|
||||
valgrind
|
||||
wireless-tools-devel
|
||||
xbase-devel
|
||||
xine-lib-devel
|
||||
xmedcon
|
||||
xmedcon-devel
|
||||
xmlto
|
||||
xorg-x11-font-utils
|
||||
xscreensaver
|
||||
xscreensaver-extras
|
||||
xz-devel
|
@ -0,0 +1,4 @@
|
||||
%dist .fc33
|
||||
%_smp_mflags -j8
|
||||
%jobs 8
|
||||
%__cmake_builddir %nil
|
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session include system-auth
|
@ -0,0 +1,16 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_env.so
|
||||
auth required pam_permit.so
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
-session optional pam_ck_connector.so
|
||||
session required pam_selinux.so open
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_namespace.so
|
||||
session include system-auth
|
||||
session include postlogin
|
@ -0,0 +1,23 @@
|
||||
#%PAM-1.0
|
||||
auth [success=done ignore=ignore default=bad] pam_selinux_permit.so
|
||||
auth required pam_env.so
|
||||
auth substack system-auth
|
||||
-auth optional pam_gnome_keyring.so
|
||||
-auth optional pam_kwallet.so
|
||||
-auth optional pam_kwallet5.so
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
-session optional pam_ck_connector.so
|
||||
session required pam_selinux.so open
|
||||
session optional pam_keyinit.so force revoke
|
||||
session required pam_namespace.so
|
||||
session include system-auth
|
||||
-session optional pam_gnome_keyring.so auto_start
|
||||
-session optional pam_kwallet.so
|
||||
-session optional pam_kwallet5.so
|
||||
session include postlogin
|
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
session include system-auth
|
@ -0,0 +1,11 @@
|
||||
|
||||
module tdm 1.0;
|
||||
|
||||
require {
|
||||
type fprintd_t;
|
||||
type init_t;
|
||||
class dbus send_msg;
|
||||
}
|
||||
|
||||
#============= fprintd_t ==============
|
||||
allow fprintd_t init_t:dbus send_msg;
|
Loading…
Reference in new issue