<
;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org> ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2019 Andrew Miloradovsky <andrew@interpretmath.pw> ;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org> ;;; Copyright © 2021 Dion Mendel <guix@dm9.info> ;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il> ;;; ;;; 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 cluster) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix gexp) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages autotools) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages docbook) #:use-module (gnu packages flex) #:use-module (gnu packages gettext) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages ruby) #:use-module (gnu packages sphinx) #:use-module (gnu packages sqlite) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls) #:use-module (gnu packages xml)) (define-public drbd-utils (package (name "drbd-utils") (version "9.25.0") (source (origin (method url-fetch) (uri (list (string-append "https://pkg.linbit.com/downloads/drbd" "/utils/drbd-utils-" version ".tar.gz"))) (sha256 (base32 "01vbghs4vyl3jvxkid59bqv73dya98k6jx5zhni2yx2xf8msynvf")) (modules '((guix build utils))) (snippet '(begin (substitute* "scripts/global_common.conf" ;; Do not participate in usage count survey by default. (("usage-count yes") "usage-count no")) (substitute* "scripts/Makefile.in" ;; Install the Pacemaker resource agents to the libdir, ;; regardless of what the OCF specification says... (("\\$\\(DESTDIR\\)/usr/lib") "$(DESTDIR)$(LIBDIR)")) (substitute* "configure" ;; Use a sensible default udev rules directory. (("default_udevdir=/lib/udev") "default_udevdir='${prefix}/lib/udev'")))))) (build-system gnu-build-system) (arguments (list #:configure-flags #~(append (list "--sysconfdir=/etc" "--localstatedir=/var" ;; Do not install sysv or systemd init scripts. "--with-initscripttype=none" ;; Disable support for DRBD 8.3 as it is only for ;; Linux-Libre versions < 3.8. 8.4 is the latest ;; kernel driver as of Linux 5.18. "--without-83support") #$(if (this-package-native-input "ruby-asciidoctor") #~'() #~(list "--without-manual"))) #:test-target "test" #:make-flags #~(list "WANT_DRBD_REPRODUCIBLE_BUILD=yesplease") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-ja-translation (lambda _ ;; XXX: The japanese documentation cannot be created due to ;; several "Invalid po file" and "use of uninitialized variable" ;; in po4a. (substitute* "Makefile.in" (("(DOC_DIRS.*)documentation/ja/v[[:digit:]]+" _ match) match) (("[[:blank:]]+\\$\\(MAKE\\) -C documentation/ja/v[[:digit:]]+.*") "")))) (add-after 'patch-generated-file-shebangs 'patch-documen