2013-02-12 19:35:54 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-04-01 15:41:55 +02:00
|
|
|
|
;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org>
|
2015-02-26 08:01:29 +01:00
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2017-03-24 10:30:27 +01:00
|
|
|
|
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
2016-12-04 00:22:56 +01:00
|
|
|
|
;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
|
2017-03-30 17:47:00 +02:00
|
|
|
|
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
2013-02-12 19:35:54 +01: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)
|
|
|
|
|
#:use-module (gnu packages acl)
|
2015-11-16 04:16:16 +01:00
|
|
|
|
#:use-module (gnu packages admin)
|
2017-03-30 17:47:00 +02:00
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
|
#:use-module (gnu packages crypto)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
#:use-module (gnu packages cups)
|
2015-12-15 05:19:26 +01:00
|
|
|
|
#:use-module (gnu packages databases)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
#:use-module (gnu packages tls)
|
2013-02-12 19:35:54 +01:00
|
|
|
|
#:use-module (gnu packages popt)
|
2015-12-15 05:17:07 +01:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2013-02-12 19:35:54 +01:00
|
|
|
|
#:use-module (gnu packages openldap)
|
|
|
|
|
#:use-module (gnu packages readline)
|
2017-03-30 17:47:00 +02:00
|
|
|
|
#:use-module (gnu packages kerberos)
|
2013-02-12 19:35:54 +01:00
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages python))
|
|
|
|
|
|
2017-03-30 17:47:00 +02:00
|
|
|
|
(define-public cifs-utils
|
|
|
|
|
(package
|
|
|
|
|
(name "cifs-utils")
|
|
|
|
|
(version "6.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.samba.org/pub/linux-cifs/"
|
|
|
|
|
name "/" name "-" version ".tar.bz2"))
|
|
|
|
|
(sha256 (base32
|
|
|
|
|
"1ayghnkryy1n1zm5dyvyyr7n3807nsm6glfcbbki5c2a8w91dwmj"))))
|
|
|
|
|
(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
|
|
|
|
|
;; The 6.7 tarball is missing ‘install.sh’. Create it.
|
|
|
|
|
(add-before 'configure 'autoreconf
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "autoreconf" "-i"))))
|
|
|
|
|
(add-before 'configure 'set-root-sbin
|
|
|
|
|
(lambda _ ; Don't try to install in "/sbin".
|
|
|
|
|
(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 19:35:54 +01:00
|
|
|
|
(define-public iniparser
|
|
|
|
|
(package
|
|
|
|
|
(name "iniparser")
|
2016-07-24 10:14:13 +02:00
|
|
|
|
(version "4.0")
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-07-24 10:14:13 +02:00
|
|
|
|
(uri (string-append "https://github.com/ndevilla/iniparser/archive/v"
|
2013-02-12 19:35:54 +01:00
|
|
|
|
version ".tar.gz"))
|
2016-07-24 10:14:13 +02:00
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-07-24 10:14:13 +02:00
|
|
|
|
"1flj7srvh2hp9ls96qz922bklyhw7f27mmn23b16839zpdjddfz0"))))
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2016-07-24 10:23:01 +02:00
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* '("Makefile" "test/Makefile")
|
|
|
|
|
(("/usr/lib")
|
|
|
|
|
(string-append (assoc-ref outputs "out") "/lib"))
|
|
|
|
|
(("\\?= gcc") "= gcc"))))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
(and (zero? (system* "make" "libiniparser.so"))
|
|
|
|
|
(symlink "libiniparser.so.0" "libiniparser.so"))))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
|
(inc (string-append out "/include"))
|
|
|
|
|
(doc (string-append out "/share/doc"))
|
|
|
|
|
(html (string-append doc "/html")))
|
|
|
|
|
(define (copy dir)
|
|
|
|
|
(lambda (file)
|
|
|
|
|
(copy-file file
|
|
|
|
|
(string-append dir "/"
|
|
|
|
|
(basename file)))))
|
|
|
|
|
(mkdir-p lib)
|
|
|
|
|
(for-each (copy lib)
|
|
|
|
|
(find-files "." "^lib.*\\.(so\\.|a)"))
|
|
|
|
|
(with-directory-excursion lib
|
|
|
|
|
(symlink "libiniparser.so.0" "libiniparser.so"))
|
|
|
|
|
(mkdir-p inc)
|
|
|
|
|
(for-each (copy inc)
|
|
|
|
|
(find-files "src" "\\.h$"))
|
|
|
|
|
(mkdir-p html)
|
|
|
|
|
(for-each (copy html)
|
|
|
|
|
(find-files "html" ".*"))
|
|
|
|
|
(for-each (copy doc)
|
|
|
|
|
'("AUTHORS" "INSTALL" "LICENSE" "README.md"))))))))
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(home-page "http://ndevilla.free.fr/iniparser")
|
|
|
|
|
(synopsis "Standalone ini file parsing library")
|
|
|
|
|
(description
|
|
|
|
|
"iniparser is a free stand-alone `ini' file parsing library (Windows
|
|
|
|
|
configuration files). It is written in portable ANSI C and should compile
|
|
|
|
|
anywhere.")
|
|
|
|
|
(license x11)))
|
|
|
|
|
|
|
|
|
|
(define-public samba
|
|
|
|
|
(package
|
|
|
|
|
(name "samba")
|
2017-04-15 01:11:03 +02:00
|
|
|
|
(version "4.5.8")
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-10-30 08:28:06 +01:00
|
|
|
|
(uri (string-append "https://download.samba.org/pub/samba/stable/"
|
|
|
|
|
"samba-" version ".tar.gz"))
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-04-15 01:11:03 +02:00
|
|
|
|
"1w41pxszv5z6gjclg6zymn47mk8n51lnpgcx1k2q18i3i1nnafzn"))))
|
2013-02-12 19:35:54 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2015-12-15 05:20:26 +01:00
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(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")))
|
|
|
|
|
(zero? (system*
|
|
|
|
|
"./configure"
|
|
|
|
|
"--enable-fhs"
|
|
|
|
|
;; XXX: heimdal not packaged.
|
|
|
|
|
"--bundled-libraries=com_err"
|
|
|
|
|
(string-append "--prefix=" out)
|
2017-03-24 10:30:27 +01:00
|
|
|
|
"--sysconfdir=/etc"
|
2015-12-15 05:20:26 +01:00
|
|
|
|
;; Install public and private libraries into
|
|
|
|
|
;; a single directory to avoid RPATH issues.
|
|
|
|
|
(string-append "--libdir=" libdir)
|
2016-12-04 00:22:56 +01:00
|
|
|
|
(string-append "--with-privatelibdir=" libdir))))))
|
2017-03-24 10:30:27 +01:00
|
|
|
|
(add-before 'install 'disable-etc-samba-directory-creation
|
2016-12-04 00:22:56 +01:00
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "dynconfig/wscript"
|
|
|
|
|
(("bld\\.INSTALL_DIRS\\(\"\",[[:blank:]]{1,}\"\\$\\{CONFIGDIR\\}[[:blank:]]{1,}")
|
2017-03-24 10:30:27 +01:00
|
|
|
|
"bld.INSTALL_DIRS(\"\", \""))
|
|
|
|
|
#t)))
|
2013-02-12 19:35:54 +01: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 05:20:26 +01:00
|
|
|
|
`(("acl" ,acl)
|
|
|
|
|
("cups" ,cups)
|
2013-02-12 19:35:54 +01:00
|
|
|
|
;; ("gamin" ,gamin)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
("gnutls" ,gnutls)
|
2013-02-12 19:35:54 +01:00
|
|
|
|
("iniparser" ,iniparser)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
("libaio" ,libaio)
|
|
|
|
|
("ldb" ,ldb)
|
2013-02-12 19:35:54 +01:00
|
|
|
|
("linux-pam" ,linux-pam)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
("openldap" ,openldap)
|
|
|
|
|
("popt" ,popt)
|
2013-02-15 22:04:51 +01:00
|
|
|
|
("readline" ,readline)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
("talloc" ,talloc)
|
|
|
|
|
("tevent" ,tevent)
|
|
|
|
|
("tdb" ,tdb)))
|
|
|
|
|
(native-inputs
|
2013-02-12 19:35:54 +01:00
|
|
|
|
`(("perl" ,perl)
|
2015-12-15 05:20:26 +01:00
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2))) ; incompatible with Python 3
|
2016-07-09 22:46:49 +02:00
|
|
|
|
(home-page "https://www.samba.org/")
|
2013-02-12 19:35:54 +01: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 18:25:57 +02:00
|
|
|
|
|
|
|
|
|
(define-public talloc
|
|
|
|
|
(package
|
|
|
|
|
(name "talloc")
|
2017-03-24 12:16:09 +01:00
|
|
|
|
(version "2.1.9")
|
2014-04-06 18:25:57 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-06-16 20:20:06 +02:00
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/talloc/talloc-"
|
2014-04-06 18:25:57 +02:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-03-24 12:16:09 +01:00
|
|
|
|
"0qhhf4ib9k65sri2ky115iya6j7dgg0dsdi1r03j4cm3i35x9aph"))))
|
2014-04-06 18:25:57 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2015-12-15 05:09:19 +01:00
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2015-12-18 03:08:33 +01:00
|
|
|
|
;; test_magic_differs.sh has syntax error, and is not in the right
|
|
|
|
|
;; place where wscript expected.
|
|
|
|
|
;; Skip the test.
|
|
|
|
|
(substitute* "wscript"
|
|
|
|
|
(("magic_ret = .*") "magic_ret = 0\n"))
|
2015-12-15 05:09:19 +01:00
|
|
|
|
;; talloc uses a custom configuration script that runs a
|
|
|
|
|
;; python script called 'waf'.
|
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(zero? (system* "./configure"
|
|
|
|
|
(string-append "--prefix=" out)))))))))
|
2014-04-06 18:25:57 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-2)))
|
2017-03-24 12:16:09 +01:00
|
|
|
|
(home-page "https://talloc.samba.org")
|
2014-04-06 18:25:57 +02: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 04:16:16 +01:00
|
|
|
|
|
2015-12-15 05:17:07 +01:00
|
|
|
|
(define-public tevent
|
|
|
|
|
(package
|
|
|
|
|
(name "tevent")
|
2016-10-08 19:34:44 +02:00
|
|
|
|
(version "0.9.31")
|
2015-12-15 05:17:07 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/tevent/tevent-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-08 19:34:44 +02:00
|
|
|
|
"1z1bij9gccps34q8zakr1k7k3gpqs25jas20x1hch16qd8jz44sa"))))
|
2015-12-15 05:17:07 +01: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")))
|
|
|
|
|
(zero? (system* "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
"--bundled-libraries=NONE"))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)))
|
|
|
|
|
(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 05:19:26 +01:00
|
|
|
|
(define-public ldb
|
|
|
|
|
(package
|
|
|
|
|
(name "ldb")
|
2016-10-08 21:25:01 +02:00
|
|
|
|
(version "1.1.27")
|
2015-12-15 05:19:26 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.samba.org/ftp/ldb/ldb-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-10-08 21:25:01 +02:00
|
|
|
|
"1b1mkl5p8swb67s9aswavhzswlib34hpgsv66zgns009paf2df6d"))))
|
2015-12-15 05:19:26 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(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")))
|
|
|
|
|
(zero? (system* "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "--with-modulesdir=" out
|
|
|
|
|
"/lib/ldb/modules")
|
|
|
|
|
"--bundled-libraries=NONE"))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; ldb.pc refers to all these.
|
|
|
|
|
`(("talloc" ,talloc)
|
|
|
|
|
("tdb" ,tdb)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("popt" ,popt)
|
|
|
|
|
("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 04:16:16 +01: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"))
|
|
|
|
|
(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"))
|
|
|
|
|
(libpcap (assoc-ref inputs "libpcap")))
|
|
|
|
|
(substitute* "pppd/Makefile.linux"
|
|
|
|
|
(("/usr/include/crypt\\.h")
|
|
|
|
|
(string-append libc "/include/crypt.h"))
|
|
|
|
|
(("/usr/include/pcap-bpf.h")
|
|
|
|
|
(string-append libpcap "/include/pcap-bpf.h")))))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libpcap" ,libpcap)))
|
|
|
|
|
(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))))
|