mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
rewrite of multiple .scm
This commit is contained in:
commit
230759ae42
4 changed files with 315 additions and 498 deletions
|
@ -16,23 +16,17 @@
|
|||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (glicid packages python)
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
(define-public shadow
|
||||
(package
|
||||
(inherit gnu:shadow)
|
||||
(name "shadow")
|
||||
(version "4.11.1")
|
||||
(version "4.13")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (list
|
||||
(string-append "https://github.com/shadow-maint/shadow/releases/download/v" version "/shadow-" version ".tar.xz")
|
||||
))
|
||||
(sha256 (base32 "15bwf2krh4crj4w2frkzw9pkxiwbq7h56m8wk8w5zbmjb3797w21"))
|
||||
))
|
||||
)
|
||||
)
|
||||
(uri (list (string-append "https://github.com/shadow-maint/shadow/releases/download/v" version "/shadow-" version ".tar.xz")))
|
||||
(sha256 (base32 "0b6xz415b4y3y5nk3pw9xibv05kln4cjbmhybyncmrx2g5fj9zls"))))))
|
||||
|
||||
(define-public sudo
|
||||
(let* ((sudo-minimal gnu:sudo))
|
||||
|
@ -63,11 +57,8 @@
|
|||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri name version))
|
||||
(sha256 (base32 "09im4w38bm36arjxmi0jbdrmv6cgnjq4b5ks4kawhicdbb0rzynm"))
|
||||
))
|
||||
(propagated-inputs (list ansible-core))
|
||||
)
|
||||
)
|
||||
(sha256 (base32 "09im4w38bm36arjxmi0jbdrmv6cgnjq4b5ks4kawhicdbb0rzynm"))))
|
||||
(propagated-inputs (list ansible-core))))
|
||||
|
||||
(define-public ansible-core
|
||||
(package
|
||||
|
@ -77,16 +68,10 @@
|
|||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri name version))
|
||||
(sha256 (base32 "120rrpj8pqscdf2llipxxvpmg4fxqr3s0vx32f6hq77z60jh9igf"))
|
||||
))
|
||||
(sha256 (base32 "120rrpj8pqscdf2llipxxvpmg4fxqr3s0vx32f6hq77z60jh9igf"))))
|
||||
(arguments
|
||||
`(
|
||||
#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'sanity-check)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(delete 'sanity-check))))))
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
#:use-module (gnu packages perl)
|
||||
#:use-module (gnu packages python)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages tls)
|
||||
)
|
||||
#:use-module (gnu packages tls))
|
||||
|
||||
(define-public openldap
|
||||
(package
|
||||
|
@ -28,12 +27,8 @@
|
|||
(version "2.6.3")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (list
|
||||
(string-append "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-" version ".tgz")
|
||||
))
|
||||
(sha256 (base32 "0ihddk8c6hg9lkjv0wk0w13g8kb75r8dfsn1n6b77mzk3pbs38nj"))
|
||||
)
|
||||
)
|
||||
(uri (list (string-append "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-" version ".tgz")))
|
||||
(sha256 (base32 "0ihddk8c6hg9lkjv0wk0w13g8kb75r8dfsn1n6b77mzk3pbs38nj"))))
|
||||
(build-system gnu-build-system)
|
||||
(inputs (list argon2 cyrus-sasl libevent libgcrypt libltdl lz4 openssl perl snappy unixodbc wiredtiger zlib))
|
||||
(native-inputs (list bdb groff libtool pkg-config))
|
||||
|
@ -67,17 +62,11 @@
|
|||
#:phases (modify-phases %standard-phases
|
||||
(add-before 'build 'make-depend
|
||||
(lambda* (#:key input #:allow-other-keys)
|
||||
(invoke "make" "depend")
|
||||
)
|
||||
)
|
||||
)
|
||||
))
|
||||
(invoke "make" "depend"))))))
|
||||
(synopsis "Implementation of the Lightweight Directory Access Protocol")
|
||||
(description "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.")
|
||||
(license license:openldap2.8)
|
||||
(home-page "https://www.openldap.org/")
|
||||
)
|
||||
)
|
||||
(home-page "https://www.openldap.org/")))
|
||||
|
||||
(define-public openldap-2.4.59
|
||||
(package
|
||||
|
@ -86,14 +75,8 @@
|
|||
(version "2.4.59")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (list
|
||||
(string-append "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-" version ".tgz")
|
||||
))
|
||||
(sha256 (base32 "0d1gw898gbkv46mw0gll3q0w2j2y9midlzh6f320d0nq8xkpvwwr"))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(uri (list (string-append "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-" version ".tgz")))
|
||||
(sha256 (base32 "0d1gw898gbkv46mw0gll3q0w2j2y9midlzh6f320d0nq8xkpvwwr"))))))
|
||||
|
||||
(define-public openldap-2.5.13
|
||||
(package
|
||||
|
@ -102,14 +85,8 @@
|
|||
(version "2.5.13")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (list
|
||||
(string-append "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-" version ".tgz")
|
||||
))
|
||||
(sha256 (base32 "13007pv1vpp31dvnf9xzzcknqv9p75rqq412nrbprf7p9q646g7f"))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(uri (list (string-append "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-" version ".tgz")))
|
||||
(sha256 (base32 "13007pv1vpp31dvnf9xzzcknqv9p75rqq412nrbprf7p9q646g7f"))))))
|
||||
|
||||
(define-public nss-pam-ldapd
|
||||
(package
|
||||
|
@ -118,16 +95,14 @@
|
|||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-" version ".tar.gz"))
|
||||
(sha256 (base32 "050fzcmxmf6y15dlcffc4gxr3wkk7fliqqwhlwqzbjwk8vkn3mn6"))
|
||||
))
|
||||
(sha256 (base32 "050fzcmxmf6y15dlcffc4gxr3wkk7fliqqwhlwqzbjwk8vkn3mn6"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(
|
||||
#:configure-flags
|
||||
(list (string-append
|
||||
"--with-pam-seclib-dir=" (assoc-ref %outputs "out") "/lib/security/")
|
||||
"--with-ldap-conf-file=/etc/nslcd.conf"
|
||||
)
|
||||
"--with-ldap-conf-file=/etc/nslcd.conf" )
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'override-nslcd.conf-install-path
|
||||
|
@ -135,28 +110,18 @@
|
|||
(substitute* "Makefile.in"
|
||||
(
|
||||
("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)")
|
||||
(string-append (assoc-ref outputs "out") "/etc/nslcd.conf.example")
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(string-append (assoc-ref outputs "out") "/etc/nslcd.conf.example"))))))))
|
||||
(inputs `(
|
||||
("linux-pam", linux-pam)
|
||||
("mit-krb5", mit-krb5)
|
||||
("openldap", openldap)
|
||||
("python", python)
|
||||
))
|
||||
("python", python)))
|
||||
(home-page "https://arthurdejong.org/nss-pam-ldapd")
|
||||
(synopsis "NSS and PAM modules for LDAP")
|
||||
(description "nss-pam-ldapd provides a @dfn{Name Service Switch} (NSS)
|
||||
module that allows your LDAP server to provide user account, group, host name,
|
||||
alias, netgroup, and basically any other information that you would normally
|
||||
get from @file{/etc} flat files or NIS. It also provides a @dfn{Pluggable
|
||||
Authentication Module} (PAM) to do identity and authentication management with
|
||||
an LDAP server.")
|
||||
(license license:lgpl2.1+)
|
||||
)
|
||||
)
|
||||
module that allows your LDAP server to provide user account, group, host name,
|
||||
alias, netgroup, and basically any other information that you would normally
|
||||
get from @file{/etc} flat files or NIS. It also provides a @dfn{Pluggable
|
||||
Authentication Module} (PAM) to do identity and authentication management with
|
||||
an LDAP server.")
|
||||
(license license:lgpl2.1+)))
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages security-token)
|
||||
)
|
||||
)
|
||||
(define-public libcbor-0.8.0
|
||||
(package
|
||||
(name "libcbor")
|
||||
|
@ -21,22 +21,16 @@
|
|||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "http://github.com/PJK/libcbor/archive/refs/tags/v" version ".tar.gz"))
|
||||
(sha256 (base32 "12vw46ahhsc3ydnivkv5lvk1cn4sjjmcr639cjcl99d4dqb9g031"))
|
||||
)
|
||||
)
|
||||
(sha256 (base32 "12vw46ahhsc3ydnivkv5lvk1cn4sjjmcr639cjcl99d4dqb9g031"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags (list
|
||||
"-DCMAKE_CXX_FLAGS=-fPIE"
|
||||
"-DCMAKE_C_FLAGS=-fPIE"
|
||||
))
|
||||
)
|
||||
"-DCMAKE_C_FLAGS=-fPIE" )))
|
||||
(synopsis "libfido2")
|
||||
(description "Todo")
|
||||
(home-page "toto")
|
||||
(license license:gpl2+)
|
||||
)
|
||||
)
|
||||
(license license:gpl2+)))
|
||||
|
||||
(define-public libcbor-0.9.0
|
||||
(package
|
||||
|
@ -46,92 +40,29 @@
|
|||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "http://github.com/PJK/libcbor/archive/refs/tags/v" version ".tar.gz"))
|
||||
(sha256 (base32 "1l8m7h84zwlx088gkz6gvg2fq11g0p3q6lblwba8c01y6gwy90fs"))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(sha256 (base32 "1l8m7h84zwlx088gkz6gvg2fq11g0p3q6lblwba8c01y6gwy90fs"))))))
|
||||
|
||||
(define-public libcbor-latest libcbor-0.9.0)
|
||||
|
||||
;(define-public libfido2-1.8.0
|
||||
; (package
|
||||
; (name "libfido2")
|
||||
; (version "1.8.0")
|
||||
; (source
|
||||
; (origin
|
||||
; (method url-fetch)
|
||||
; (uri (string-append "https://developers.yubico.com/libfido2/Releases/libfido2-" version ".tar.gz"))
|
||||
; (sha256 (base32 "07gxyy5yzgfh5hg7q9fr77z5mkj0xjvd5ya7p5f5kar4iwc92hjm"))
|
||||
; )
|
||||
; )
|
||||
; (build-system cmake-build-system)
|
||||
; (arguments '(
|
||||
; #:tests? #f
|
||||
; ))
|
||||
; (inputs `(
|
||||
; ("libcbor",libcbor-latest)
|
||||
; ("openssl",openssl)
|
||||
; ("zlib", zlib)
|
||||
; ("pkg-config", pkg-config)
|
||||
; ("eudev", eudev)
|
||||
; ))
|
||||
; (synopsis "libfido2")
|
||||
; (description "Todo")
|
||||
; (home-page "toto")
|
||||
; (license license:gpl2+)
|
||||
; )
|
||||
;)
|
||||
|
||||
;(define-public libfido2-1.9.0
|
||||
; (package
|
||||
; (inherit libfido2-1.8.0)
|
||||
; (version "1.9.0")
|
||||
; (source
|
||||
; (origin
|
||||
; (method url-fetch)
|
||||
; (uri (string-append "https://developers.yubico.com/libfido2/Releases/libfido2-" version ".tar.gz"))
|
||||
; (sha256 (base32 "1ln2b0zfvl35r03kn2k1i2aw1k3ypvivc71xmp4dzlin6ypy6fds"))
|
||||
; )
|
||||
; )
|
||||
; )
|
||||
;)
|
||||
|
||||
;(define libfido2-latest libfido2-1.9.0)
|
||||
|
||||
(define-public openssh-with-fido2 ;; this is has to be worked again
|
||||
(package
|
||||
(inherit openssh)
|
||||
(name "openssh-with-fido2")
|
||||
(arguments `(
|
||||
#:test-target "tests"
|
||||
;; Otherwise, the test scripts try to use a nonexistent directory and
|
||||
;; fail.
|
||||
#:make-flags '("REGRESSTMP=\"$${BUILDDIR}/regress\"")
|
||||
#:configure-flags `(
|
||||
"--sysconfdir=/etc/ssh"
|
||||
;; Default value of 'PATH' used by sshd.
|
||||
"--with-default-path=/run/current-system/profile/bin"
|
||||
;; configure needs to find krb5-config.
|
||||
,(string-append "--with-kerberos5=" (assoc-ref %build-inputs "mit-krb5") "/bin")
|
||||
;; libedit is needed for sftp completion.
|
||||
"--with-libedit"
|
||||
;; for u2f
|
||||
"--with-security-key-builtin"
|
||||
;; Enable PAM support in sshd.
|
||||
,,@(if (hurd-target?)
|
||||
'()
|
||||
'("--with-pam")
|
||||
)
|
||||
;; "make install" runs "install -s" by default,
|
||||
;; which doesn't work for cross-compiled binaries
|
||||
;; because it invokes 'strip' instead of
|
||||
;; 'TRIPLET-strip'.Work around this.
|
||||
'("--with-pam"))
|
||||
,,@(if (%current-target-system)
|
||||
'("--disable-strip")
|
||||
'()
|
||||
)
|
||||
)
|
||||
'()))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'configure 'reset-/var/empty
|
||||
|
@ -141,41 +72,26 @@
|
|||
"Makefile"
|
||||
(("PRIVSEP_PATH=/var/empty") (string-append "PRIVSEP_PATH=" out "/var/empty"))
|
||||
)
|
||||
#t
|
||||
)
|
||||
)
|
||||
)
|
||||
#t )))
|
||||
(add-before 'check 'patch-tests
|
||||
(lambda _
|
||||
(substitute* "regress/test-exec.sh" (("/bin/sh") (which "sh")))
|
||||
;; Remove 't-exec' regress target which requires user 'sshd'.
|
||||
(substitute*
|
||||
(list "Makefile" "regress/Makefile")
|
||||
(("^(tests:.*) t-exec(.*)" all pre post) (string-append pre post))
|
||||
)
|
||||
#t
|
||||
)
|
||||
)
|
||||
(("^(tests:.*) t-exec(.*)" all pre post) (string-append pre post)))
|
||||
#t ))
|
||||
(replace 'install
|
||||
(lambda*
|
||||
(
|
||||
#:key outputs (make-flags '())
|
||||
#:allow-other-keys
|
||||
)
|
||||
;; Install without host keys and system configuration files.
|
||||
(apply invoke "make" "install-nosysconf" make-flags)
|
||||
(install-file "contrib/ssh-copy-id" (string-append (assoc-ref outputs "out") "/bin/"))
|
||||
(chmod (string-append (assoc-ref outputs "out") "/bin/ssh-copy-id") #o555)
|
||||
(install-file "contrib/ssh-copy-id.1" (string-append (assoc-ref outputs "out") "/share/man/man1/"))
|
||||
#t
|
||||
)
|
||||
)
|
||||
)
|
||||
))
|
||||
#t )))))
|
||||
(inputs `(
|
||||
("libfido2", libfido2)
|
||||
("libcbor", libcbor)
|
||||
,@(package-inputs openssh)
|
||||
))
|
||||
)
|
||||
)
|
||||
,@(package-inputs openssh)))))
|
||||
|
|
|
@ -6,81 +6,36 @@
|
|||
#:use-module (gnu packages virtualization)
|
||||
#:use-module (gnu packages storage)
|
||||
#:use-module (guix download)
|
||||
#:use-module (glicid utils)
|
||||
; #:use-module (glicid packages storage)
|
||||
)
|
||||
#:use-module (glicid utils))
|
||||
|
||||
|
||||
|
||||
;(define local-qemu qemu-7.0-upstream)
|
||||
|
||||
;(define qemu-latest (latest-version local-qemu qemu))
|
||||
|
||||
;(define local-qemu-minimal qemu-minimal-7.0-upstream)
|
||||
|
||||
;(define qemu-minimal-latest (latest-version local-qemu-minimal qemu-minimal))
|
||||
|
||||
;; current guix version is latest.
|
||||
(define-public qemu-latest qemu)
|
||||
(define-public qemu-minimal-latest qemu-minimal)
|
||||
|
||||
|
||||
(define-public qemu-with-rbd
|
||||
(package
|
||||
(inherit qemu-latest)
|
||||
(name "qemu-with-rbd")
|
||||
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments qemu)
|
||||
(substitute-keyword-arguments
|
||||
(package-arguments qemu)
|
||||
((#:tests? _ #f)
|
||||
;; FIXME: To run the test suite, fix all the instances where scripts
|
||||
;; generates "#! /bin/sh" shebangs.
|
||||
#f)
|
||||
)
|
||||
)
|
||||
|
||||
#f)))
|
||||
(inputs `(
|
||||
("ceph:lib", ceph "lib")
|
||||
,@(package-inputs qemu)
|
||||
))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
;(define-public qemu-with-rbd
|
||||
; (package
|
||||
; (inherit qemu-latest)
|
||||
; (name "qemu-with-rbd")
|
||||
; (arguments
|
||||
; (substitute-keyword-arguments `(
|
||||
; #:tests? #f
|
||||
; ,@(package-arguments qemu)
|
||||
; ))
|
||||
; )
|
||||
; (inputs `(
|
||||
; ("ceph:lib", ceph "lib")
|
||||
; ,@(package-inputs qemu)
|
||||
; ))
|
||||
; )
|
||||
;)
|
||||
|
||||
,@(package-inputs qemu)))))
|
||||
|
||||
(define-public qemu-minimal-with-rbd
|
||||
(package
|
||||
(inherit qemu-minimal-latest)
|
||||
(name "qemu-minimal-with-rbd")
|
||||
(arguments
|
||||
(substitute-keyword-arguments `(
|
||||
(substitute-keyword-arguments
|
||||
`(
|
||||
#:tests? #f
|
||||
,@(package-arguments qemu-minimal)
|
||||
))
|
||||
)
|
||||
,@(package-arguments qemu-minimal))))
|
||||
(inputs `(
|
||||
("ceph:lib", ceph "lib" )
|
||||
,@(package-inputs qemu-minimal)
|
||||
))
|
||||
)
|
||||
)
|
||||
,@(package-inputs qemu-minimal)))))
|
||||
|
||||
(define-public libvirt-8.5
|
||||
(package
|
||||
|
@ -92,8 +47,4 @@
|
|||
(method url-fetch)
|
||||
(uri (string-append "https://libvirt.org/sources/libvirt-" version ".tar.xz"))
|
||||
(sha256 (base32 "0qnvjy7k4l52bb5xylvhm21blkgbhld0jzilhsdf6gdqw6srj7j0"))
|
||||
(patches (search-patches "glicid/packages/patches/glicid-libvirt-add-install-prefix.patch"))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(patches (search-patches "glicid/packages/patches/glicid-libvirt-add-install-prefix.patch"))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue