This commit is contained in:
Jean-François GUILLAUME 2023-10-30 08:57:19 +01:00
parent c3439f9ec5
commit ac4fa23a11
GPG key ID: 38751DAE145EFB5A

View file

@ -6,6 +6,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#:use-module (gnu packages)
#:use-module (gnu packages backup)
#:use-module (gnu packages compression)
#:use-module (gnu packages cryptsetup)
@ -215,6 +216,27 @@ mapper. Kernel components are part of Linux-libre.")
(define-public lvm2
(package
(inherit lvm2-past-20311)
(version "2.03.221-reallyoldversion")
(inherit gnu:lvm2)
(version "2.03.22")
(source (origin
(method url-fetch)
(uri (list (string-append "https://sourceware.org/ftp/lvm2/LVM2."
version ".tgz")
(string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2."
version ".tgz")))
(sha256
(base32
"0z6w6bknhwh1n3qfkb5ij6x57q3wjf28lq3l8kh7rkhsplinjnjc"))
(patches (search-patches "glicid/packages/patches/lvm2-no-systemd.patch"))
(modules '((guix build utils)))
(snippet
'(begin
(use-modules (guix build utils))
;; Honor sysconfdir.
(substitute* "make.tmpl.in"
(("^confdir = .*$")
"confdir = @sysconfdir@\n")
(("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@")
"DEFAULT_SYS_DIR = @sysconfdir@"))))))
))