2013-02-12 13:35:54 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-11-17 17:57:49 -05:00
|
|
|
|
;;; Copyright © 2013, 2015, 2017, 2021 Ludovic Courtès <ludo@gnu.org>
|
2015-02-26 02:01:29 -05:00
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2021-08-04 09:07:13 -04:00
|
|
|
|
;;; Copyright © 2016, 2017, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
|
2016-12-03 18:22:56 -05:00
|
|
|
|
;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
|
2017-03-30 11:47:00 -04:00
|
|
|
|
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
2020-02-05 07:19:38 -05:00
|
|
|
|
;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com>
|
2021-01-01 16:22:08 -05:00
|
|
|
|
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-11-11 07:08:56 -05:00
|
|
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
2019-03-20 15:23:34 -04:00
|
|
|
|
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
|
2020-09-21 14:50:08 -04:00
|
|
|
|
;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
|
2023-04-18 10:41:28 -04:00
|
|
|
|
;;; Copyright © 2020, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2022-06-22 14:29:05 -04:00
|
|
|
|
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
|
2022-06-25 12:16:33 -04:00
|
|
|
|
;;; Copyright © 2022 Guillaume Le Vaillant <glv@posteo.net>
|
2022-08-27 12:40:55 -04:00
|
|
|
|
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
|
2022-08-08 10:56:40 -04:00
|
|
|
|
;;; Copyright © 2022 Simon Streit <simon@netpanic.org>
|
2013-02-12 13:35:54 -05: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 samba)
|
2022-01-09 21:51:47 -05:00
|
|
|
|
#:use-module (guix gexp)
|
2013-02-12 13:35:54 -05:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2019-11-13 14:46:30 -05:00
|
|
|
|
#:use-module (guix git-download)
|
2013-02-12 13:35:54 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2022-08-08 10:56:42 -04:00
|
|
|
|
#:use-module (guix build-system copy)
|
2022-06-25 12:16:33 -04:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2017-05-12 05:53:08 -04:00
|
|
|
|
#:use-module (guix utils)
|
2020-09-19 18:57:41 -04:00
|
|
|
|
#:use-module (gnu packages)
|
2013-02-12 13:35:54 -05:00
|
|
|
|
#:use-module (gnu packages acl)
|
2015-11-15 22:16:16 -05:00
|
|
|
|
#:use-module (gnu packages admin)
|
2017-03-30 11:47:00 -04:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2022-08-08 10:56:40 -04:00
|
|
|
|
#:use-module (gnu packages avahi)
|
2018-12-04 10:38:53 -05:00
|
|
|
|
#:use-module (gnu packages backup)
|
2019-03-02 09:07:10 -05:00
|
|
|
|
#:use-module (gnu packages base)
|
2017-07-23 08:24:28 -04:00
|
|
|
|
#:use-module (gnu packages check)
|
2017-03-30 11:47:00 -04:00
|
|
|
|
#:use-module (gnu packages crypto)
|
2015-12-14 23:20:26 -05:00
|
|
|
|
#:use-module (gnu packages cups)
|
2015-12-14 23:19:26 -05:00
|
|
|
|
#:use-module (gnu packages databases)
|
2017-09-27 07:44:39 -04:00
|
|
|
|
#:use-module (gnu packages docbook)
|
2020-11-01 23:59:07 -05:00
|
|
|
|
#:use-module (gnu packages glib)
|
2020-11-02 17:03:57 -05:00
|
|
|
|
#:use-module (gnu packages gnome)
|
2018-12-04 10:38:53 -05:00
|
|
|
|
#:use-module (gnu packages gnupg)
|
2017-03-30 11:47:00 -04:00
|
|
|
|
#:use-module (gnu packages kerberos)
|
2013-02-12 13:35:54 -05:00
|
|
|
|
#:use-module (gnu packages linux)
|
2019-06-16 02:21:57 -04:00
|
|
|
|
#:use-module (gnu packages onc-rpc)
|
2018-12-04 12:14:22 -05:00
|
|
|
|
#:use-module (gnu packages openldap)
|
2013-02-12 13:35:54 -05:00
|
|
|
|
#:use-module (gnu packages perl)
|
2018-12-04 12:14:22 -05:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
|
#:use-module (gnu packages popt)
|
2017-09-27 07:44:39 -04:00
|
|
|
|
#:use-module (gnu packages python)
|
2022-01-09 21:51:47 -05:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
2021-10-03 20:25:14 -04:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2018-12-04 12:14:22 -05:00
|
|
|
|
#:use-module (gnu packages readline)
|
2020-05-10 23:18:02 -04:00
|
|
|
|
#:use-module (gnu packages time)
|
2018-12-04 12:14:22 -05:00
|
|
|
|
#:use-module (gnu packages tls)
|
2018-12-04 10:38:53 -05:00
|
|
|
|
#:use-module (gnu packages web)
|
2022-09-27 16:14:17 -04:00
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
|
#:use-module (srfi srfi-1))
|
2013-02-12 13:35:54 -05:00
|
|
|
|
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(define-public cifs-utils
|
|
|
|
|
(package
|
|
|
|
|
(name "cifs-utils")
|
2022-12-29 14:37:20 -05:00
|
|
|
|
(version "7.0")
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.samba.org/pub/linux-cifs/"
|
2019-04-10 21:17:18 -04:00
|
|
|
|
"cifs-utils/cifs-utils-" version ".tar.bz2"))
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(sha256 (base32
|
2022-12-29 14:37:20 -05:00
|
|
|
|
"0qc1ph94yvg87m87xangw9dd0m5ds2q1zd2sqkzldsnkbfwamvqd"))))
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list autoconf automake pkg-config
|
|
|
|
|
;; To generate the manpages.
|
|
|
|
|
python-docutils)) ; rst2man
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(inputs
|
2022-12-29 14:37:20 -05:00
|
|
|
|
(list keyutils libcap-ng linux-pam mit-krb5 samba talloc))
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(arguments
|
2022-12-29 14:37:20 -05:00
|
|
|
|
(list #:configure-flags #~(list "--enable-man")
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-before 'bootstrap 'trigger-bootstrap
|
|
|
|
|
;; The shipped configure script is buggy, e.g., it contains a
|
|
|
|
|
;; unexpanded literal ‘LIBCAP_NG_PATH’ line).
|
|
|
|
|
(lambda _
|
|
|
|
|
(delete-file "configure")))
|
|
|
|
|
(add-before 'configure 'set-root-sbin
|
|
|
|
|
;; Don't try to install into "/sbin".
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "ROOTSBINDIR" (string-append #$output "/sbin")))))))
|
2017-03-30 11:47:00 -04:00
|
|
|
|
(synopsis "User-space utilities for Linux CIFS (Samba) mounts")
|
|
|
|
|
(description "@code{cifs-utils} is a set of user-space utilities for
|
2021-10-03 20:48:15 -04:00
|
|
|
|
mounting and managing @acronym{CIFS, Common Internet File System} shares using
|
2017-03-30 11:47:00 -04:00
|
|
|
|
the Linux kernel CIFS client.")
|
|
|
|
|
(home-page "https://wiki.samba.org/index.php/LinuxCIFS_utils")
|
|
|
|
|
;; cifs-utils is licensed as GPL3 or later, but 3 files contain LGPL code.
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(license license:gpl3+)))
|
2017-03-30 11:47:00 -04:00
|
|
|
|
|
2013-02-12 13:35:54 -05:00
|
|
|
|
(define-public iniparser
|
|
|
|
|
(package
|
|
|
|
|
(name "iniparser")
|
2018-01-15 01:30:08 -05:00
|
|
|
|
(version "4.1")
|
2013-02-12 13:35:54 -05:00
|
|
|
|
(source (origin
|
2019-11-13 14:46:30 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/ndevilla/iniparser")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2013-02-12 13:35:54 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-11-13 14:46:30 -05:00
|
|
|
|
"0dhab6pad6wh816lr7r3jb6z273njlgw2vpw8kcfnmi7ijaqhnr5"))))
|
2013-02-12 13:35:54 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2018-01-15 01:29:59 -05:00
|
|
|
|
`(#:make-flags
|
2020-06-02 13:27:11 -04:00
|
|
|
|
(list ,(string-append "CC=" (cc-for-target)))
|
2018-01-15 01:29:59 -05:00
|
|
|
|
#:phases
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* '("Makefile" "test/Makefile")
|
|
|
|
|
(("/usr/lib")
|
2018-04-12 03:45:00 -04:00
|
|
|
|
(string-append (assoc-ref outputs "out") "/lib")))
|
|
|
|
|
#t))
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(replace 'build
|
2018-01-15 01:29:59 -05:00
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
2018-01-15 01:30:08 -05:00
|
|
|
|
(apply invoke "make" "libiniparser.so.1"
|
2018-01-15 01:29:59 -05:00
|
|
|
|
make-flags)))
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
|
(inc (string-append out "/include"))
|
2018-01-15 01:29:54 -05:00
|
|
|
|
(doc (string-append out "/share/doc/" ,name))
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(html (string-append doc "/html")))
|
2018-01-15 01:30:03 -05:00
|
|
|
|
(define (install dir)
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(lambda (file)
|
2018-01-15 01:30:03 -05:00
|
|
|
|
(install-file file dir)))
|
|
|
|
|
(for-each (install lib)
|
|
|
|
|
(find-files "." "^lib.*\\.so"))
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(with-directory-excursion lib
|
2018-01-15 01:30:08 -05:00
|
|
|
|
(symlink "libiniparser.so.1" "libiniparser.so"))
|
2018-01-15 01:30:03 -05:00
|
|
|
|
(for-each (install inc)
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(find-files "src" "\\.h$"))
|
2018-01-15 01:30:03 -05:00
|
|
|
|
(for-each (install html)
|
2016-07-24 04:23:01 -04:00
|
|
|
|
(find-files "html" ".*"))
|
2018-01-15 01:30:03 -05:00
|
|
|
|
(for-each (install doc)
|
2018-04-12 03:45:00 -04:00
|
|
|
|
'("AUTHORS" "INSTALL" "LICENSE" "README.md"))
|
|
|
|
|
#t))))))
|
2018-01-15 01:30:08 -05:00
|
|
|
|
(home-page "https://github.com/ndevilla/iniparser")
|
2020-06-02 13:52:29 -04:00
|
|
|
|
(synopsis "Simple @file{.ini} configuration file parsing library")
|
2013-02-12 13:35:54 -05:00
|
|
|
|
(description
|
2020-06-02 13:52:29 -04:00
|
|
|
|
"The iniParser C library reads and writes Windows-style @file{.ini}
|
|
|
|
|
configuration files. These are simple text files with a basic structure
|
|
|
|
|
composed of sections, properties, and values. While not expressive, they
|
|
|
|
|
are easy to read, write, and modify.
|
|
|
|
|
|
|
|
|
|
The library is small, thread safe, and written in portable ANSI C with no
|
|
|
|
|
external dependencies.")
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(license license:x11)))
|
2013-02-12 13:35:54 -05:00
|
|
|
|
|
2023-02-01 04:36:03 -05:00
|
|
|
|
(define-public samba/pinned
|
2022-01-09 21:51:47 -05:00
|
|
|
|
(hidden-package
|
2022-09-27 16:14:17 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "samba")
|
2022-09-16 13:47:47 -04:00
|
|
|
|
(version "4.17.0")
|
2022-01-09 21:51:47 -05:00
|
|
|
|
(source
|
2022-09-27 16:14:17 -04:00
|
|
|
|
;; For updaters: the current PGP fingerprint is
|
|
|
|
|
;; 81F5E2832BD2545A1897B713AA99442FB680B620.
|
2022-01-09 21:51:47 -05:00
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2022-09-16 13:47:47 -04:00
|
|
|
|
(uri (string-append "https://download.samba.org/pub/samba/stable/"
|
2022-01-09 21:51:47 -05:00
|
|
|
|
"samba-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2022-09-27 16:14:17 -04:00
|
|
|
|
(base32 "0fl2y5avmyxjadh6zz0fwz35akd6c4j9lldzp2kyvjrgm36qx1h4"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:make-flags #~(list "TEST_OPTIONS=--quick") ;some tests are very long
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'setup-docbook-stylesheets
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; Append Samba's own DTDs to XML_CATALOG_FILES
|
|
|
|
|
;; (c.f. docs-xml/build/README).
|
|
|
|
|
(copy-file "docs-xml/build/catalog.xml.in"
|
|
|
|
|
"docs-xml/build/catalog.xml")
|
|
|
|
|
(substitute* "docs-xml/build/catalog.xml"
|
|
|
|
|
(("/@abs_top_srcdir@")
|
|
|
|
|
(string-append (getcwd) "/docs-xml")))
|
|
|
|
|
;; Honor XML_CATALOG_FILES.
|
|
|
|
|
(substitute* "buildtools/wafsamba/wafsamba.py"
|
|
|
|
|
(("XML_CATALOG_FILES=\"\\$\\{SAMBA_CATALOGS\\}" all)
|
|
|
|
|
(string-append all " $XML_CATALOG_FILES")))))
|
|
|
|
|
(replace 'configure
|
|
|
|
|
;; Samba uses a custom configuration script that runs WAF.
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let* ((libdir (string-append #$output "/lib")))
|
|
|
|
|
(invoke "./configure"
|
2023-04-18 10:41:28 -04:00
|
|
|
|
#$@(if (member (%current-system)
|
|
|
|
|
(package-transitive-supported-systems
|
|
|
|
|
python-cryptography))
|
|
|
|
|
'("--enable-selftest")
|
|
|
|
|
'())
|
2022-09-27 16:14:17 -04:00
|
|
|
|
"--enable-fhs"
|
|
|
|
|
(string-append "--prefix=" #$output)
|
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
|
"--localstatedir=/var"
|
|
|
|
|
;; Install public and private libraries into
|
|
|
|
|
;; a single directory to avoid RPATH issues.
|
|
|
|
|
(string-append "--libdir=" libdir)
|
|
|
|
|
(string-append "--with-privatelibdir=" libdir)
|
|
|
|
|
"--with-system-mitkrb5"
|
|
|
|
|
(string-append "--with-system-mitkdc="
|
|
|
|
|
(search-input-file inputs "sbin/krb5kdc"))
|
|
|
|
|
"--with-experimental-mit-ad-dc"))))
|
|
|
|
|
(add-before 'install 'disable-etc,var-samba-directories-setup
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "dynconfig/wscript"
|
|
|
|
|
(("bld\\.INSTALL_DIR.*") "")))))
|
|
|
|
|
;; FIXME: The test suite seemingly hangs after failing to provision the
|
|
|
|
|
;; test environment.
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(inputs
|
|
|
|
|
(list acl
|
|
|
|
|
avahi
|
|
|
|
|
cmocka
|
|
|
|
|
cups
|
|
|
|
|
gamin
|
|
|
|
|
dbus
|
|
|
|
|
gpgme
|
|
|
|
|
gnutls
|
|
|
|
|
jansson
|
|
|
|
|
libarchive
|
|
|
|
|
libtirpc
|
|
|
|
|
linux-pam
|
|
|
|
|
lmdb
|
|
|
|
|
mit-krb5
|
|
|
|
|
openldap
|
|
|
|
|
perl
|
|
|
|
|
python
|
|
|
|
|
popt
|
|
|
|
|
readline
|
|
|
|
|
tdb))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; In Requires or Requires.private of pkg-config files.
|
|
|
|
|
(list ldb talloc tevent))
|
2022-09-27 15:43:20 -04:00
|
|
|
|
(native-inputs
|
2023-04-18 10:41:28 -04:00
|
|
|
|
(append
|
|
|
|
|
(list perl-parse-yapp
|
|
|
|
|
pkg-config)
|
|
|
|
|
;; The python-cryptography dependency is needed for the krb5 tests.
|
|
|
|
|
;; Since python-cryptography requires Rust, add it conditionally
|
|
|
|
|
;; depending on such support.
|
|
|
|
|
(if (member (%current-system)
|
|
|
|
|
(package-transitive-supported-systems
|
|
|
|
|
python-cryptography))
|
|
|
|
|
(list python-cryptography)
|
|
|
|
|
'())
|
|
|
|
|
(list python-dnspython
|
|
|
|
|
python-iso8601
|
|
|
|
|
python-markdown
|
|
|
|
|
rpcsvc-proto ;for 'rpcgen'
|
|
|
|
|
python-pyasn1 ;for krb5 tests
|
|
|
|
|
;; For generating man pages.
|
|
|
|
|
docbook-xml-4.2
|
|
|
|
|
docbook-xsl
|
|
|
|
|
libxslt
|
|
|
|
|
libxml2))) ;for XML_CATALOG_FILES
|
2022-09-27 16:14:17 -04:00
|
|
|
|
(home-page "https://www.samba.org/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"The standard Windows interoperability suite of programs for GNU and Unix")
|
|
|
|
|
(description
|
|
|
|
|
"Since 1992, Samba has provided secure, stable and fast file and print
|
|
|
|
|
services for all clients using the SMB/CIFS protocol, such as all versions of
|
|
|
|
|
DOS and Windows, OS/2, GNU/Linux and many others.
|
|
|
|
|
|
|
|
|
|
Samba is an important component to seamlessly integrate Linux/Unix Servers and
|
|
|
|
|
Desktops into Active Directory environments using the winbind daemon.")
|
|
|
|
|
(license license:gpl3+))))
|
|
|
|
|
|
|
|
|
|
(define-public samba
|
|
|
|
|
(package
|
2023-02-01 04:36:03 -05:00
|
|
|
|
(inherit samba/pinned)
|
2023-04-17 00:11:33 -04:00
|
|
|
|
(version "4.18.1")
|
2022-09-27 16:14:17 -04:00
|
|
|
|
(source
|
|
|
|
|
;; For updaters: the current PGP fingerprint is
|
|
|
|
|
;; 81F5E2832BD2545A1897B713AA99442FB680B620.
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.samba.org/pub/samba/stable/"
|
|
|
|
|
"samba-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2023-04-17 00:11:33 -04:00
|
|
|
|
(base32 "03ncp49pfpzjla205y3xpb9iy61dz4pryyrvyz26422a4hpsmpnf"))))
|
2023-03-02 05:37:28 -05:00
|
|
|
|
(properties (alist-delete 'hidden? (package-properties samba/pinned)))))
|
2021-11-17 17:57:49 -05:00
|
|
|
|
|
2014-04-06 12:25:57 -04:00
|
|
|
|
(define-public talloc
|
|
|
|
|
(package
|
|
|
|
|
(name "talloc")
|
2022-09-16 13:48:28 -04:00
|
|
|
|
(version "2.3.4")
|
2014-04-06 12:25:57 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-06-16 14:20:06 -04:00
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/talloc/talloc-"
|
2014-04-06 12:25:57 -04:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-09-16 13:48:28 -04:00
|
|
|
|
"01b5pq39z1l26f86dy8jqb37fsjbvsvx5ji65jmy8rsy4sz9x7qp"))))
|
2014-04-06 12:25:57 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2015-12-14 23:09:19 -05:00
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2018-01-15 01:30:13 -05:00
|
|
|
|
;; talloc uses a custom configuration script that runs a Python
|
|
|
|
|
;; script called 'waf', and doesn't tolerate unknown options.
|
2015-12-14 23:09:19 -05:00
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-01-15 01:30:13 -05:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix=" out))))))))
|
2019-03-02 09:07:10 -05:00
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list which))
|
2014-04-06 12:25:57 -04:00
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list python))
|
2017-03-24 07:16:09 -04:00
|
|
|
|
(home-page "https://talloc.samba.org")
|
2014-04-06 12:25:57 -04:00
|
|
|
|
(synopsis "Hierarchical, reference counted memory pool system")
|
|
|
|
|
(description
|
|
|
|
|
"Talloc is a hierarchical, reference counted memory pool system with
|
|
|
|
|
destructors. It is the core memory allocator used in Samba.")
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(license license:gpl3+))) ;; The bundled "replace" library uses LGPL3.
|
2015-11-15 22:16:16 -05:00
|
|
|
|
|
2017-05-12 05:53:08 -04:00
|
|
|
|
(define-public talloc/static
|
|
|
|
|
(package
|
|
|
|
|
(inherit talloc)
|
|
|
|
|
(name "talloc-static")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Hierarchical, reference counted memory pool system (static library)")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments talloc)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
;; Since Waf, the build system talloc uses, apparently does not
|
|
|
|
|
;; support building static libraries from a ./configure flag, roll our
|
|
|
|
|
;; own build process. No need to be ashamed, we're not the only ones
|
|
|
|
|
;; doing that:
|
|
|
|
|
;; <https://github.com/proot-me/proot-static-build/blob/master/GNUmakefile>.
|
|
|
|
|
;; :-)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
2019-01-25 07:39:12 -05:00
|
|
|
|
(invoke "gcc" "-c" "-Ibin/default" "-I" "lib/replace"
|
2019-03-02 09:07:10 -05:00
|
|
|
|
"-I." "-Wall" "-g" "-D__STDC_WANT_LIB_EXT1__=1"
|
|
|
|
|
"talloc.c")
|
2019-01-25 07:39:12 -05:00
|
|
|
|
(invoke "ar" "rc" "libtalloc.a" "talloc.o")))
|
2017-05-12 05:53:08 -04:00
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
|
(include (string-append out "/include")))
|
|
|
|
|
(mkdir-p lib)
|
|
|
|
|
(install-file "libtalloc.a" lib)
|
|
|
|
|
(install-file "talloc.h" include)
|
|
|
|
|
#t)))
|
|
|
|
|
(delete 'check))))))) ;XXX: tests rely on Python modules
|
|
|
|
|
|
2015-12-14 23:17:07 -05:00
|
|
|
|
(define-public tevent
|
|
|
|
|
(package
|
|
|
|
|
(name "tevent")
|
2022-09-16 13:49:10 -04:00
|
|
|
|
(version "0.13.0")
|
2015-12-14 23:17:07 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/tevent/tevent-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-09-16 13:49:10 -04:00
|
|
|
|
"030x6ziapxiqvmi2m23ri2p9rsa202gfqr7b3cv48lx5gy8plhxr"))))
|
2015-12-14 23:17:07 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
;; tevent uses a custom configuration script that runs waf.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2019-01-25 07:42:58 -05:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
"--bundled-libraries=NONE")))))))
|
2015-12-14 23:17:07 -05:00
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list cmocka pkg-config python which))
|
2015-12-14 23:17:07 -05:00
|
|
|
|
(propagated-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list talloc)) ; required by tevent.pc
|
2015-12-14 23:17:07 -05:00
|
|
|
|
(synopsis "Event system library")
|
|
|
|
|
(home-page "https://tevent.samba.org/")
|
|
|
|
|
(description
|
|
|
|
|
"Tevent is an event system based on the talloc memory management library.
|
|
|
|
|
It is the core event system used in Samba. The low level tevent has support for
|
|
|
|
|
many event types, including timers, signals, and the classic file descriptor events.")
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(license license:lgpl3+)))
|
2015-12-14 23:17:07 -05:00
|
|
|
|
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(define-public ldb
|
|
|
|
|
(package
|
|
|
|
|
(name "ldb")
|
2022-09-16 13:49:52 -04:00
|
|
|
|
(version "2.6.1")
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/ldb/ldb-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-09-16 13:49:52 -04:00
|
|
|
|
"1j9n2yzhd35xjh0mdfgym58xfbma1d27bcavjv1q4rzqgpvh6x26"))
|
2018-05-31 09:46:17 -04:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
;; Delete everything except the build tools.
|
|
|
|
|
(unless (or (string-prefix? "third_party/waf" file)
|
|
|
|
|
(string-suffix? "wscript" file))
|
|
|
|
|
(delete-file file)))
|
2021-11-02 18:44:50 -04:00
|
|
|
|
(find-files "third_party"))))))
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2018-06-12 13:51:23 -04:00
|
|
|
|
'(;; LMDB is only supported on 64-bit systems, yet the test suite
|
|
|
|
|
;; requires it.
|
|
|
|
|
#:tests? (assoc-ref %build-inputs "lmdb")
|
|
|
|
|
#:phases
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
;; ldb use a custom configuration script that runs waf.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2019-01-25 07:44:13 -05:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "--with-modulesdir=" out
|
|
|
|
|
"/lib/ldb/modules")
|
|
|
|
|
"--bundled-libraries=NONE")))))))
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list cmocka pkg-config python which))
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; ldb.pc refers to all these.
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list talloc tdb))
|
2015-12-14 23:19:26 -05:00
|
|
|
|
(inputs
|
2018-06-12 13:51:23 -04:00
|
|
|
|
`(,@(if (target-64bit?)
|
|
|
|
|
`(("lmdb" ,lmdb))
|
|
|
|
|
'())
|
2018-12-04 10:21:56 -05:00
|
|
|
|
("popt" ,popt)
|
2015-12-14 23:19:26 -05:00
|
|
|
|
("tevent" ,tevent)))
|
|
|
|
|
(synopsis "LDAP-like embedded database")
|
|
|
|
|
(home-page "https://ldb.samba.org/")
|
|
|
|
|
(description
|
|
|
|
|
"Ldb is a LDAP-like embedded database built on top of TDB. What ldb does
|
|
|
|
|
is provide a fast database with an LDAP-like API designed to be used within an
|
|
|
|
|
application. In some ways it can be seen as a intermediate solution between
|
|
|
|
|
key-value pair databases and a real LDAP database.")
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(license license:lgpl3+)))
|
2015-12-14 23:19:26 -05:00
|
|
|
|
|
2015-11-15 22:16:16 -05:00
|
|
|
|
(define-public ppp
|
2021-01-06 07:06:00 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "ppp")
|
2023-09-23 20:00:00 -04:00
|
|
|
|
(version "2.5.0")
|
2021-01-06 07:06:00 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2022-06-25 12:12:31 -04:00
|
|
|
|
(url "https://github.com/ppp-project/ppp")
|
2023-09-23 20:00:00 -04:00
|
|
|
|
(commit (string-append "ppp-" version))))
|
2021-01-06 07:06:00 -05:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-09-23 20:00:00 -04:00
|
|
|
|
"1pkvaxi5318lvsadspj603wdkxah01vgjhywri7rv249p249vfr7"))))
|
2021-01-06 07:06:00 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2023-09-23 20:00:00 -04:00
|
|
|
|
(list #:tests? #f ; no tests
|
|
|
|
|
#:configure-flags
|
|
|
|
|
#~(list (string-append "CC=" #$(cc-for-target))
|
|
|
|
|
(string-append "--with-openssl="
|
|
|
|
|
(assoc-ref %build-inputs "openssl")))
|
|
|
|
|
#:make-flags #~(list "V=1") ; better build logs
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-before 'bootstrap 'no-/bin/sh
|
|
|
|
|
(lambda _ (delete-file "autogen.sh"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list autoconf automake libtool))
|
2021-01-06 07:06:00 -05:00
|
|
|
|
(inputs
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(list libpcap openssl))
|
2021-01-06 07:06:00 -05:00
|
|
|
|
(synopsis "Implementation of the Point-to-Point Protocol")
|
|
|
|
|
(home-page "https://ppp.samba.org/")
|
|
|
|
|
(description
|
|
|
|
|
"The Point-to-Point Protocol (PPP) provides a standard way to establish
|
2015-11-15 22:16:16 -05:00
|
|
|
|
a network connection over a serial link. At present, this package supports IP
|
|
|
|
|
and IPV6 and the protocols layered above them, such as TCP and UDP.")
|
2021-01-06 07:06:00 -05:00
|
|
|
|
;; pppd, pppstats and pppdump are under BSD-style notices.
|
|
|
|
|
;; some of the pppd plugins are GPL'd.
|
|
|
|
|
;; chat is public domain.
|
2022-06-25 12:16:33 -04:00
|
|
|
|
(license (list license:bsd-3
|
|
|
|
|
license:bsd-4
|
|
|
|
|
license:gpl2+
|
|
|
|
|
license:public-domain))))
|
2022-08-08 10:56:42 -04:00
|
|
|
|
|
|
|
|
|
(define-public wsdd
|
|
|
|
|
(package
|
|
|
|
|
(name "wsdd")
|
2023-07-15 20:00:01 -04:00
|
|
|
|
(version "0.7.1")
|
2022-08-08 10:56:42 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference (url "https://github.com/christgau/wsdd")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2023-07-15 20:00:01 -04:00
|
|
|
|
(base32 "16kk7x80jlargrvh643m23j277p0drs2yylqz54f9inf5ld5bxn5"))))
|
2023-07-15 20:00:01 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2022-08-08 10:56:42 -04:00
|
|
|
|
(arguments
|
2023-07-15 20:00:01 -04:00
|
|
|
|
(list
|
|
|
|
|
#:tests? #f ; no test suite, only examples
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(delete 'build) ; nothing to build
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "src"
|
|
|
|
|
(rename-file "wsdd.py" "wsdd")
|
|
|
|
|
(install-file "wsdd" (string-append #$output "/bin")))
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (file)
|
|
|
|
|
(install-file file
|
|
|
|
|
(string-append #$output "/share/man/man"
|
|
|
|
|
(string-take-right file 1))))
|
|
|
|
|
(find-files "man" "\\.[0-9]$")))))))
|
2023-07-15 20:00:01 -04:00
|
|
|
|
(inputs
|
|
|
|
|
(list python))
|
2022-08-08 10:56:42 -04:00
|
|
|
|
(home-page "https://github.com/christgau/wsdd")
|
2022-10-31 20:08:32 -04:00
|
|
|
|
(synopsis "Web Service Discovery host daemon")
|
2022-08-08 10:56:42 -04:00
|
|
|
|
(description "This daemon allows (Samba) hosts to be found by Web
|
|
|
|
|
Service Dicovery Clients. It also implements the client side of the
|
2022-10-24 16:42:47 -04:00
|
|
|
|
discovery protocol which searches for devices implementing
|
2022-08-08 10:56:42 -04:00
|
|
|
|
WSD.")
|
|
|
|
|
(license license:expat)))
|