Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
CDTs: Add centos5 recipes
Browse files Browse the repository at this point in the history
Command lines used to generate these were:

```
conda skeleton rpm --recursive libX11-devel centos5 libselinux-devel centos5 java-1.7.0-openjdk centos5 java-1.7.0-openjdk-devel centos5 libgcj centos5 mesa-libGL-devel centos5 alsa-lib-devel centos5 alsa-lib centos5 alsa-utils centos5 gtk2-devel centos5 gtk+-devel centos5 libXrandr-devel centos5 ruby centos5 gperf centos5 --output-dir=~/conda/conda-recipes/cdts --architecture x86_64
conda skeleton rpm --recursive libX11-devel centos5 libselinux-devel centos5 java-1.7.0-openjdk centos5 java-1.7.0-openjdk-devel centos5 libgcj centos5 mesa-libGL-devel centos5 alsa-lib-devel centos5 alsa-lib centos5 alsa-utils centos5 gtk2-devel centos5 gtk+-devel centos5 libXrandr-devel centos5 ruby centos5 gperf centos5 --output-dir=~/conda/conda-recipes/cdts --architecture i686
```

.. the filesystem packages build.sh then needed some minor modification.
  • Loading branch information
mingwandroid committed Jul 26, 2017
1 parent dc2cc03 commit d9563b9
Show file tree
Hide file tree
Showing 279 changed files with 5,726 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cdts/centos5-i386/alsa-lib-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
13 changes: 13 additions & 0 deletions cdts/centos5-i386/alsa-lib-cos5-i386/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package:
name: alsa-lib-cos5-i386
version: 1.0.17

source:
url: http://vault.centos.org/5.11/os/i386/CentOS/alsa-lib-1.0.17-1.el5.i386.rpm
sha1: 2c38078f962846471385dcc6ccc05daeb019d347

outputs:
- name: alsa-lib-cos5-i386
target: noarch


37 changes: 37 additions & 0 deletions cdts/centos5-i386/alsa-lib-cos5-i386/rpm2cpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# Based on:
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html
# Modified to also support xz compression.

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An`
# macOS dd and Linux od give different results
hdr="${hdr#"${hdr%%[![:space:]]*}"}"
# remove trailing whitespace characters
hdr="${hdr%"${hdr##*[![:space:]]}"}"
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip
else
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d
fi
8 changes: 8 additions & 0 deletions cdts/centos5-i386/alsa-lib-devel-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
17 changes: 17 additions & 0 deletions cdts/centos5-i386/alsa-lib-devel-cos5-i386/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package:
name: alsa-lib-devel-cos5-i386
version: 1.0.17

source:
url: http://vault.centos.org/5.11/os/i386/CentOS/alsa-lib-devel-1.0.17-1.el5.i386.rpm
sha1: 8be0faa51788b6cd71f5c36be3ce138c921e177e

outputs:
- name: alsa-lib-devel-cos5-i386
target: noarch

requirements:
build:
- alsa-lib-cos5-i386 ==1.0.17
run:
- alsa-lib-cos5-i386 ==1.0.17
37 changes: 37 additions & 0 deletions cdts/centos5-i386/alsa-lib-devel-cos5-i386/rpm2cpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# Based on:
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html
# Modified to also support xz compression.

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An`
# macOS dd and Linux od give different results
hdr="${hdr#"${hdr%%[![:space:]]*}"}"
# remove trailing whitespace characters
hdr="${hdr%"${hdr##*[![:space:]]}"}"
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip
else
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d
fi
8 changes: 8 additions & 0 deletions cdts/centos5-i386/alsa-utils-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
13 changes: 13 additions & 0 deletions cdts/centos5-i386/alsa-utils-cos5-i386/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package:
name: alsa-utils-cos5-i386
version: 1.0.17

source:
url: http://vault.centos.org/5.11/os/i386/CentOS/alsa-utils-1.0.17-7.el5.i386.rpm
sha1: 4986881ecdcc792e902225ad6a594bc1341412ca

outputs:
- name: alsa-utils-cos5-i386
target: noarch


37 changes: 37 additions & 0 deletions cdts/centos5-i386/alsa-utils-cos5-i386/rpm2cpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# Based on:
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html
# Modified to also support xz compression.

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An`
# macOS dd and Linux od give different results
hdr="${hdr#"${hdr%%[![:space:]]*}"}"
# remove trailing whitespace characters
hdr="${hdr%"${hdr##*[![:space:]]}"}"
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip
else
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d
fi
8 changes: 8 additions & 0 deletions cdts/centos5-i386/atk-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
13 changes: 13 additions & 0 deletions cdts/centos5-i386/atk-cos5-i386/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package:
name: atk-cos5-i386
version: 1.12.2

source:
url: http://vault.centos.org/5.11/os/i386/CentOS/atk-1.12.2-1.fc6.i386.rpm
sha1: 5114ab54100a19ebdd5d1b357420be4d5c1b4f40

outputs:
- name: atk-cos5-i386
target: noarch


37 changes: 37 additions & 0 deletions cdts/centos5-i386/atk-cos5-i386/rpm2cpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# Based on:
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html
# Modified to also support xz compression.

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An`
# macOS dd and Linux od give different results
hdr="${hdr#"${hdr%%[![:space:]]*}"}"
# remove trailing whitespace characters
hdr="${hdr%"${hdr##*[![:space:]]}"}"
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip
else
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d
fi
8 changes: 8 additions & 0 deletions cdts/centos5-i386/atk-devel-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
19 changes: 19 additions & 0 deletions cdts/centos5-i386/atk-devel-cos5-i386/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package:
name: atk-devel-cos5-i386
version: 1.12.2

source:
url: http://vault.centos.org/5.11/os/i386/CentOS/atk-devel-1.12.2-1.fc6.i386.rpm
sha1: 45e75f0c2d1ddedf9881dee21534a49b3ccafa6f

outputs:
- name: atk-devel-cos5-i386
target: noarch

requirements:
build:
- atk-cos5-i386 ==1.12.2
- glib2-devel-cos5-i386 >=2.6.0
run:
- atk-cos5-i386 ==1.12.2
- glib2-devel-cos5-i386 >=2.6.0
37 changes: 37 additions & 0 deletions cdts/centos5-i386/atk-devel-cos5-i386/rpm2cpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# Based on:
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html
# Modified to also support xz compression.

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An`
# macOS dd and Linux od give different results
hdr="${hdr#"${hdr%%[![:space:]]*}"}"
# remove trailing whitespace characters
hdr="${hdr%"${hdr##*[![:space:]]}"}"
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip
else
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d
fi
8 changes: 8 additions & 0 deletions cdts/centos5-i386/cairo-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
13 changes: 13 additions & 0 deletions cdts/centos5-i386/cairo-cos5-i386/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package:
name: cairo-cos5-i386
version: 1.2.4

source:
url: http://vault.centos.org/5.11/os/i386/CentOS/cairo-1.2.4-5.el5.i386.rpm
sha1: 785f139c87106fc0387212d1d6a22a86cefd767d

outputs:
- name: cairo-cos5-i386
target: noarch


37 changes: 37 additions & 0 deletions cdts/centos5-i386/cairo-cos5-i386/rpm2cpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# Based on:
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html
# Modified to also support xz compression.

pkg=$1
if [ "$pkg" = "" -o ! -e "$pkg" ]; then
echo "no package supplied" 1>&2
exit 1
fi

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An`
# macOS dd and Linux od give different results
hdr="${hdr#"${hdr%%[![:space:]]*}"}"
# remove trailing whitespace characters
hdr="${hdr%"${hdr##*[![:space:]]}"}"
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip
else
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d
fi
8 changes: 8 additions & 0 deletions cdts/centos5-i386/cairo-devel-cos5-i386/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

RPM=$(basename $(find . -name "*.rpm"))
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM}
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh
Loading

0 comments on commit d9563b9

Please sign in to comment.