Repository: spack/spack

Issue:
The eospac package fails to download
The `eospac` package fails to download. The [url](http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0_612ea8c9b8ffa6d9175d9118955571d9107f1e3c.tgz) from the [package](https://github.com/spack/spack/blob/c171ff633523c97045ffcbf6115683f240db48e0/var/spack/repos/builtin/packages/eospac/package.py) points to a url that does not actually work outside of LANL:

https://github.com/spack/spack/blob/c171ff633523c97045ffcbf6115683f240db48e0/var/spack/repos/builtin/packages/eospac/package.py#L19

As such, the whole `eospac` package should probably be removed from Spack. Or is spack supposed to have packages that are not publicly available?

cc @junghans, @KineticTheory, @DarylGrunau 


The actual error is:
```
$ spack install eospac
==> Installing eospac
==> Searching for binary cache of eospac
==> Finding buildcaches in /home/ondrej/repos/spack/var/spack/cache/build_cache
==> No binary for eospac found: installing from source
==> Fetching file:///home/ondrej/repos/spack/var/spack/cache/eospac/eospac-6.3.1.tgz
curl: (37) Couldn't open file /home/ondrej/repos/spack/var/spack/cache/eospac/eospac-6.3.1.tgz
==> Fetching from file:///home/ondrej/repos/spack/var/spack/cache/eospac/eospac-6.3.1.tgz failed.
==> Fetching file:///home/ondrej/repos/spack/var/spack/cache/_source-cache/archive/aa/aa1112c4251c9c3c2883a7ab2c7f2abff2c339f29dbbf8421ef88b0c9df904f8.tgz
curl: (37) Couldn't open file /home/ondrej/repos/spack/var/spack/cache/_source-cache/archive/aa/aa1112c4251c9c3c2883a7ab2c7f2abff2c339f29dbbf8421ef88b0c9df904f8.tgz
==> Fetching from file:///home/ondrej/repos/spack/var/spack/cache/_source-cache/archive/aa/aa1112c4251c9c3c2883a7ab2c7f2abff2c339f29dbbf8421ef88b0c9df904f8.tgz failed.
==> Fetching http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz
-=O=-                                            #     #     #   #             
curl: (7) Failed to connect to laws-green.lanl.gov port 80: Connection timed out
==> Fetching from http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz failed.
==> Fetching http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz
-=O=-                                            #     #     #   #             
curl: (7) Failed to connect to laws-green.lanl.gov port 80: Connection timed out
==> Fetching from http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz failed.
==> Error: FetchError: All fetchers failed for spack-stage-eospac-6.3.1-xnwemhn6nhhvlzthw3v53eafsisgrwun

/home/ondrej/repos/spack/lib/spack/spack/package.py:1079, in do_fetch:
       1076                raise FetchError("Will not fetch %s" %
       1077                                 self.spec.format('{name}{@version}'), ck_msg)
       1078
  >>   1079        self.stage.create()
       1080        self.stage.fetch(mirror_only)
       1081        self._fetch_time = time.time() - start_time
       1082
```


Discussion:
It worked at some point earlier this year! It just seems the green server is down.
@junghans has this ever worked outside of LANL?
It did!
Ok, great. In that case it can stay in Spack, it just needs to be made to work again.
> @junghans has this ever worked outside of LANL?

The link is working for me this morning.  If this is still failing for you, please check your `https_proxy` settings.

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/eospac/package.py b/var/spack/repos/builtin/packages/eospac/package.py
--- a/var/spack/repos/builtin/packages/eospac/package.py
+++ b/var/spack/repos/builtin/packages/eospac/package.py
@@ -12,21 +12,21 @@ class Eospac(Package):
        library.
     """
 
-    homepage = "http://laws-green.lanl.gov/projects/data/eos.html"
-    list_url = "http://laws-green.lanl.gov/projects/data/eos/eospacReleases.php"
+    homepage = "http://laws.lanl.gov/projects/data/eos.html"
+    list_url = "http://laws.lanl.gov/projects/data/eos/eospacReleases.php"
 
     version('6.4.0',       sha256='15a953beac735c68431afe86ffe33323d540d0fbbbec03ba79438dd29736051d',
-            url="http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0_612ea8c9b8ffa6d9175d9118955571d9107f1e3c.tgz")
+            url="http://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0_612ea8c9b8ffa6d9175d9118955571d9107f1e3c.tgz")
     version('6.4.0beta.4', sha256='0ebfd8badff575ea77444aa978629dbdca3135a0b5eb373b8daba058773d4635',
-            url="http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.4_aff6429bb6868de31a980278bafa13487c2ce83f.tgz")
+            url="http://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.4_aff6429bb6868de31a980278bafa13487c2ce83f.tgz")
     version('6.4.0beta.3', sha256='9f387ca5356519494c6f3f27adb0c165cf9f9e15e3355a67bf940a4a92eebdab',
-            url="http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.3_90ff265f62aa1780bfcd0a62dad807b6be6ed461.tgz")
+            url="http://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.3_90ff265f62aa1780bfcd0a62dad807b6be6ed461.tgz")
     version('6.4.0beta.2', sha256='f9db46cd6c62a6f83960d802350f3e37675921af102969b293c02eb797558a53',
-            url="http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.2_69196eadbc77506561eef711f19d2f03b4ab0ffa.tgz")
+            url="http://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.2_69196eadbc77506561eef711f19d2f03b4ab0ffa.tgz")
     version('6.4.0beta.1', sha256='14c5c804e5f628f41e8ed80bcee5a80adeb6c6f3d130715421ca99a30c7eb7e2',
-            url="http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.1_r20171213193219.tgz")
+            url="http://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.1_r20171213193219.tgz")
     version('6.3.1',       sha256='aa1112c4251c9c3c2883a7ab2c7f2abff2c339f29dbbf8421ef88b0c9df904f8', preferred=True,
-            url="http://laws-green.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz")
+            url="http://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz")
 
     # This patch allows the use of spack's compile wrapper 'flang'
     patch('flang.patch', when='@:6.4.0beta.2%clang')


Test patch: