You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.6 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Aljosha Papsch <misc@rpapsch.de>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages web)
  19. #:use-module ((guix licenses)
  20. #:renamer (symbol-prefix-proc 'l:))
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu)
  24. #:use-module (gnu packages apr)
  25. #:use-module (gnu packages openssl)
  26. #:use-module (gnu packages pcre))
  27. (define-public httpd
  28. (package
  29. (name "httpd")
  30. (version "2.4.6")
  31. (source (origin
  32. (method url-fetch)
  33. (uri (string-append "mirror://apache/httpd/httpd-"
  34. version ".tar.bz2"))
  35. (sha256
  36. (base32
  37. "1sig08xxq1kqxr2a42ndwr9g4mm6zdqnxldhxraym2y0xcjkd7yw"))))
  38. (build-system gnu-build-system)
  39. (inputs `(("apr" ,apr)
  40. ("apr-util" ,apr-util)
  41. ("openssl" ,openssl)
  42. ("pcre" ,pcre)))
  43. (arguments
  44. `(#:test-target "test"
  45. #:configure-flags (list "--enable-rewrite"
  46. "--enable-userdir"
  47. "--enable-vhost-alias"
  48. "--enable-ssl"
  49. "--enable-mime-magic"
  50. (string-append "--sysconfdir="
  51. (assoc-ref %outputs "out")
  52. "/etc/httpd"))))
  53. (synopsis "Featureful HTTP server")
  54. (description
  55. "The Apache HTTP Server Project is a collaborative software development
  56. effort aimed at creating a robust, commercial-grade, featureful, and
  57. freely-available source code implementation of an HTTP (Web) server. The project
  58. is jointly managed by a group of volunteers located around the world, using the
  59. Internet and the Web to communicate, plan, and develop the server and its
  60. related documentation.")
  61. (license l:asl2.0)
  62. (home-page "https://httpd.apache.org/")))