2013-02-12 18:35:54 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2017-05-12 09:53:08 +00:00
|
|
|
;;; Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org>
|
2015-02-26 07:01:29 +00:00
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2017-03-24 09:30:27 +00:00
|
|
|
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
2016-12-03 23:22:56 +00:00
|
|
|
;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
|
2017-03-30 15:47:00 +00:00
|
|
|
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
2018-05-31 13:46:17 +00:00
|
|
|
;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
|
2019-04-11 01:17:18 +00:00
|
|
|
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-11-11 12:08:56 +00:00
|
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
2019-03-20 19:23:34 +00:00
|
|
|
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
|
2013-02-12 18:35:54 +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 samba)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix licenses)
|
2017-05-12 09:53:08 +00:00
|
|
|
#:use-module (guix utils)
|
2013-02-12 18:35:54 +00:00
|
|
|
#:use-module (gnu packages acl)
|
2015-11-16 03:16:16 +00:00
|
|
|
#:use-module (gnu packages admin)
|
2017-03-30 15:47:00 +00:00
|
|
|
#:use-module (gnu packages autotools)
|
2018-12-04 15:38:53 +00:00
|
|
|
#:use-module (gnu packages backup)
|
2019-03-02 14:07:10 +00:00
|
|
|
#:use-module (gnu packages base)
|
2017-07-23 12:24:28 +00:00
|
|
|
#:use-module (gnu packages check)
|
2017-03-30 15:47:00 +00:00
|
|
|
#:use-module (gnu packages crypto)
|
2015-12-15 04:20:26 +00:00
|
|
|
#:use-module (gnu packages cups)
|
2015-12-15 04:19:26 +00:00
|
|
|
#:use-module (gnu packages databases)
|
2017-09-27 11:44:39 +00:00
|
|
|
#:use-module (gnu packages docbook)
|
2018-12-04 15:38:53 +00:00
|
|
|
#:use-module (gnu packages gnupg)
|
2017-03-30 15:47:00 +00:00
|
|
|
#:use-module (gnu packages kerberos)
|
2013-02-12 18:35:54 +00:00
|
|
|
#:use-module (gnu packages linux)
|
2019-06-16 06:21:57 +00:00
|
|
|
#:use-module (gnu packages onc-rpc)
|
2018-12-04 17:14:22 +00:00
|
|
|
#:use-module (gnu packages openldap)
|
2013-02-12 18:35:54 +00:00
|
|
|
#:use-module (gnu packages perl)
|
2018-12-04 17:14:22 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages popt)
|
2017-09-27 11:44:39 +00:00
|
|
|
#:use-module (gnu packages python)
|
2018-12-04 17:14:22 +00:00
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages tls)
|
2018-12-04 15:38:53 +00:00
|
|
|
#:use-module (gnu packages web)
|
2017-09-27 11:44:39 +00:00
|
|
|
#:use-module (gnu packages xml))
|
2013-02-12 18:35:54 +00:00
|
|
|
|
2017-03-30 15:47:00 +00:00
|
|
|
(define-public cifs-utils
|
|
|
|
(package
|
|
|
|
(name "cifs-utils")
|
2019-04-11 01:20:14 +00:00
|
|
|
(version "6.9")
|
2017-03-30 15:47:00 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://download.samba.org/pub/linux-cifs/"
|
2019-04-11 01:17:18 +00:00
|
|
|
"cifs-utils/cifs-utils-" version ".tar.bz2"))
|
2017-03-30 15:47:00 +00:00
|
|
|
(sha256 (base32
|
2019-04-11 01:20:14 +00:00
|
|
|
"175cp509wn1zv8p8mv37hkf6sxiskrsxdnq22mhlsg61jazz3n0q"))))
|
2017-03-30 15:47:00 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("keytuils" ,keyutils)
|
|
|
|
("linux-pam" ,linux-pam)
|
|
|
|
("libcap-ng" ,libcap-ng)
|
|
|
|
("mit-krb5" ,mit-krb5)
|
|
|
|
("samba" ,samba)
|
|
|
|
("talloc" ,talloc)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'set-root-sbin
|
2019-04-11 01:20:14 +00:00
|
|
|
(lambda _
|
|
|
|
;; Don't try to install into "/sbin".
|
2017-03-30 15:47:00 +00:00
|
|
|
(setenv "ROOTSBINDIR"
|
|
|
|
(string-append (assoc-ref %outputs "out") "/sbin"))
|
|
|
|
#t)))))
|
|
|
|
(synopsis "User-space utilities for Linux CIFS (Samba) mounts")
|
|
|
|
(description "@code{cifs-utils} is a set of user-space utilities for
|
|
|
|
mounting and managing @dfn{Common Internet File System} (CIFS) shares using
|
|
|
|
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.
|
|
|
|
(license gpl3+)))
|
|
|
|
|
2013-02-12 18:35:54 +00:00
|
|
|
(define-public iniparser
|
|
|
|
(package
|
|
|
|
(name "iniparser")
|
2018-01-15 06:30:08 +00:00
|
|
|
(version "4.1")
|
2013-02-12 18:35:54 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-07-24 08:14:13 +00:00
|
|
|
(uri (string-append "https://github.com/ndevilla/iniparser/archive/v"
|
2013-02-12 18:35:54 +00:00
|
|
|
version ".tar.gz"))
|
2016-07-24 08:14:13 +00:00
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2013-02-12 18:35:54 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-01-15 06:30:08 +00:00
|
|
|
"1bpk8dj9d5cl64lg6jsk0qlzrpg848nymwxc3fx707fk1n0al3cn"))))
|
2013-02-12 18:35:54 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-01-15 06:29:59 +00:00
|
|
|
`(#:make-flags
|
|
|
|
(list "CC=gcc")
|
|
|
|
#:phases
|
2016-07-24 08:23:01 +00:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(substitute* '("Makefile" "test/Makefile")
|
|
|
|
(("/usr/lib")
|
2018-04-12 07:45:00 +00:00
|
|
|
(string-append (assoc-ref outputs "out") "/lib")))
|
|
|
|
#t))
|
2016-07-24 08:23:01 +00:00
|
|
|
(replace 'build
|
2018-01-15 06:29:59 +00:00
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
2018-01-15 06:30:08 +00:00
|
|
|
(apply invoke "make" "libiniparser.so.1"
|
2018-01-15 06:29:59 +00:00
|
|
|
make-flags)))
|
2016-07-24 08:23:01 +00: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 06:29:54 +00:00
|
|
|
(doc (string-append out "/share/doc/" ,name))
|
2016-07-24 08:23:01 +00:00
|
|
|
(html (string-append doc "/html")))
|
2018-01-15 06:30:03 +00:00
|
|
|
(define (install dir)
|
2016-07-24 08:23:01 +00:00
|
|
|
(lambda (file)
|
2018-01-15 06:30:03 +00:00
|
|
|
(install-file file dir)))
|
|
|
|
(for-each (install lib)
|
|
|
|
(find-files "." "^lib.*\\.so"))
|
2016-07-24 08:23:01 +00:00
|
|
|
(with-directory-excursion lib
|
2018-01-15 06:30:08 +00:00
|
|
|
(symlink "libiniparser.so.1" "libiniparser.so"))
|
2018-01-15 06:30:03 +00:00
|
|
|
(for-each (install inc)
|
2016-07-24 08:23:01 +00:00
|
|
|
(find-files "src" "\\.h$"))
|
2018-01-15 06:30:03 +00:00
|
|
|
(for-each (install html)
|
2016-07-24 08:23:01 +00:00
|
|
|
(find-files "html" ".*"))
|
2018-01-15 06:30:03 +00:00
|
|
|
(for-each (install doc)
|
2018-04-12 07:45:00 +00:00
|
|
|
'("AUTHORS" "INSTALL" "LICENSE" "README.md"))
|
|
|
|
#t))))))
|
2018-01-15 06:30:08 +00:00
|
|
|
(home-page "https://github.com/ndevilla/iniparser")
|
2013-02-12 18:35:54 +00:00
|
|
|
(synopsis "Standalone ini file parsing library")
|
|
|
|
(description
|
gnu: Fix descriptions to not use quotes.
* gnu/packages/admin.scm (wpa-supplicant-minimal, mingetty, di),
* gnu/packages/audio.scm (fil-plugins),
* gnu/packages/base.scm (make-ld-wrapper, make-glibc-locales),
* gnu/packages/bioinformatics.scm (r-samtools),
* gnu/packages/chez.scm (chez-mit),
* gnu/packages/commencement.scm (make-gcc-toolchain),
* gnu/packages/compression.scm (fastjar),
* gnu/packages/cran.scm (r-maps, r-rcpp),
* gnu/packages/databases.scm (sparql-query),
* gnu/packages/dunst.scm (dunst),
* gnu/packages/ftp.scm (ncftp),
* gnu/packages/gl.scm (freeglut),
* gnu/packages/haskell-check.scm (ghc-tasty-golden),
* gnu/packages/haskell.scm (ghc-case-insensitive, ghc-text,
ghc-haskell-src, ghc-syb, ghc-deepseq-generics, ghc-network-uri,
ghc-rerebase, ghc-zlib),
* gnu/packages/image.scm (jbig2dec),
* gnu/packages/kde-frameworks.scm (kinit, karchive),
* gnu/packages/linux.scm (wireless-tools, perf, module-init-tools, kbd),
* gnu/packages/lirc.scm (lirc),
* gnu/packages/lisp.scm (uglify-js),
* gnu/packages/mate.scm (mate-netbook),
* gnu/packages/microcom.scm (microcom),
* gnu/packages/music.scm (bristol),
* gnu/packages/networking.scm (perl-geo-ip),
* gnu/packages/patchutils.scm (patches),
* gnu/packages/perl-check.scm (perl-test-more-utf8),
* gnu/packages/perl.scm (perl-log-report-optional, perl-file-which,
perl-io-tty, perl-log-any, perl-digest-sha1, perl-class-load,
perl-regexp-common, perl-module-pluggable, perl-class-modifier),
* gnu/packages/python-xyz.scm (python-backports-abc, python-natsort),
* gnu/packages/samba.scm (iniparser),
* gnu/packages/search.scm (mlocate),
* gnu/packages/spice.scm (spice),
* gnu/packages/statistics.scm (r-dt, r-lubridate, r-estimability,
r-commonmark, r-digest, r-viridislite, r-stringr),
* gnu/packages/tex.scm (texlive-latex-changebar),
* gnu/packages/version-control.scm (subversion),
* gnu/packages/w3m.scm (w3m),
* gnu/packages/web.scm (perl-http-parser,
perl-plack-middleware-reverseproxy),
* gnu/packages/xorg.scm (xkeyboard-config, mkfontdir, xcursor-theme,
mkfontscale, xinit, font-alias)[description]: Use @code instead of quotes.
2019-03-31 13:39:43 +00:00
|
|
|
"iniparser is a free stand-alone @code{ini} file parsing library (Windows
|
2013-02-12 18:35:54 +00:00
|
|
|
configuration files). It is written in portable ANSI C and should compile
|
|
|
|
anywhere.")
|
|
|
|
(license x11)))
|
|
|
|
|
|
|
|
(define-public samba
|
|
|
|
(package
|
|
|
|
(name "samba")
|
2019-09-19 14:53:43 +00:00
|
|
|
(version "4.11.0")
|
2013-02-12 18:35:54 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-10-30 07:28:06 +00:00
|
|
|
(uri (string-append "https://download.samba.org/pub/samba/stable/"
|
|
|
|
"samba-" version ".tar.gz"))
|
2013-02-12 18:35:54 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-09-19 14:53:43 +00:00
|
|
|
"174fwi8n191dnb8ix9afchfp59hic6iwa3062iz3y7zzmxs1rpva"))))
|
2013-02-12 18:35:54 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2017-09-27 11:44:39 +00:00
|
|
|
`(#:phases
|
2015-12-15 04:20:26 +00:00
|
|
|
(modify-phases %standard-phases
|
2017-09-27 11:44:39 +00:00
|
|
|
(add-before 'configure 'locate-docbook-stylesheets
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; XXX for some reason XML_CATALOG_FILES is not respected.
|
|
|
|
(substitute* '("buildtools/wafsamba/samba_conftests.py"
|
|
|
|
"buildtools/wafsamba/wafsamba.py"
|
|
|
|
"docs-xml/xslt/man.xsl")
|
|
|
|
(("http://docbook.sourceforge.net/release/xsl/current/")
|
|
|
|
(string-append (assoc-ref inputs "docbook-xsl")
|
|
|
|
"/xml/xsl/docbook-xsl-"
|
|
|
|
,(package-version docbook-xsl) "/")))
|
|
|
|
#t))
|
2015-12-15 04:20:26 +00:00
|
|
|
(replace 'configure
|
|
|
|
;; samba uses a custom configuration script that runs waf.
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(libdir (string-append out "/lib")))
|
2018-06-26 16:30:58 +00:00
|
|
|
(invoke "./configure"
|
2015-12-15 04:20:26 +00:00
|
|
|
"--enable-fhs"
|
|
|
|
;; XXX: heimdal not packaged.
|
|
|
|
"--bundled-libraries=com_err"
|
|
|
|
(string-append "--prefix=" out)
|
2017-03-24 09:30:27 +00:00
|
|
|
"--sysconfdir=/etc"
|
2015-12-15 04:20:26 +00:00
|
|
|
;; Install public and private libraries into
|
|
|
|
;; a single directory to avoid RPATH issues.
|
|
|
|
(string-append "--libdir=" libdir)
|
2018-06-26 16:30:58 +00:00
|
|
|
(string-append "--with-privatelibdir=" libdir)))))
|
2017-03-24 09:30:27 +00:00
|
|
|
(add-before 'install 'disable-etc-samba-directory-creation
|
2016-12-03 23:22:56 +00:00
|
|
|
(lambda _
|
|
|
|
(substitute* "dynconfig/wscript"
|
2018-05-02 12:43:49 +00:00
|
|
|
(("bld\\.INSTALL_DIR\\(\"\\$\\{CONFIGDIR\\}\"\\)")
|
|
|
|
""))
|
2017-03-24 09:30:27 +00:00
|
|
|
#t)))
|
2013-02-12 18:35:54 +00:00
|
|
|
;; XXX: The test infrastructure attempts to set password with
|
|
|
|
;; smbpasswd, which fails with "smbpasswd -L can only be used by root."
|
|
|
|
;; So disable tests until there's a workaround.
|
|
|
|
#:tests? #f))
|
|
|
|
(inputs ; TODO: Add missing dependencies
|
2015-12-15 04:20:26 +00:00
|
|
|
`(("acl" ,acl)
|
|
|
|
("cups" ,cups)
|
2013-02-12 18:35:54 +00:00
|
|
|
;; ("gamin" ,gamin)
|
2018-12-04 15:38:53 +00:00
|
|
|
("gpgme" ,gpgme)
|
2015-12-15 04:20:26 +00:00
|
|
|
("gnutls" ,gnutls)
|
2013-02-12 18:35:54 +00:00
|
|
|
("iniparser" ,iniparser)
|
2018-12-04 15:38:53 +00:00
|
|
|
("jansson" ,jansson)
|
2015-12-15 04:20:26 +00:00
|
|
|
("libaio" ,libaio)
|
2018-12-04 15:38:53 +00:00
|
|
|
("libarchive" ,libarchive)
|
2013-02-12 18:35:54 +00:00
|
|
|
("linux-pam" ,linux-pam)
|
2018-12-04 15:38:53 +00:00
|
|
|
("lmdb" ,lmdb)
|
2015-12-15 04:20:26 +00:00
|
|
|
("openldap" ,openldap)
|
|
|
|
("popt" ,popt)
|
2013-02-15 21:04:51 +00:00
|
|
|
("readline" ,readline)
|
2015-12-15 04:20:26 +00:00
|
|
|
("tdb" ,tdb)))
|
2018-05-02 12:42:49 +00:00
|
|
|
(propagated-inputs
|
|
|
|
;; In Requires or Requires.private of pkg-config files.
|
|
|
|
`(("ldb" ,ldb)
|
|
|
|
("talloc" ,talloc)
|
|
|
|
("tevent" ,tevent)))
|
2015-12-15 04:20:26 +00:00
|
|
|
(native-inputs
|
2017-09-27 11:44:39 +00:00
|
|
|
`(("docbook-xsl" ,docbook-xsl) ;for generating manpages
|
|
|
|
("xsltproc" ,libxslt) ;ditto
|
2019-06-16 06:21:57 +00:00
|
|
|
("rpcsvc-proto" ,rpcsvc-proto) ;for 'rpcgen'
|
2017-09-27 11:44:39 +00:00
|
|
|
("perl" ,perl)
|
2015-12-15 04:20:26 +00:00
|
|
|
("pkg-config" ,pkg-config)
|
2019-03-20 19:23:34 +00:00
|
|
|
("python" ,python)))
|
2016-07-09 20:46:49 +00:00
|
|
|
(home-page "https://www.samba.org/")
|
2013-02-12 18:35:54 +00:00
|
|
|
(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 gpl3+)))
|
2014-04-06 16:25:57 +00:00
|
|
|
|
|
|
|
(define-public talloc
|
|
|
|
(package
|
|
|
|
(name "talloc")
|
2019-09-04 18:45:46 +00:00
|
|
|
(version "2.3.0")
|
2014-04-06 16:25:57 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2015-06-16 18:20:06 +00:00
|
|
|
(uri (string-append "https://www.samba.org/ftp/talloc/talloc-"
|
2014-04-06 16:25:57 +00:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-09-04 18:45:46 +00:00
|
|
|
"1iigk4a7n9k9qqq0h3a5vah67ycpqzvahvdhzy15lm428jrvrmbm"))))
|
2014-04-06 16:25:57 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2015-12-15 04:09:19 +00:00
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2018-01-15 06:30:13 +00:00
|
|
|
;; talloc uses a custom configuration script that runs a Python
|
|
|
|
;; script called 'waf', and doesn't tolerate unknown options.
|
2015-12-15 04:09:19 +00:00
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-01-15 06:30:13 +00:00
|
|
|
(invoke "./configure"
|
|
|
|
(string-append "--prefix=" out))))))))
|
2019-03-02 14:07:10 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("which" ,which)))
|
2014-04-06 16:25:57 +00:00
|
|
|
(inputs
|
2019-03-02 14:07:10 +00:00
|
|
|
`(("python" ,python)))
|
2017-03-24 11:16:09 +00:00
|
|
|
(home-page "https://talloc.samba.org")
|
2014-04-06 16:25:57 +00: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.")
|
|
|
|
(license gpl3+))) ;; The bundled "replace" library uses LGPL3.
|
2015-11-16 03:16:16 +00:00
|
|
|
|
2017-05-12 09:53:08 +00: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 12:39:12 +00:00
|
|
|
(invoke "gcc" "-c" "-Ibin/default" "-I" "lib/replace"
|
2019-03-02 14:07:10 +00:00
|
|
|
"-I." "-Wall" "-g" "-D__STDC_WANT_LIB_EXT1__=1"
|
|
|
|
"talloc.c")
|
2019-01-25 12:39:12 +00:00
|
|
|
(invoke "ar" "rc" "libtalloc.a" "talloc.o")))
|
2017-05-12 09:53:08 +00: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-15 04:17:07 +00:00
|
|
|
(define-public tevent
|
|
|
|
(package
|
|
|
|
(name "tevent")
|
2019-09-04 18:46:06 +00:00
|
|
|
(version "0.10.1")
|
2015-12-15 04:17:07 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/tevent/tevent-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-09-04 18:46:06 +00:00
|
|
|
"1dhhd7fz6wyvlwrk1a6gj5m2mcjsc3ilx0mcv1qsr1lbndldm93r"))))
|
2015-12-15 04:17:07 +00: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 12:42:58 +00:00
|
|
|
(invoke "./configure"
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
"--bundled-libraries=NONE")))))))
|
2015-12-15 04:17:07 +00:00
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2019-03-02 14:07:34 +00:00
|
|
|
("python" ,python)
|
|
|
|
("which" ,which)))
|
2015-12-15 04:17:07 +00:00
|
|
|
(propagated-inputs
|
|
|
|
`(("talloc" ,talloc))) ; required by tevent.pc
|
|
|
|
(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.")
|
|
|
|
(license lgpl3+)))
|
|
|
|
|
2015-12-15 04:19:26 +00:00
|
|
|
(define-public ldb
|
|
|
|
(package
|
|
|
|
(name "ldb")
|
2019-03-23 21:06:55 +00:00
|
|
|
(version "1.6.3")
|
2015-12-15 04:19:26 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/ldb/ldb-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-03-23 21:06:55 +00:00
|
|
|
"01livdy3g073bm6xnc8zqnqrxg53sw8q66d1903z62hd6g87whsa"))
|
2018-05-31 13:46:17 +00: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)))
|
|
|
|
(find-files "third_party"))
|
|
|
|
#t))))
|
2015-12-15 04:19:26 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-06-12 17:51:23 +00:00
|
|
|
'(;; LMDB is only supported on 64-bit systems, yet the test suite
|
|
|
|
;; requires it.
|
|
|
|
#:tests? (assoc-ref %build-inputs "lmdb")
|
|
|
|
#:phases
|
2015-12-15 04:19:26 +00: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 12:44:13 +00:00
|
|
|
(invoke "./configure"
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
(string-append "--with-modulesdir=" out
|
|
|
|
"/lib/ldb/modules")
|
|
|
|
"--bundled-libraries=NONE")))))))
|
2015-12-15 04:19:26 +00:00
|
|
|
(native-inputs
|
2017-07-23 12:24:28 +00:00
|
|
|
`(("cmocka" ,cmocka)
|
|
|
|
("pkg-config" ,pkg-config)
|
2019-03-02 14:05:05 +00:00
|
|
|
("python" ,python)
|
|
|
|
("which" ,which)))
|
2015-12-15 04:19:26 +00:00
|
|
|
(propagated-inputs
|
|
|
|
;; ldb.pc refers to all these.
|
|
|
|
`(("talloc" ,talloc)
|
|
|
|
("tdb" ,tdb)))
|
|
|
|
(inputs
|
2018-06-12 17:51:23 +00:00
|
|
|
`(,@(if (target-64bit?)
|
|
|
|
`(("lmdb" ,lmdb))
|
|
|
|
'())
|
2018-12-04 15:21:56 +00:00
|
|
|
("popt" ,popt)
|
2015-12-15 04:19:26 +00: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.")
|
|
|
|
(license lgpl3+)))
|
|
|
|
|
2015-11-16 03:16:16 +00:00
|
|
|
(define-public ppp
|
|
|
|
(package
|
|
|
|
(name "ppp")
|
|
|
|
(version "2.4.7")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/ppp/ppp-"
|
|
|
|
version ".tar.gz"))
|
2018-09-03 13:42:42 +00:00
|
|
|
(patches
|
|
|
|
(list (origin
|
|
|
|
;; Use OpenSSL for cryptography instead of the obsolete glibc
|
|
|
|
;; crypto functions that were removed in glibc 2.28.
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/paulusmack/ppp/commit/"
|
|
|
|
"3c7b86229f7bd2600d74db14b1fe5b3896be3875"
|
|
|
|
".patch"))
|
|
|
|
(file-name "ppp-use-openssl-crypto.patch")
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0qlbi247lx3injpy8a1gcij9yilik0vfaibkpvdp88k3sa1rs69z")))))
|
2015-11-16 03:16:16 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0c7vrjxl52pdwi4ckrvfjr08b31lfpgwf3pp0cqy76a77vfs7q02"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f ; no check target
|
|
|
|
#:make-flags '("CC=gcc")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'patch-Makefile
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((libc (assoc-ref inputs "libc"))
|
2018-09-03 13:42:42 +00:00
|
|
|
(openssl (assoc-ref inputs "openssl"))
|
2015-11-16 03:16:16 +00:00
|
|
|
(libpcap (assoc-ref inputs "libpcap")))
|
|
|
|
(substitute* "pppd/Makefile.linux"
|
|
|
|
(("/usr/include/crypt\\.h")
|
|
|
|
(string-append libc "/include/crypt.h"))
|
2018-09-03 13:42:42 +00:00
|
|
|
(("/usr/include/openssl")
|
|
|
|
(string-append openssl "/include/openssl"))
|
2015-11-16 03:16:16 +00:00
|
|
|
(("/usr/include/pcap-bpf.h")
|
2018-09-03 13:35:23 +00:00
|
|
|
(string-append libpcap "/include/pcap-bpf.h")))
|
|
|
|
#t))))))
|
2015-11-16 03:16:16 +00:00
|
|
|
(inputs
|
2018-09-03 13:42:42 +00:00
|
|
|
`(("libpcap" ,libpcap)
|
|
|
|
("openssl" ,(@ (gnu packages tls) openssl))))
|
2015-11-16 03:16:16 +00: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
|
|
|
|
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.")
|
|
|
|
;; pppd, pppstats and pppdump are under BSD-style notices.
|
|
|
|
;; some of the pppd plugins are GPL'd.
|
|
|
|
;; chat is public domain.
|
|
|
|
(license (list bsd-3 bsd-4 gpl2+ public-domain))))
|