Commit | Line | Data |
---|---|---|
a40f1543 | 1 | ;;; GNU Guix --- Functional package management for GNU |
602db62c | 2 | ;;; Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
baece08a | 3 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
d177ac2d | 4 | ;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il> |
c4514744 | 5 | ;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org> |
b4dcfce5 | 6 | ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be> |
dfe5beb2 | 7 | ;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com> |
1a0a4a69 | 8 | ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
2b61cd37 | 9 | ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net> |
bcf66fc2 | 10 | ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com> |
a40f1543 LC |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages samba) | |
28 | #:use-module (guix packages) | |
29 | #:use-module (guix download) | |
d177ac2d | 30 | #:use-module (guix git-download) |
a40f1543 LC |
31 | #:use-module (guix build-system gnu) |
32 | #:use-module (guix licenses) | |
602db62c | 33 | #:use-module (guix utils) |
a40f1543 | 34 | #:use-module (gnu packages acl) |
ae916e02 | 35 | #:use-module (gnu packages admin) |
b4dcfce5 | 36 | #:use-module (gnu packages autotools) |
44eff75e | 37 | #:use-module (gnu packages backup) |
966c56f8 | 38 | #:use-module (gnu packages base) |
fbed1501 | 39 | #:use-module (gnu packages check) |
b4dcfce5 | 40 | #:use-module (gnu packages crypto) |
710964d1 | 41 | #:use-module (gnu packages cups) |
52513595 | 42 | #:use-module (gnu packages databases) |
cb1e0cfc | 43 | #:use-module (gnu packages docbook) |
44eff75e | 44 | #:use-module (gnu packages gnupg) |
b4dcfce5 | 45 | #:use-module (gnu packages kerberos) |
a40f1543 | 46 | #:use-module (gnu packages linux) |
2f15e0a1 | 47 | #:use-module (gnu packages onc-rpc) |
17074cae | 48 | #:use-module (gnu packages openldap) |
a40f1543 | 49 | #:use-module (gnu packages perl) |
17074cae MB |
50 | #:use-module (gnu packages pkg-config) |
51 | #:use-module (gnu packages popt) | |
cb1e0cfc | 52 | #:use-module (gnu packages python) |
17074cae MB |
53 | #:use-module (gnu packages readline) |
54 | #:use-module (gnu packages tls) | |
44eff75e | 55 | #:use-module (gnu packages web) |
cb1e0cfc | 56 | #:use-module (gnu packages xml)) |
a40f1543 | 57 | |
b4dcfce5 TD |
58 | (define-public cifs-utils |
59 | (package | |
60 | (name "cifs-utils") | |
b0a46bcc | 61 | (version "6.10") |
b4dcfce5 TD |
62 | (source |
63 | (origin | |
64 | (method url-fetch) | |
65 | (uri (string-append "https://download.samba.org/pub/linux-cifs/" | |
1a0a4a69 | 66 | "cifs-utils/cifs-utils-" version ".tar.bz2")) |
b4dcfce5 | 67 | (sha256 (base32 |
b0a46bcc | 68 | "19q4b5bzlxhn1hpi843xrp6f50d33w7m0rs26krkg5h3x742kz4j")))) |
b4dcfce5 TD |
69 | (build-system gnu-build-system) |
70 | (native-inputs | |
71 | `(("autoconf" ,autoconf) | |
72 | ("automake" ,automake) | |
73 | ("pkg-config" ,pkg-config))) | |
74 | (inputs | |
75 | `(("keytuils" ,keyutils) | |
76 | ("linux-pam" ,linux-pam) | |
77 | ("libcap-ng" ,libcap-ng) | |
78 | ("mit-krb5" ,mit-krb5) | |
79 | ("samba" ,samba) | |
80 | ("talloc" ,talloc))) | |
81 | (arguments | |
82 | `(#:phases | |
83 | (modify-phases %standard-phases | |
b0a46bcc TGR |
84 | (replace 'bootstrap |
85 | ;; Force a bootstrap to fix a ‘cannot find install-sh, install.sh, | |
86 | ;; or shtool’ error since version 6.10. | |
87 | (lambda _ | |
88 | (invoke "autoreconf" "-vfi") | |
89 | #t)) | |
b4dcfce5 | 90 | (add-before 'configure 'set-root-sbin |
7927a0d9 | 91 | (lambda* (#:key outputs #:allow-other-keys) |
89ab360e | 92 | ;; Don't try to install into "/sbin". |
b4dcfce5 | 93 | (setenv "ROOTSBINDIR" |
7927a0d9 | 94 | (string-append (assoc-ref outputs "out") "/sbin")) |
b0a46bcc TGR |
95 | #t)) |
96 | (add-before 'install 'create-man8dir | |
97 | ;; Create a directory that isn't created since version 6.10. | |
98 | (lambda* (#:key outputs #:allow-other-keys) | |
99 | (let ((out (assoc-ref outputs "out"))) | |
100 | (mkdir-p (string-append out "/share/man/man8")) | |
101 | #t)))))) | |
b4dcfce5 TD |
102 | (synopsis "User-space utilities for Linux CIFS (Samba) mounts") |
103 | (description "@code{cifs-utils} is a set of user-space utilities for | |
104 | mounting and managing @dfn{Common Internet File System} (CIFS) shares using | |
105 | the Linux kernel CIFS client.") | |
106 | (home-page "https://wiki.samba.org/index.php/LinuxCIFS_utils") | |
107 | ;; cifs-utils is licensed as GPL3 or later, but 3 files contain LGPL code. | |
108 | (license gpl3+))) | |
109 | ||
a40f1543 LC |
110 | (define-public iniparser |
111 | (package | |
112 | (name "iniparser") | |
a9691718 | 113 | (version "4.1") |
a40f1543 | 114 | (source (origin |
d177ac2d EF |
115 | (method git-fetch) |
116 | (uri (git-reference | |
117 | (url "https://github.com/ndevilla/iniparser") | |
118 | (commit (string-append "v" version)))) | |
119 | (file-name (git-file-name name version)) | |
a40f1543 LC |
120 | (sha256 |
121 | (base32 | |
d177ac2d | 122 | "0dhab6pad6wh816lr7r3jb6z273njlgw2vpw8kcfnmi7ijaqhnr5")))) |
a40f1543 LC |
123 | (build-system gnu-build-system) |
124 | (arguments | |
cf52c925 TGR |
125 | `(#:make-flags |
126 | (list "CC=gcc") | |
127 | #:phases | |
2af56bfa EF |
128 | (modify-phases %standard-phases |
129 | (replace 'configure | |
130 | (lambda* (#:key outputs #:allow-other-keys) | |
131 | (substitute* '("Makefile" "test/Makefile") | |
132 | (("/usr/lib") | |
444173f2 MW |
133 | (string-append (assoc-ref outputs "out") "/lib"))) |
134 | #t)) | |
2af56bfa | 135 | (replace 'build |
cf52c925 | 136 | (lambda* (#:key make-flags #:allow-other-keys) |
a9691718 | 137 | (apply invoke "make" "libiniparser.so.1" |
cf52c925 | 138 | make-flags))) |
2af56bfa EF |
139 | (replace 'install |
140 | (lambda* (#:key outputs #:allow-other-keys) | |
141 | (let* ((out (assoc-ref outputs "out")) | |
142 | (lib (string-append out "/lib")) | |
143 | (inc (string-append out "/include")) | |
33fa13ea | 144 | (doc (string-append out "/share/doc/" ,name)) |
2af56bfa | 145 | (html (string-append doc "/html"))) |
fa5e6618 | 146 | (define (install dir) |
2af56bfa | 147 | (lambda (file) |
fa5e6618 TGR |
148 | (install-file file dir))) |
149 | (for-each (install lib) | |
150 | (find-files "." "^lib.*\\.so")) | |
2af56bfa | 151 | (with-directory-excursion lib |
a9691718 | 152 | (symlink "libiniparser.so.1" "libiniparser.so")) |
fa5e6618 | 153 | (for-each (install inc) |
2af56bfa | 154 | (find-files "src" "\\.h$")) |
fa5e6618 | 155 | (for-each (install html) |
2af56bfa | 156 | (find-files "html" ".*")) |
fa5e6618 | 157 | (for-each (install doc) |
444173f2 MW |
158 | '("AUTHORS" "INSTALL" "LICENSE" "README.md")) |
159 | #t)))))) | |
a9691718 | 160 | (home-page "https://github.com/ndevilla/iniparser") |
a40f1543 LC |
161 | (synopsis "Standalone ini file parsing library") |
162 | (description | |
36a4366d | 163 | "iniparser is a free stand-alone @code{ini} file parsing library (Windows |
a40f1543 LC |
164 | configuration files). It is written in portable ANSI C and should compile |
165 | anywhere.") | |
166 | (license x11))) | |
167 | ||
168 | (define-public samba | |
169 | (package | |
170 | (name "samba") | |
bd39fcdf | 171 | (version "4.11.6") |
a40f1543 LC |
172 | (source (origin |
173 | (method url-fetch) | |
31c6bfed EF |
174 | (uri (string-append "https://download.samba.org/pub/samba/stable/" |
175 | "samba-" version ".tar.gz")) | |
a40f1543 LC |
176 | (sha256 |
177 | (base32 | |
bd39fcdf | 178 | "0f7g17zw4nzk1bjnqqrr84hkyq9vn0k7zyim2i177xkigd6qyhwi")))) |
a40f1543 LC |
179 | (build-system gnu-build-system) |
180 | (arguments | |
cb1e0cfc | 181 | `(#:phases |
710964d1 | 182 | (modify-phases %standard-phases |
cb1e0cfc MB |
183 | (add-before 'configure 'locate-docbook-stylesheets |
184 | (lambda* (#:key inputs #:allow-other-keys) | |
185 | ;; XXX for some reason XML_CATALOG_FILES is not respected. | |
186 | (substitute* '("buildtools/wafsamba/samba_conftests.py" | |
187 | "buildtools/wafsamba/wafsamba.py" | |
188 | "docs-xml/xslt/man.xsl") | |
189 | (("http://docbook.sourceforge.net/release/xsl/current/") | |
190 | (string-append (assoc-ref inputs "docbook-xsl") | |
191 | "/xml/xsl/docbook-xsl-" | |
192 | ,(package-version docbook-xsl) "/"))) | |
193 | #t)) | |
710964d1 SB |
194 | (replace 'configure |
195 | ;; samba uses a custom configuration script that runs waf. | |
196 | (lambda* (#:key outputs #:allow-other-keys) | |
197 | (let* ((out (assoc-ref outputs "out")) | |
198 | (libdir (string-append out "/lib"))) | |
6ac59f45 | 199 | (invoke "./configure" |
710964d1 SB |
200 | "--enable-fhs" |
201 | ;; XXX: heimdal not packaged. | |
202 | "--bundled-libraries=com_err" | |
203 | (string-append "--prefix=" out) | |
c8c14704 | 204 | "--sysconfdir=/etc" |
710964d1 SB |
205 | ;; Install public and private libraries into |
206 | ;; a single directory to avoid RPATH issues. | |
207 | (string-append "--libdir=" libdir) | |
6ac59f45 | 208 | (string-append "--with-privatelibdir=" libdir))))) |
c8c14704 | 209 | (add-before 'install 'disable-etc-samba-directory-creation |
c4514744 AFN |
210 | (lambda _ |
211 | (substitute* "dynconfig/wscript" | |
2ea806f0 MB |
212 | (("bld\\.INSTALL_DIR\\(\"\\$\\{CONFIGDIR\\}\"\\)") |
213 | "")) | |
c8c14704 | 214 | #t))) |
a40f1543 LC |
215 | ;; XXX: The test infrastructure attempts to set password with |
216 | ;; smbpasswd, which fails with "smbpasswd -L can only be used by root." | |
217 | ;; So disable tests until there's a workaround. | |
218 | #:tests? #f)) | |
219 | (inputs ; TODO: Add missing dependencies | |
710964d1 SB |
220 | `(("acl" ,acl) |
221 | ("cups" ,cups) | |
a40f1543 | 222 | ;; ("gamin" ,gamin) |
44eff75e | 223 | ("gpgme" ,gpgme) |
710964d1 | 224 | ("gnutls" ,gnutls) |
a40f1543 | 225 | ("iniparser" ,iniparser) |
44eff75e | 226 | ("jansson" ,jansson) |
710964d1 | 227 | ("libaio" ,libaio) |
44eff75e | 228 | ("libarchive" ,libarchive) |
a40f1543 | 229 | ("linux-pam" ,linux-pam) |
44eff75e | 230 | ("lmdb" ,lmdb) |
710964d1 SB |
231 | ("openldap" ,openldap) |
232 | ("popt" ,popt) | |
3665b4dc | 233 | ("readline" ,readline) |
710964d1 | 234 | ("tdb" ,tdb))) |
470771c5 MB |
235 | (propagated-inputs |
236 | ;; In Requires or Requires.private of pkg-config files. | |
237 | `(("ldb" ,ldb) | |
238 | ("talloc" ,talloc) | |
239 | ("tevent" ,tevent))) | |
710964d1 | 240 | (native-inputs |
cb1e0cfc MB |
241 | `(("docbook-xsl" ,docbook-xsl) ;for generating manpages |
242 | ("xsltproc" ,libxslt) ;ditto | |
2f15e0a1 | 243 | ("rpcsvc-proto" ,rpcsvc-proto) ;for 'rpcgen' |
cb1e0cfc | 244 | ("perl" ,perl) |
710964d1 | 245 | ("pkg-config" ,pkg-config) |
bcf66fc2 | 246 | ("python" ,python))) |
8b21d22d | 247 | (home-page "https://www.samba.org/") |
a40f1543 LC |
248 | (synopsis |
249 | "The standard Windows interoperability suite of programs for GNU and Unix") | |
250 | (description | |
251 | "Since 1992, Samba has provided secure, stable and fast file and print | |
252 | services for all clients using the SMB/CIFS protocol, such as all versions of | |
253 | DOS and Windows, OS/2, GNU/Linux and many others. | |
254 | ||
255 | Samba is an important component to seamlessly integrate Linux/Unix Servers and | |
256 | Desktops into Active Directory environments using the winbind daemon.") | |
257 | (license gpl3+))) | |
1790739c DT |
258 | |
259 | (define-public talloc | |
260 | (package | |
261 | (name "talloc") | |
e2263e31 | 262 | (version "2.3.1") |
1790739c DT |
263 | (source (origin |
264 | (method url-fetch) | |
01e64ef5 | 265 | (uri (string-append "https://www.samba.org/ftp/talloc/talloc-" |
1790739c DT |
266 | version ".tar.gz")) |
267 | (sha256 | |
268 | (base32 | |
e2263e31 | 269 | "0xwzgzrqamfdlklwacp9d219pqkah0yfrhxb1j7bxlmgzp924j7g")))) |
1790739c DT |
270 | (build-system gnu-build-system) |
271 | (arguments | |
960ae0cd SB |
272 | '(#:phases |
273 | (modify-phases %standard-phases | |
274 | (replace 'configure | |
275 | (lambda* (#:key outputs #:allow-other-keys) | |
adbfc6b9 TGR |
276 | ;; talloc uses a custom configuration script that runs a Python |
277 | ;; script called 'waf', and doesn't tolerate unknown options. | |
960ae0cd SB |
278 | (setenv "CONFIG_SHELL" (which "sh")) |
279 | (let ((out (assoc-ref outputs "out"))) | |
adbfc6b9 TGR |
280 | (invoke "./configure" |
281 | (string-append "--prefix=" out)))))))) | |
966c56f8 MB |
282 | (native-inputs |
283 | `(("which" ,which))) | |
1790739c | 284 | (inputs |
966c56f8 | 285 | `(("python" ,python))) |
2e200ee8 | 286 | (home-page "https://talloc.samba.org") |
1790739c DT |
287 | (synopsis "Hierarchical, reference counted memory pool system") |
288 | (description | |
289 | "Talloc is a hierarchical, reference counted memory pool system with | |
290 | destructors. It is the core memory allocator used in Samba.") | |
291 | (license gpl3+))) ;; The bundled "replace" library uses LGPL3. | |
ae916e02 | 292 | |
602db62c LC |
293 | (define-public talloc/static |
294 | (package | |
295 | (inherit talloc) | |
296 | (name "talloc-static") | |
297 | (synopsis | |
298 | "Hierarchical, reference counted memory pool system (static library)") | |
299 | (arguments | |
300 | (substitute-keyword-arguments (package-arguments talloc) | |
301 | ((#:phases phases) | |
302 | ;; Since Waf, the build system talloc uses, apparently does not | |
303 | ;; support building static libraries from a ./configure flag, roll our | |
304 | ;; own build process. No need to be ashamed, we're not the only ones | |
305 | ;; doing that: | |
306 | ;; <https://github.com/proot-me/proot-static-build/blob/master/GNUmakefile>. | |
307 | ;; :-) | |
308 | `(modify-phases ,phases | |
309 | (replace 'build | |
310 | (lambda _ | |
d83c52c6 | 311 | (invoke "gcc" "-c" "-Ibin/default" "-I" "lib/replace" |
966c56f8 MB |
312 | "-I." "-Wall" "-g" "-D__STDC_WANT_LIB_EXT1__=1" |
313 | "talloc.c") | |
d83c52c6 | 314 | (invoke "ar" "rc" "libtalloc.a" "talloc.o"))) |
602db62c LC |
315 | (replace 'install |
316 | (lambda* (#:key outputs #:allow-other-keys) | |
317 | (let* ((out (assoc-ref outputs "out")) | |
318 | (lib (string-append out "/lib")) | |
319 | (include (string-append out "/include"))) | |
320 | (mkdir-p lib) | |
321 | (install-file "libtalloc.a" lib) | |
322 | (install-file "talloc.h" include) | |
323 | #t))) | |
324 | (delete 'check))))))) ;XXX: tests rely on Python modules | |
325 | ||
0674b3c9 SB |
326 | (define-public tevent |
327 | (package | |
328 | (name "tevent") | |
293454f2 | 329 | (version "0.10.2") |
0674b3c9 SB |
330 | (source (origin |
331 | (method url-fetch) | |
332 | (uri (string-append "https://www.samba.org/ftp/tevent/tevent-" | |
333 | version ".tar.gz")) | |
334 | (sha256 | |
335 | (base32 | |
293454f2 | 336 | "15k6i8ad5lpxfjsjyq9h64zlyws8d3cm0vwdnaw8z1xjwli7hhpq")))) |
0674b3c9 SB |
337 | (build-system gnu-build-system) |
338 | (arguments | |
339 | '(#:phases | |
340 | (modify-phases %standard-phases | |
341 | (replace 'configure | |
342 | ;; tevent uses a custom configuration script that runs waf. | |
343 | (lambda* (#:key outputs #:allow-other-keys) | |
344 | (let ((out (assoc-ref outputs "out"))) | |
ed0d6ed9 RW |
345 | (invoke "./configure" |
346 | (string-append "--prefix=" out) | |
347 | "--bundled-libraries=NONE"))))))) | |
0674b3c9 SB |
348 | (native-inputs |
349 | `(("pkg-config" ,pkg-config) | |
1ca20daa MB |
350 | ("python" ,python) |
351 | ("which" ,which))) | |
0674b3c9 SB |
352 | (propagated-inputs |
353 | `(("talloc" ,talloc))) ; required by tevent.pc | |
354 | (synopsis "Event system library") | |
355 | (home-page "https://tevent.samba.org/") | |
356 | (description | |
357 | "Tevent is an event system based on the talloc memory management library. | |
358 | It is the core event system used in Samba. The low level tevent has support for | |
359 | many event types, including timers, signals, and the classic file descriptor events.") | |
360 | (license lgpl3+))) | |
361 | ||
52513595 SB |
362 | (define-public ldb |
363 | (package | |
364 | (name "ldb") | |
7152a714 | 365 | (version "1.5.6") |
52513595 SB |
366 | (source (origin |
367 | (method url-fetch) | |
368 | (uri (string-append "https://www.samba.org/ftp/ldb/ldb-" | |
369 | version ".tar.gz")) | |
370 | (sha256 | |
371 | (base32 | |
7152a714 | 372 | "0nwpkqidsna4yz3vhjzzadm4hpviwnyk80yml8ay82gi1d6lg0pz")) |
21a21c20 MB |
373 | (modules '((guix build utils))) |
374 | (snippet | |
375 | '(begin | |
376 | (for-each (lambda (file) | |
377 | ;; Delete everything except the build tools. | |
378 | (unless (or (string-prefix? "third_party/waf" file) | |
379 | (string-suffix? "wscript" file)) | |
380 | (delete-file file))) | |
381 | (find-files "third_party")) | |
382 | #t)))) | |
52513595 SB |
383 | (build-system gnu-build-system) |
384 | (arguments | |
3d53869e MB |
385 | '(;; LMDB is only supported on 64-bit systems, yet the test suite |
386 | ;; requires it. | |
387 | #:tests? (assoc-ref %build-inputs "lmdb") | |
388 | #:phases | |
52513595 SB |
389 | (modify-phases %standard-phases |
390 | (replace 'configure | |
391 | ;; ldb use a custom configuration script that runs waf. | |
392 | (lambda* (#:key outputs #:allow-other-keys) | |
393 | (let ((out (assoc-ref outputs "out"))) | |
5b848463 RW |
394 | (invoke "./configure" |
395 | (string-append "--prefix=" out) | |
396 | (string-append "--with-modulesdir=" out | |
397 | "/lib/ldb/modules") | |
398 | "--bundled-libraries=NONE"))))))) | |
52513595 | 399 | (native-inputs |
fbed1501 MB |
400 | `(("cmocka" ,cmocka) |
401 | ("pkg-config" ,pkg-config) | |
4422a8c6 MB |
402 | ("python" ,python) |
403 | ("which" ,which))) | |
52513595 SB |
404 | (propagated-inputs |
405 | ;; ldb.pc refers to all these. | |
406 | `(("talloc" ,talloc) | |
407 | ("tdb" ,tdb))) | |
408 | (inputs | |
3d53869e MB |
409 | `(,@(if (target-64bit?) |
410 | `(("lmdb" ,lmdb)) | |
411 | '()) | |
bdf16125 | 412 | ("popt" ,popt) |
52513595 SB |
413 | ("tevent" ,tevent))) |
414 | (synopsis "LDAP-like embedded database") | |
415 | (home-page "https://ldb.samba.org/") | |
416 | (description | |
417 | "Ldb is a LDAP-like embedded database built on top of TDB. What ldb does | |
418 | is provide a fast database with an LDAP-like API designed to be used within an | |
419 | application. In some ways it can be seen as a intermediate solution between | |
420 | key-value pair databases and a real LDAP database.") | |
421 | (license lgpl3+))) | |
422 | ||
ae916e02 SB |
423 | (define-public ppp |
424 | (package | |
425 | (name "ppp") | |
dfe5beb2 | 426 | (version "2.4.8") |
ae916e02 | 427 | (source (origin |
dfe5beb2 MB |
428 | (method git-fetch) |
429 | (uri (git-reference | |
430 | (url "https://github.com/paulusmack/ppp") | |
431 | (commit (string-append "ppp-" version)))) | |
432 | (file-name (git-file-name name version)) | |
ae916e02 SB |
433 | (sha256 |
434 | (base32 | |
dfe5beb2 | 435 | "1i88m79h6g3fzsb4yw3k8bq1grsx3hsyawm7id2vcaab0gfqzjjv")))) |
ae916e02 SB |
436 | (build-system gnu-build-system) |
437 | (arguments | |
438 | '(#:tests? #f ; no check target | |
439 | #:make-flags '("CC=gcc") | |
440 | #:phases | |
441 | (modify-phases %standard-phases | |
442 | (add-before 'configure 'patch-Makefile | |
443 | (lambda* (#:key inputs #:allow-other-keys) | |
444 | (let ((libc (assoc-ref inputs "libc")) | |
65a58f39 | 445 | (openssl (assoc-ref inputs "openssl")) |
ae916e02 SB |
446 | (libpcap (assoc-ref inputs "libpcap"))) |
447 | (substitute* "pppd/Makefile.linux" | |
448 | (("/usr/include/crypt\\.h") | |
449 | (string-append libc "/include/crypt.h")) | |
65a58f39 MB |
450 | (("/usr/include/openssl") |
451 | (string-append openssl "/include/openssl")) | |
ae916e02 | 452 | (("/usr/include/pcap-bpf.h") |
cbd7c657 MB |
453 | (string-append libpcap "/include/pcap-bpf.h"))) |
454 | #t)))))) | |
ae916e02 | 455 | (inputs |
65a58f39 MB |
456 | `(("libpcap" ,libpcap) |
457 | ("openssl" ,(@ (gnu packages tls) openssl)))) | |
ae916e02 SB |
458 | (synopsis "Implementation of the Point-to-Point Protocol") |
459 | (home-page "https://ppp.samba.org/") | |
460 | (description | |
461 | "The Point-to-Point Protocol (PPP) provides a standard way to establish | |
462 | a network connection over a serial link. At present, this package supports IP | |
463 | and IPV6 and the protocols layered above them, such as TCP and UDP.") | |
464 | ;; pppd, pppstats and pppdump are under BSD-style notices. | |
465 | ;; some of the pppd plugins are GPL'd. | |
466 | ;; chat is public domain. | |
467 | (license (list bsd-3 bsd-4 gpl2+ public-domain)))) |