Name: drbd Summary: DRBD user-land tools and scripts Version: 9.5.0 Release: 1%{?dist} Source0: http://www.linbit.com/downloads/%{name}/utils/%{name}-utils-%{version}.tar.gz Source1: drbd.service Source2: drbd.ocf Patch0: disable_xsltproc_network_read.patch License: GPLv2+ ExclusiveOS: linux Group: System Environment/Kernel URL: http://www.drbd.org/ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: flex BuildRequires: libxslt BuildRequires: docbook-style-xsl Requires: %{name}-utils = %{version} Requires: %{name}-udev = %{version} BuildRequires: udev %description DRBD refers to block devices designed as a building block to form high availability (HA) clusters. This is done by mirroring a whole block device via an assigned network. DRBD can be understood as network based raid-1. This is a virtual package, installing the full user-land suite. %package utils Summary: Management utilities for DRBD Group: System Environment/Kernel %description utils DRBD mirrors a block device over the network to another machine. Think of it as networked raid 1. It is a building block for setting up high availability (HA) clusters. This packages includes the DRBD administration tools. %package udev Summary: udev integration scripts for DRBD Group: System Environment/Kernel Requires: %{name}-utils = %{version}-%{release}, udev %description udev This package contains udev helper scripts for DRBD, managing symlinks to DRBD devices in /dev/drbd/by-res and /dev/drbd/by-disk. %package pacemaker Summary: Pacemaker resource agent for DRBD Group: System Environment/Base Requires: %{name}-utils = %{version}-%{release} Requires: pacemaker License: GPLv2 %description pacemaker This package contains the master/slave DRBD resource agent for the Pacemaker High Availability cluster manager. %package rgmanager Summary: Red Hat Cluster Suite agent for DRBD Group: System Environment/Base Requires: %{name}-utils = %{version}-%{release} Conflicts: resource-agents >= 3 %description rgmanager This package contains the DRBD resource agent for the Red Hat Cluster Suite resource manager. As of Red Hat Cluster Suite 3.0.1, the DRBD resource agent is included in the Cluster distribution. %package bash-completion Summary: Programmable bash completion support for drbdadm Group: System Environment/Base Requires: %{name}-utils = %{version}-%{release} %description bash-completion This package contains programmable bash completion support for the drbdadm management utility. %prep %setup -q -n drbd-utils-%{version} # Don't let xsltproc make network calls during build %patch0 -p0 %build %configure \ --with-utils \ --with-drbdmon \ --without-km \ --with-udev \ --without-xen \ --with-pacemaker \ --with-rgmanager \ --with-distro=redhat \ --with-systemdunitdir=%{_unitdir} \ --with-initdir=%{_initddir} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Remove old init script, replace with systemd unit file rm -f $RPM_BUILD_ROOT/%{_initddir}/drbd install -d -m755 $RPM_BUILD_ROOT/%{_unitdir} install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/drbd.service rm -f $RPM_BUILD_ROOT/drbd.service # Remove old heartbeat files that aren't needed any longer in Fedora rm -rf $RPM_BUILD_ROOT/etc/ha.d # RHBZ 1253056: Fix pacemaker integration problem install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/linbit/drbd %files %doc COPYING %doc ChangeLog %files utils %defattr(755,root,root,-) %{_sbindir}/drbdsetup %{_sbindir}/drbdadm %{_sbindir}/drbdmeta %{_sbindir}/drbdmon %{_sbindir}/drbd-overview # systemd-related stuff %attr(0644,root,root) %{_unitdir}/drbd.service %{_tmpfilesdir}/%{name}.conf # Yes, these paths are peculiar. Upstream is peculiar. # Be forewarned: rpmlint hates this stuff. %defattr(755,root,root,-) /lib/drbd/drbd /lib/drbd/drbdadm-* /lib/drbd/drbdsetup-* /usr/lib/drbd/*.sh /usr/lib/drbd/rhcs_fence %defattr(-,root,root,-) %dir %{_var}/lib/%{name} %config(noreplace) %{_sysconfdir}/drbd.conf %dir %{_sysconfdir}/drbd.d %config(noreplace) %{_sysconfdir}/drbd.d/global_common.conf %{_mandir}/man8/drbd*gz %{_mandir}/man5/drbd*gz %{_mandir}/ja/man5/drbd*gz %{_mandir}/ja/man8/drbd*gz %doc scripts/drbd.conf.example %doc COPYING %doc ChangeLog %files udev %{_udevrulesdir}/65-drbd.rules %files rgmanager %defattr(755,root,root,-) %{_datadir}/cluster/drbd.sh %defattr(-,root,root,-) %{_datadir}/cluster/drbd.metadata %files pacemaker %defattr(755,root,root,-) %{_prefix}/lib/ocf/resource.d/linbit/drbd %{_prefix}/lib/ocf/resource.d/linbit/drbd.shellfuncs.sh %files bash-completion %config %{_sysconfdir}/bash_completion.d/drbdadm* %post utils %systemd_post drbd.service %preun utils %systemd_preun drbd.service %changelog * Thu Jul 19 2018 Major Hayden - 9.5.0-1 - Upstream release of 9.5.0 * Thu Jul 12 2018 Fedora Release Engineering - 8.9.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 8.9.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 8.9.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 8.9.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 8.9.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Mar 07 2016 Major Hayden - 8.9.6-2 - Fix RHBZ 1314970 * Fri Feb 05 2016 Major Hayden - 8.9.6-1 - Upstream release of 8.9.6 * Wed Feb 03 2016 Fedora Release Engineering - 8.9.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Dec 23 2015 Major Hayden - 8.9.5-1 - Upstream release of 8.9.5 * Mon Sep 21 2015 Major Hayden - 8.9.4-1 - Upstream release of 8.9.4 * Thu Aug 13 2015 Major Hayden - 8.9.3-2 - Fix RHBZ 1253056 * Tue Jun 16 2015 Major Hayden - 8.9.3-1 - New upstream release 8.9.3. * Tue May 12 2015 Major Hayden - 8.9.2-3 - Lots of spec/patch fixes * Tue May 12 2015 Major Hayden - 8.9.2-2 - Updated global_common.conf patch * Tue May 12 2015 Major Hayden - 8.9.2-1 - New upstream release 8.9.2. * Wed Jan 07 2015 Major Hayden - 8.9.1-2 - Removed xen dependency for drbd-xen * Thu Dec 04 2014 Major Hayden - 8.9.1-1 - New upstream release 8.9.1. * Sat Aug 16 2014 Fedora Release Engineering - 8.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 08 2014 Major Hayden - 8.9.0-7 - Don't write Xen scripts on arm systems * Fri Aug 08 2014 Major Hayden - 8.9.0-6 - Don't assemble xen package on armv7hl/aarch64 systems * Thu Aug 07 2014 Major Hayden - 8.9.0-5 - Removing unneeded rgmanager dependency * Wed Aug 06 2014 Major Hayden - 8.9.0-4 - Big cleanup and update for F21 * Mon Aug 04 2014 Major Hayden - 8.9.0-3 - Fixing path to drbdadm in systemd unit file * Mon Aug 04 2014 Major Hayden - 8.9.0-2 - Added systemd unit file for drbd * Fri Jul 25 2014 Major Hayden - 8.9.0-1 - New upstream release 8.9.0. DRBD utilities are now split from the kernel modules. * Sat Jun 07 2014 Fedora Release Engineering - 8.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Mar 31 2014 Major Hayden - 8.4.4-1 - New upstream release 8.4.4. * Sat Aug 03 2013 Petr Pisar - 8.4.3-2 - Perl 5.18 rebuild * Wed Jul 31 2013 Major Hayden - 8.4.3-1 - New upstream release. * Wed Jul 17 2013 Petr Pisar - 8.4.2-4 - Perl 5.18 rebuild * Thu Jun 20 2013 Major Hayden - 8.4.2-3 - Removed heartbeat package - Corrected Source0 URL * Mon Mar 11 2013 Karsten Hopp 8.4.2-2 - work around macro expansion problems on PPC64 * Thu Mar 07 2013 Major Hayden - 8.4.2-1 - Version bump to match F18 kernel modules * Wed Feb 13 2013 Fedora Release Engineering - 8.3.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Nov 04 2012 Major Hayden - 8.3.13-1 - Version bump to match F17/F18 kernel modules * Wed Jul 18 2012 Fedora Release Engineering - 8.3.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Apr 01 2012 Major Hayden - 8.3.11-5 - Removed bash completion dependency (#807633) * Mon Feb 20 2012 Major Hayden - 8.3.11-4 - Removed heartbeat, pacemaker, and rgmanager requirements in main drbd package. * Tue Feb 14 2012 Oliver Falk - 8.3.11-3 - Don't require xen in the main package if built with xen * Fri Jan 13 2012 Fedora Release Engineering - 8.3.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Aug 03 2011 Major Hayden - 8.3.11-1 - New upstream release. * Mon Mar 14 2011 Major Hayden - 8.3.9-1 - New upstream release. - Matches DRBD modules in 2.6.38 for Fedora 15. * Tue Mar 01 2011 Major Hayden - 8.3.8.1-1 - New upstream release. * Tue Feb 08 2011 Fedora Release Engineering - 8.3.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild