networking.scm 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. ;;; packages - package definitions for GNU Guix
  2. ;;; Copyright (C) 2017 ng0
  3. ;;;
  4. ;;; This program is free software: you can redistribute it and/or modify
  5. ;;; it under the terms of the GNU Affero General Public License as
  6. ;;; published by the Free Software Foundation, either version 3 of the
  7. ;;; License, or (at your option) any later version.
  8. ;;;
  9. ;;; This program is distributed in the hope that it will be useful,
  10. ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;;; GNU Affero General Public License for more details.
  13. ;;;
  14. ;;; You should have received a copy of the GNU Affero General Public License
  15. ;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. (define-module (ng0 packages networking)
  17. #:use-module (guix packages)
  18. #:use-module ((guix licenses) #:prefix license:)
  19. #:use-module (guix download)
  20. #:use-module (guix git-download)
  21. #:use-module (guix build-system gnu)
  22. #:use-module (gnu packages)
  23. #:use-module (gnu packages version-control)
  24. #:use-module (gnu packages gettext)
  25. #:use-module (gnu packages tls)
  26. #:use-module (gnu packages xml)
  27. #:use-module (gnu packages autotools)
  28. #:use-module (gnu packages m4)
  29. #:use-module (gnu packages pkg-config))
  30. (define-public cadaver
  31. (package
  32. (name "cadaver")
  33. (version "0.23.3")
  34. (source
  35. (origin
  36. (method url-fetch)
  37. (uri (string-append "http://www.webdav.org/cadaver/"
  38. name "-" version ".tar.gz"))
  39. (patches (search-patches "cadaver-0.23.2-disable-nls.patch"))
  40. (sha256
  41. (base32
  42. "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x"))))
  43. (build-system gnu-build-system)
  44. (arguments
  45. `(#:configure-flags (list "--disable-nls"
  46. "--with-ssl=openssl")
  47. #:tests? #f))
  48. ;; #:phases
  49. ;; (modify-phases %standard-phases
  50. ;; (add-after 'unpack 'fix-neon-support
  51. ;; (lambda _
  52. ;; (substitute* "configure.ac"
  53. ;; (("27 28 29") "27 28 29 30")
  54. ;; (("lib/neon/Makefile") "")
  55. ;; (("lib/intl/Makefile") ""))
  56. ;; (substitute* "Makefile.in"
  57. ;; (("^SUBDIRS.*=.*")
  58. ;; "1"))))
  59. ;; (add-after 'fix-neon-support 'unbundle
  60. ;; (lambda _
  61. ;; (delete-file-recursively "lib/expat")
  62. ;; (delete-file-recursively "lib/neon")
  63. ;; (delete-file-recursively "lib/intl")))
  64. ;; (add-before 'configure 'bootstrap
  65. ;; (lambda _
  66. ;; (zero? (system* "autoreconf" "-vfi")))))))
  67. (native-inputs
  68. `(("gettext" ,gnu-gettext)
  69. ("automake" ,automake)
  70. ("autoconf" ,autoconf)
  71. ("pkg-config" ,pkg-config)
  72. ("m4" ,m4)))
  73. (inputs
  74. `(("neon" ,neon)
  75. ("expat" ,expat)
  76. ("openssl" ,openssl)))
  77. (home-page "http://www.webdav.org/cadaver")
  78. (synopsis "Command-line WebDAV client")
  79. (description
  80. "boredom boredom boredom take me away")
  81. (license license:gpl2)))
  82. (define-public geomyidae
  83. (let* ((commit "9a2203506973a803e74ffa80a27f2bf1919b68cc")
  84. (revision "1"))
  85. (package
  86. (name "geomyidae")
  87. (version (string-append "0.26.3" "-" revision
  88. (string-take commit 7)))
  89. (source
  90. (origin
  91. (method git-fetch)
  92. (uri (git-reference
  93. (url "git://git.r-36.net/geomyidae")
  94. (commit commit)))
  95. (file-name (string-append name "-" version "-checkout"))
  96. (sha256
  97. (base32
  98. "1h79w5340wnqzwsxdlfcchmxrr953fwhbgss4mhjg62x7pdkkvab"))))
  99. (build-system gnu-build-system)
  100. (arguments
  101. `(#:make-flags (list "CC=gcc"
  102. (string-append "PREFIX="
  103. (assoc-ref %outputs "out")))
  104. #:tests? #f
  105. #:phases
  106. (modify-phases %standard-phases
  107. (delete 'configure))))
  108. (home-page "http://git.r-36.net/geomyidae")
  109. (synopsis "gopherd server")
  110. (description
  111. "Geomyidae is a gopherd for GNU/Linux and BSD.
  112. Its features include:
  113. @enumerate
  114. @item gopher menus (see index.gph for an example)
  115. @item dir listings (if no index.gph was found)
  116. @item cgi support (.cgi files are executed)
  117. @item search support in CGI files
  118. @item logging (-l option) and loglevels (-v option)
  119. @end enumerate\n")
  120. (license license:x11))))