summaryrefslogtreecommitdiff
path: root/etc/hstdp-snapshot/pkgs
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-02-15 22:13:21 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-02-15 22:13:21 -0500
commit79c25396b4a59b63844022ca7f650a0654b8c160 (patch)
treefc974965569e6647363e1983d3806082c14e9b99 /etc/hstdp-snapshot/pkgs
parentb07f61a7744b203ed004294f5b281bfaacf8dcfc (diff)
downloaddocker-pipeline-79c25396b4a59b63844022ca7f650a0654b8c160.tar.gz
Add hstdp snapshot
Diffstat (limited to 'etc/hstdp-snapshot/pkgs')
-rw-r--r--etc/hstdp-snapshot/pkgs/000-dummy.sh2
-rw-r--r--etc/hstdp-snapshot/pkgs/001-cfitsio.sh15
-rw-r--r--etc/hstdp-snapshot/pkgs/002-hstcal.sh18
3 files changed, 35 insertions, 0 deletions
diff --git a/etc/hstdp-snapshot/pkgs/000-dummy.sh b/etc/hstdp-snapshot/pkgs/000-dummy.sh
new file mode 100644
index 0000000..06bd986
--- /dev/null
+++ b/etc/hstdp-snapshot/pkgs/000-dummy.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exit 0
diff --git a/etc/hstdp-snapshot/pkgs/001-cfitsio.sh b/etc/hstdp-snapshot/pkgs/001-cfitsio.sh
new file mode 100644
index 0000000..719b542
--- /dev/null
+++ b/etc/hstdp-snapshot/pkgs/001-cfitsio.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -e
+
+name=cfitsio
+version=3440
+url=https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${name}${version}.tar.gz
+
+sudo yum install -y libcurl-devel
+curl -LO "${url}"
+tar xf "$(basename ${url})"
+
+pushd "${name}" &>/dev/null
+./configure --prefix="${PREFIX}" --enable-reentrant
+make shared
+make install
+popd &>/dev/null
diff --git a/etc/hstdp-snapshot/pkgs/002-hstcal.sh b/etc/hstdp-snapshot/pkgs/002-hstcal.sh
new file mode 100644
index 0000000..fe45351
--- /dev/null
+++ b/etc/hstdp-snapshot/pkgs/002-hstcal.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -e
+name=hstcal
+version=2.2.0
+url="https://github.com/spacetelescope/${name}"
+
+# Grab a version of WAF that isn't broken
+curl -o waf https://waf.io/waf-2.0.12
+chmod +x waf
+
+git clone "${url}"
+pushd "${name}" &>/dev/null
+ git checkout "${version}"
+
+ # Build / Install
+ ../waf configure --prefix=${PREFIX} --release-with-symbols --with-cfitsio=${PREFIX}
+ ../waf build
+ ../waf install
+popd &>/dev/null