summaryrefslogtreecommitdiffstats
path: root/redhat/docker/el5
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-11-27 21:34:48 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2018-11-27 21:34:48 +0100
commita615d19df88eb2e989316b480519161945dbc7dc (patch)
tree369970b98042998b86c11024598155e037b76fec /redhat/docker/el5
parent76a93e0011ade1583a1ec672f33411dfd35454f3 (diff)
downloadtde-packaging-a615d19df88eb2e989316b480519161945dbc7dc.tar.gz
tde-packaging-a615d19df88eb2e989316b480519161945dbc7dc.zip
RPM: merge redhat directory with master branch
Diffstat (limited to 'redhat/docker/el5')
-rw-r--r--redhat/docker/el5/Dockerfile.i68632
-rw-r--r--redhat/docker/el5/Dockerfile.x86_6433
-rw-r--r--redhat/docker/el5/centos-5.repo30
-rw-r--r--redhat/docker/el5/epel-5.repo5
-rw-r--r--redhat/docker/el5/packages.base6
-rw-r--r--redhat/docker/el5/packages.trinity199
-rw-r--r--redhat/docker/el5/repoforge-5.repo5
-rw-r--r--redhat/docker/el5/rpmbuild.repo11
-rw-r--r--redhat/docker/el5/rpmmacros5
9 files changed, 326 insertions, 0 deletions
diff --git a/redhat/docker/el5/Dockerfile.i686 b/redhat/docker/el5/Dockerfile.i686
new file mode 100644
index 000000000..8b6cbf724
--- /dev/null
+++ b/redhat/docker/el5/Dockerfile.i686
@@ -0,0 +1,32 @@
+FROM centos32:5
+
+ARG TDE_VERSION=14.0.4
+ARG ARCH=i686
+
+# 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 yum install -y setarch
+RUN setarch ${ARCH} yum update -y
+RUN setarch ${ARCH} yum install -y $(</etc/yum.repos.d/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
+
+# 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"
+
+# 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
+
+# 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|"
diff --git a/redhat/docker/el5/Dockerfile.x86_64 b/redhat/docker/el5/Dockerfile.x86_64
new file mode 100644
index 000000000..84a626539
--- /dev/null
+++ b/redhat/docker/el5/Dockerfile.x86_64
@@ -0,0 +1,33 @@
+FROM centos:5
+
+ARG TDE_VERSION=14.0.4
+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) || :
+
+# 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
+
+# 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"
+
+# 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
+
+# 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|"
diff --git a/redhat/docker/el5/centos-5.repo b/redhat/docker/el5/centos-5.repo
new file mode 100644
index 000000000..135077b21
--- /dev/null
+++ b/redhat/docker/el5/centos-5.repo
@@ -0,0 +1,30 @@
+[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
diff --git a/redhat/docker/el5/epel-5.repo b/redhat/docker/el5/epel-5.repo
new file mode 100644
index 000000000..f110938f8
--- /dev/null
+++ b/redhat/docker/el5/epel-5.repo
@@ -0,0 +1,5 @@
+[epel]
+name=epel
+baseurl=http://repo/repo/archives/epel/5/$basearch/
+enabled=1
+gpgcheck=0
diff --git a/redhat/docker/el5/packages.base b/redhat/docker/el5/packages.base
new file mode 100644
index 000000000..7765aa5df
--- /dev/null
+++ b/redhat/docker/el5/packages.base
@@ -0,0 +1,6 @@
+bash
+perl
+setarch
+vim-enhanced
+yum
+yum-plugin-ovl
diff --git a/redhat/docker/el5/packages.trinity b/redhat/docker/el5/packages.trinity
new file mode 100644
index 000000000..da882fb5c
--- /dev/null
+++ b/redhat/docker/el5/packages.trinity
@@ -0,0 +1,199 @@
+alsa-lib-devel
+aspell
+aspell-devel
+audiofile-devel
+autotrace
+avahi-devel
+bind-devel
+binutils-devel
+bison
+boost-devel
+bzip2-devel
+ccache
+ccrtp-devel
+cdparanoia
+cdparanoia-devel
+chmlib-devel
+chrpath
+clamav
+clamav-devel
+clucene-core-devel
+cmake
+commoncpp2-devel
+compat-gcc-34-g77
+cpp
+cppunit-devel
+createrepo
+cryptsetup-luks-devel
+cups-devel
+curl-devel
+db4-devel
+dbus-glib-devel
+dejagnu
+doxygen
+emacs
+esound-devel
+exiv2-devel
+expect
+fdupes
+ffmpeg-devel
+fftw-devel
+flac-devel
+fontpackages-devel
+fribidi-devel
+gamin-devel
+gcc
+gcc-c++
+gcc-gfortran
+gcc-java
+gettext-devel
+glib-devel
+gmime-devel
+gmp-devel
+gnokii-devel
+gperf
+gpgme-devel
+gphoto2-devel
+GraphicsMagick-devel
+gsl-devel
+gstreamer-devel
+gstreamer-plugins-base-devel
+gtk2-devel
+gtk+-devel
+gtk-doc
+guile-devel
+hal-devel
+heimdal-devel
+hspell-devel
+htdig
+html2ps
+icu
+ImageMagick-devel
+imake
+imlib-devel
+jack-audio-connection-kit-devel
+jasper-devel
+java-1.4.2-gcj-compat-devel
+java-1.7.0-openjdk-devel
+java-devel
+java-openjdk
+lame-devel
+lcms-devel
+libacl-devel
+libarchive-devel
+libart_lgpl-devel
+libcap-devel
+libcdio-devel
+libdrm-devel
+libdvdread-devel
+libfontenc-devel
+libgcj-devel
+libgpod-devel
+libgsf-devel
+libgssapi-devel
+libical-devel
+libicu-devel
+libidn-devel
+liblrdf-devel
+libmad-devel
+libmng-devel
+libmp4v2-devel
+libmpcdec-devel
+libmusicbrainz-devel
+libofx-devel
+libogg-devel
+libotr-devel
+libpaper-devel
+libpqxx-devel
+libraw1394-devel
+librsvg2-devel
+libsamplerate-devel
+libsmbclient-devel
+libsndfile-devel
+libssh2-devel
+libtheora-devel
+libtiff-devel
+libtool
+libtool-ltdl-devel
+libtunepimp-devel
+libutempter-devel
+libvisual-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
+libzrtpcpp-devel
+lm_sensors-devel
+meanwhile-devel
+mysql-devel
+nas-devel
+ncurses-devel
+neon-devel
+netpbm-progs
+net-snmp-devel
+NetworkManager-glib-devel
+ocaml
+OpenEXR-devel
+openldap-devel
+openldap24-libs-devel
+opensc
+openslp-devel
+opensp-devel
+pam-devel
+pciutils-devel
+pcre-devel
+pcsc-lite-devel
+perl
+perl(ExtUtils::MakeMaker)
+perl(XML::Parser)
+pilot-link-devel
+pkcs11-helper-devel
+poppler-devel
+postgresql-devel
+pth-devel
+python-docutils
+recode
+redhat-rpm-config
+rpm-build
+rsh
+ruby
+ruby-devel
+sane-backends-devel
+scons
+SDL-devel
+setarch
+sip-devel
+speex-devel
+sqlite-devel
+sudo
+subversion-devel
+t1lib-devel
+t1utils
+taglib-devel
+texinfo
+texinfo-tex
+transfig
+unixODBC-devel
+usbutils
+valgrind
+wireless-tools-devel
+xine-lib-devel
+xmlto
+xorg-x11-font-utils
+xorg-x11-server-utils
+xscreensaver
+xscreensaver-gl-base
+xscreensaver-gl-extras
+xscreensaver-extras
+xulrunner-devel
+xz-devel
diff --git a/redhat/docker/el5/repoforge-5.repo b/redhat/docker/el5/repoforge-5.repo
new file mode 100644
index 000000000..a08fc0ba4
--- /dev/null
+++ b/redhat/docker/el5/repoforge-5.repo
@@ -0,0 +1,5 @@
+[dag]
+name=dag
+baseurl=http://repo/repo/repoforge/redhat/el5/en/$basearch/dag/
+enabled=1
+gpgcheck=0
diff --git a/redhat/docker/el5/rpmbuild.repo b/redhat/docker/el5/rpmbuild.repo
new file mode 100644
index 000000000..750290651
--- /dev/null
+++ b/redhat/docker/el5/rpmbuild.repo
@@ -0,0 +1,11 @@
+[rpmbuild.${ARCH}]
+name=rpmbuild.${ARCH}
+baseurl=file:///home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH}
+enabled=1
+gpgcheck=0
+
+[rpmbuild.noarch]
+name=rpmbuild.noarch
+baseurl=file:///home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch
+enabled=1
+gpgcheck=0
diff --git a/redhat/docker/el5/rpmmacros b/redhat/docker/el5/rpmmacros
new file mode 100644
index 000000000..05170915d
--- /dev/null
+++ b/redhat/docker/el5/rpmmacros
@@ -0,0 +1,5 @@
+%dist .el5
+%rhel 5
+%_smp_mflags -j8
+%jobs 8
+%_topdir /home/trinity/rpmbuild