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>
|
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)
|
|
|
|
#:use-module (gnu packages popt)
|
|
|
|
#:use-module (gnu packages openldap)
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages libunwind)
|
|
|
|
#:use-module (gnu packages linux)
|
2013-12-15 23:27:56 +01:00
|
|
|
#:use-module (gnu packages elf)
|
2013-02-12 19:35:54 +01:00
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages python))
|
|
|
|
|
|
|
|
(define-public iniparser
|
|
|
|
(package
|
|
|
|
(name "iniparser")
|
|
|
|
(version "3.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://ndevilla.free.fr/iniparser/iniparser-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1igmxzcy0s25zcy9vmcw0kd13lh60r0b4qg8lnp1jic33f427pxf"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases (alist-replace
|
|
|
|
'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(substitute* "Makefile"
|
|
|
|
(("/usr/lib")
|
|
|
|
(string-append (assoc-ref outputs "out") "/lib"))))
|
|
|
|
(alist-replace
|
|
|
|
'build
|
|
|
|
(lambda _
|
|
|
|
(and (zero? (system* "make" "libiniparser.so"))
|
|
|
|
(symlink "libiniparser.so.0" "libiniparser.so")))
|
|
|
|
(alist-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"))))
|
|
|
|
%standard-phases)))))
|
|
|
|
(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")
|
2015-02-26 08:01:29 +01:00
|
|
|
(version "3.6.25")
|
2013-02-12 19:35:54 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2015-02-26 08:01:29 +01:00
|
|
|
(uri (string-append "https://www.samba.org/samba/ftp/stable/samba-"
|
2013-02-12 19:35:54 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-02-26 08:01:29 +01:00
|
|
|
"0l9pz2m67vf398q3c2dwn8jwdxsjb20igncf4byhv6yq5dzqlb4g"))))
|
2013-02-12 19:35:54 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2015-04-10 10:34:04 +02:00
|
|
|
`(#:phases (alist-cons-before
|
2013-02-15 22:04:51 +01:00
|
|
|
'configure 'chdir
|
|
|
|
(lambda _
|
|
|
|
(chdir "source3"))
|
|
|
|
(alist-cons-after
|
|
|
|
'strip 'add-lib-to-runpath
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(lib (string-append out "/lib")))
|
2015-03-10 19:37:57 +01:00
|
|
|
;; Add LIB to the RUNPATH of all the executables and
|
|
|
|
;; dynamic libraries.
|
2013-02-15 22:04:51 +01:00
|
|
|
(with-directory-excursion out
|
|
|
|
(for-each (cut augment-rpath <> lib)
|
|
|
|
(append (find-files "bin" ".*")
|
2015-03-10 19:37:57 +01:00
|
|
|
(find-files "sbin" ".*")
|
|
|
|
(find-files "lib" ".*"))))))
|
2013-02-15 22:04:51 +01:00
|
|
|
%standard-phases))
|
|
|
|
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
2013-05-08 23:24:05 +02:00
|
|
|
(guix build rpath)
|
2013-02-15 22:04:51 +01:00
|
|
|
(srfi srfi-26))
|
2015-04-10 10:34:04 +02:00
|
|
|
#:imported-modules (,@%gnu-build-system-modules
|
2013-05-08 23:24:05 +02:00
|
|
|
(guix build rpath))
|
2013-02-12 19:35:54 +01:00
|
|
|
|
|
|
|
;; This flag is required to allow for "make test".
|
|
|
|
#:configure-flags '("--enable-socket-wrapper")
|
|
|
|
|
|
|
|
#:test-target "test"
|
|
|
|
|
|
|
|
;; 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
|
|
|
|
`(;; ("cups" ,cups)
|
|
|
|
("acl" ,acl)
|
|
|
|
;; ("gamin" ,gamin)
|
|
|
|
("libunwind" ,libunwind)
|
|
|
|
("iniparser" ,iniparser)
|
|
|
|
("popt" ,popt)
|
|
|
|
("openldap" ,openldap)
|
|
|
|
("linux-pam" ,linux-pam)
|
2013-02-15 22:04:51 +01:00
|
|
|
("readline" ,readline)
|
2013-05-08 23:24:05 +02:00
|
|
|
("patchelf" ,patchelf))) ; for (guix build rpath)
|
2013-02-12 19:35:54 +01:00
|
|
|
(native-inputs ; for the test suite
|
|
|
|
`(("perl" ,perl)
|
gnu: python: Replace input python by python-wrapper.
* gnu/packages/{gdb.scm (gdb), cryptsetup.scm (cryptsetup),
ghostscript.scm (ghostscript), glib.scm (glib), gnupg.scm (pius),
gtk.scm (cairo, harfbuzz), libevent.scm (libevent), netpbm.scm (netpbm),
oggvorbis.scm (libkate), qemu.scm (qemu), samba.scm (samba),
texlive.scm (rubber, texlive), version-control.scm (subversion),
xml.scm (libxml2, libxslt), xorg.scm (libxcb, mesa, xcb-proto, xorg-server),
yasm.scm (yasm), zip.scm (zziplib)}:
Replace input python by python-wrapper.
2013-09-03 22:18:39 +02:00
|
|
|
("python" ,python-wrapper)))
|
2013-02-12 19:35:54 +01:00
|
|
|
(home-page "http://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 gpl3+)))
|
2014-04-06 18:25:57 +02:00
|
|
|
|
|
|
|
(define-public talloc
|
|
|
|
(package
|
|
|
|
(name "talloc")
|
2015-06-12 06:01:26 +02:00
|
|
|
(version "2.1.2")
|
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
|
2015-06-12 06:01:26 +02:00
|
|
|
"13c365f7y8idjf2v1jxdjpkc3lxdmsxxfxjx1ymianm7zjiph393"))))
|
2014-04-06 18:25:57 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases (alist-replace
|
|
|
|
'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; 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)))))
|
|
|
|
%standard-phases)))
|
|
|
|
(inputs
|
|
|
|
`(("python" ,python-2)))
|
|
|
|
(home-page "http://talloc.samba.org")
|
|
|
|
(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.
|