@@ -0,0 +1,1442 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other%0A# Spack Project Developers. See the top-level COPYRIGHT file for details.%0A#%0A# SPDX-License-Identifier: (Apache-2.0 OR MIT)%0A%0Afrom spack import *%0Aimport datetime%0A%0A%0Aclass HttpPost(MakefilePackage):%0A    %22%22%22Http_post does a POST operation to an HTTP URL and dumps the results%0A    to stdout. It does not do gopher, ftp, file, news, or any other type of%0A    URL, only HTTP. It can be configured to do HTTPS POSTs as well.%22%22%22%0A%0A    homepage = %22http://www.acme.com/software/http_post/%22%0A    url      = %22http://www.acme.com/software/http_post/http_post_18May2018.tar.gz%22%0A%0A    version('2018-05-18', sha256='981c62bcc5cd12b8531f887b3e3779a63a7b7f370062575cded412865a20ea2c')%0A%0A    def url_for_version(self, version):%0A        ver = datetime.datetime.strptime(str(version), '%25Y-%25m-%25d').date()%0A        verstr = datetime.datetime.strftime(ver, '%25d%25b%25Y')%0A        return %22http://www.acme.com/software/http_post/http_post_%7B0%7D.tar.gz%22.format(verstr)%0A%0A    def edit(self, spec, prefix):%0A        makefile = FileFilter(%22Makefile%22)%0A        makefile.filter(%22BINDIR =%5Ct/usr/local/bin%22,%0A                        %22BINDIR =    %7B0%7D/bin%22.format(self.prefix))%0A        makefile.filter(%22MANDIR =%5Ct/usr/local/man/man1%22,%0A                        %22MANDIR=%7B0%7D/man/man1%22.format(self.prefix))%0A%0A    def install(self, spec, prefix):%0A        mkdirp(prefix.bin)%0A        mkdirp(prefix.man.man1)%0A        make('install')%0A

Add new package: http-post (#16678)