2014-01-14 23:15:55 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
2021-07-09 15:45:06 +00:00
|
|
|
;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
|
2014-01-14 23:15:55 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages uucp)
|
2021-07-09 15:45:06 +00:00
|
|
|
#:use-module (gnu packages golang)
|
2024-02-05 20:57:31 +00:00
|
|
|
#:use-module (gnu packages golang-build)
|
2024-02-10 22:06:15 +00:00
|
|
|
#:use-module (gnu packages golang-compression)
|
2024-01-16 23:53:40 +00:00
|
|
|
#:use-module (gnu packages golang-crypto)
|
2023-11-29 22:35:33 +00:00
|
|
|
#:use-module (gnu packages golang-web)
|
2021-07-09 15:45:06 +00:00
|
|
|
#:use-module (gnu packages texinfo)
|
2014-01-14 23:15:55 +00:00
|
|
|
#:use-module (guix licenses)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2021-07-09 15:45:06 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system go))
|
2014-01-14 23:15:55 +00:00
|
|
|
|
|
|
|
(define-public uucp
|
|
|
|
(package
|
|
|
|
(name "uucp")
|
|
|
|
(version "1.07")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/uucp/uucp-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0b5nhl9vvif1w3wdipjsk8ckw49jj1w85xw1mmqi3zbcpazia306"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 15:28:42 +00:00
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; The old 'configure' script doesn't support the arguments
|
|
|
|
;; that we pass by default.
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2019-01-25 09:48:28 +00:00
|
|
|
(invoke "./configure"
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
(string-append "--infodir=" out
|
|
|
|
"/share/info"))))))))
|
2017-03-29 22:48:16 +00:00
|
|
|
(home-page "https://www.gnu.org/software/uucp/uucp.html")
|
2014-01-14 23:15:55 +00:00
|
|
|
(synopsis "UUCP protocol implementation")
|
|
|
|
(description
|
|
|
|
"Taylor UUCP is the GNU implementation of UUCP (Unix-to-Unix Copy), a
|
|
|
|
set of utilities for remotely transferring files, email and net news
|
|
|
|
between computers.")
|
|
|
|
(license gpl2+)))
|
2021-07-09 15:45:06 +00:00
|
|
|
|
|
|
|
(define-public nncp
|
|
|
|
(package
|
|
|
|
(name "nncp")
|
|
|
|
(version "7.5.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.nncpgo.org/download/nncp-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1r1zgj7gpkdmdm3wf31m0xi8y313kzd4dbyp4r4y8khnp32jvn8l"))
|
|
|
|
(modules '((ice-9 ftw)
|
|
|
|
(guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Unbundle dependencies.
|
|
|
|
;; TODO: go.cypherpunks.ru was down at the time of
|
|
|
|
;; packaging. Unbundle go.cypherpunks dependencies as well once it
|
|
|
|
;; comes back online.
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(unless (member file (list "." ".." "go.cypherpunks.ru"))
|
|
|
|
(delete-file-recursively (string-append "src/vendor/" file))))
|
|
|
|
(scandir "src/vendor"))
|
|
|
|
;; Delete built documentation.
|
|
|
|
(delete-file "doc/nncp.info")
|
|
|
|
#t))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
((guix build go-build-system) #:prefix go:)
|
|
|
|
(guix build utils))
|
|
|
|
#:imported-modules ,%go-build-system-modules
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'unpack 'setup-go-environment
|
|
|
|
(assoc-ref go:%standard-phases 'setup-go-environment))
|
|
|
|
(add-after 'unpack 'go-unpack
|
|
|
|
(lambda* (#:key source #:allow-other-keys)
|
|
|
|
;; Copy source to GOPATH.
|
|
|
|
(copy-recursively "src" "../src/go.cypherpunks.ru/nncp/v7")
|
|
|
|
;; Move bundled dependencies to GOPATH.
|
|
|
|
(for-each (lambda (dependency)
|
|
|
|
(rename-file (string-append "src/vendor/go.cypherpunks.ru/"
|
|
|
|
dependency)
|
|
|
|
(string-append "../src/go.cypherpunks.ru/"
|
|
|
|
dependency)))
|
|
|
|
(list "balloon" "recfile"))
|
|
|
|
;; Delete empty bundled dependencies directory.
|
|
|
|
(delete-file-recursively "src/vendor")))
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2024-06-19 21:44:19 +00:00
|
|
|
(setenv "GO_LDFLAGS" "-trimpath")
|
2021-07-09 15:45:06 +00:00
|
|
|
;; Set configuration path.
|
|
|
|
(setenv "CFGPATH" "/etc/nncp.hjson")
|
|
|
|
;; Set output directories.
|
|
|
|
(setenv "BINDIR" (string-append out "/bin"))
|
|
|
|
(setenv "INFODIR" (string-append out "/share/info"))
|
|
|
|
(setenv "DOCDIR" (string-append out "/share/doc/nncp")))
|
|
|
|
;; Set absolute store paths to sh and cat.
|
|
|
|
(substitute* (list "src/pipe.go" "src/toss_test.go")
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
(substitute* "src/toss_test.go"
|
|
|
|
(("; cat") (string-append "; " (which "cat"))))
|
|
|
|
;; Remove module flags.
|
|
|
|
(substitute* (list "bin/default.do" "bin/hjson-cli.do" "test.do")
|
|
|
|
((" -mod=vendor") "")
|
|
|
|
((" -m") ""))
|
|
|
|
;; Use the correct module path. `go list` does not report the
|
|
|
|
;; correct module path since we have moved the source files.
|
|
|
|
(substitute* "bin/default.do"
|
|
|
|
(("^mod=[^\n]*" all) "mod=go.cypherpunks.ru/nncp/v7"))
|
|
|
|
;; Disable timeout in tests. Tests can take longer than the
|
|
|
|
;; default timeout on spinning disks.
|
|
|
|
(substitute* "test.do"
|
|
|
|
(("test") "test -timeout 0"))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
2024-06-19 21:44:19 +00:00
|
|
|
(invoke "contrib/do" "-c" "test")))))))
|
2021-07-09 15:45:06 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list go-github-com-davecgh-go-xdr
|
|
|
|
go-github-com-dustin-go-humanize
|
|
|
|
go-github-com-flynn-noise
|
|
|
|
go-github-com-gorhill-cronexpr
|
|
|
|
go-github-com-hjson-hjson-go
|
|
|
|
go-github-com-klauspost-compress
|
|
|
|
go-golang-org-x-crypto
|
|
|
|
go-golang-org-x-net
|
|
|
|
go-golang-org-x-term
|
|
|
|
go-lukechampine-com-blake3))
|
2021-07-09 15:45:06 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list go texinfo))
|
2021-07-09 15:45:06 +00:00
|
|
|
(home-page "http://www.nncpgo.org/")
|
|
|
|
(synopsis "Store and forward utilities")
|
|
|
|
(description "NNCP (Node to Node copy) is a collection of utilities
|
|
|
|
simplifying secure store-and-forward files, mail and command exchanging.
|
|
|
|
These utilities are intended to help build up small size (dozens of nodes)
|
|
|
|
ad-hoc friend-to-friend (F2F) statically routed darknet delay-tolerant
|
|
|
|
networks for fire-and-forget secure reliable files, file requests, Internet
|
|
|
|
mail and commands transmission. All packets are integrity checked, end-to-end
|
|
|
|
encrypted, explicitly authenticated by known participants public keys. Onion
|
|
|
|
encryption is applied to relayed packets. Each node acts both as a client and
|
|
|
|
server, can use push and poll behaviour model. Multicasting areas, offline
|
|
|
|
sneakernet/floppynet, dead drops, sequential and append-only CD-ROM/tape
|
|
|
|
storages, air-gapped computers and online TCP daemon with full-duplex
|
|
|
|
resumable data transmission exists are all supported.")
|
|
|
|
(license gpl3)))
|