3d10ba
Name:           isns-utils
3d10ba
Version:        0.93
9b0c35
Release:        7%{?dist}
3d10ba
Summary:        The iSNS daemon and utility programs
3d10ba
3d10ba
Group:          System Environment/Daemons
3d10ba
License:        LGPLv2+
3d10ba
URL:            https://github.com/mikechristie/open-isns
3d10ba
Source0:        https://github.com/cleech/open-isns/releases/download/v0.93/open-isns-%{version}.tar.bz2
3d10ba
Source1:        isnsd.service
3d10ba
3d10ba
Patch1: 0001-use-LDFLAGS.patch
3d10ba
3d10ba
BuildRequires:  openssl-devel automake pkgconfig systemd
3d10ba
Requires(post): systemd-units
3d10ba
Requires(preun): systemd-units
3d10ba
Requires(postun): systemd-units
3d10ba
3d10ba
%global _hardened_build 1
3d10ba
3d10ba
%description
3d10ba
The iSNS package contains the daemon and tools to setup a iSNS server,
3d10ba
and iSNS client tools. The Internet Storage Name Service (iSNS) protocol
3d10ba
allows automated discovery, management and configuration of iSCSI and
3d10ba
Fibre Channel devices (using iFCP gateways) on a TCP/IP network.
3d10ba
3d10ba
%prep
3d10ba
%setup -q -n open-isns-%{version}
3d10ba
%patch1 -p1
3d10ba
3d10ba
3d10ba
%build
3d10ba
autoconf
3d10ba
autoheader
3d10ba
%{configure}
3d10ba
%{__sed} -i -e 's|-Wall -g -O2|%{optflags}|' Makefile
3d10ba
%{__make} %{?_smp_mflags}
3d10ba
3d10ba
3d10ba
%install
3d10ba
%{__install} -d %{buildroot}%{_sbindir}
3d10ba
%{__install} -d %{buildroot}%{_mandir}/man8
3d10ba
%{__install} -d %{buildroot}%{_mandir}/man5
3d10ba
%{__install} -d %{buildroot}%{_unitdir}
3d10ba
%{__install} -d %{buildroot}%{_sysconfdir}/isns
3d10ba
%{__install} -d %{buildroot}%{_var}/lib
3d10ba
%{__install} -d %{buildroot}%{_var}/lib/isns
3d10ba
3d10ba
%{__install} -p -m 644 etc/isnsd.conf %{buildroot}%{_sysconfdir}/isns/isnsd.conf
3d10ba
%{__install} -p -m 644 etc/isnsdd.conf %{buildroot}%{_sysconfdir}/isns/isnsdd.conf
3d10ba
%{__install} -p -m 644 etc/isnsadm.conf %{buildroot}%{_sysconfdir}/isns/isnsadm.conf
3d10ba
3d10ba
%{__install} -p -m 755 isnsd isnsdd isnsadm isnssetup %{buildroot}%{_sbindir}
3d10ba
%{__install} -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service
3d10ba
%{__install} -p -m 644 doc/isns_config.5 %{buildroot}/%{_mandir}/man5/
3d10ba
%{__install} -p -m 644 doc/isnsd.8 doc/isnsdd.8 doc/isnsadm.8 %{buildroot}/%{_mandir}/man8/
3d10ba
3d10ba
3d10ba
%post
3d10ba
%systemd_post isnsd.service
3d10ba
3d10ba
3d10ba
%postun
3d10ba
%systemd_postun isnsd.service
3d10ba
3d10ba
3d10ba
%preun
3d10ba
%systemd_preun isnsd.service
3d10ba
3d10ba
3d10ba
%triggerun -- isns-utils < 0.91-7
3d10ba
# Save the current service runlevel info
3d10ba
# User must manually run systemd-sysv-convert --apply httpd
3d10ba
# to migrate them to systemd targets
3d10ba
/usr/bin/systemd-sysv-convert --save isnsd >/dev/null 2>&1 ||:
3d10ba
3d10ba
# Run these because the SysV package being removed won't do them
3d10ba
/sbin/chkconfig --del isnsd >/dev/null 2>&1 || :
3d10ba
/bin/systemctl try-restart isnsd.service >/dev/null 2>&1 || :
3d10ba
3d10ba
3d10ba
%clean
3d10ba
%{__rm} -rf %{buildroot}
3d10ba
3d10ba
%files
3d10ba
%doc COPYING README
3d10ba
%{_sbindir}/isnsd
3d10ba
%{_sbindir}/isnsadm
3d10ba
%{_sbindir}/isnsdd
3d10ba
%{_sbindir}/isnssetup
3d10ba
%{_mandir}/man8/*
3d10ba
%{_mandir}/man5/*
3d10ba
%{_unitdir}/isnsd.service
3d10ba
%dir %{_sysconfdir}/isns
3d10ba
%dir %{_var}/lib/isns
3d10ba
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/isns/*
3d10ba
3d10ba
%changelog
9b0c35
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.93-7
9b0c35
- Mass rebuild 2014-01-24
9b0c35
9b0c35
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.93-6
9b0c35
- Mass rebuild 2013-12-27
9b0c35
3d10ba
* Fri Sep 13 2013 Chris Leech <cleech@redhat.com> - 0.93-5
3d10ba
- remove unneeded libssl requirement
3d10ba
3d10ba
* Fri Sep 13 2013 Chris Leech <cleech@redhat.com> - 0.93-4
3d10ba
- set hardened build flag, required for long running processes (isnsd)
3d10ba
- patch makefile to actually use LDFLAGS
3d10ba
3d10ba
* Mon Aug 19 2013 Chris Leech <cleech@redhat.com> - 0.93-3
3d10ba
- rpmlint fixes, cleanup spec to keep building after rpm changes
3d10ba
3d10ba
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-2
3d10ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3d10ba
3d10ba
* Mon Sep 10 2012 Chris Leech <cleech@redhat.com> - 0.93-1
3d10ba
- Rebase to 0.93
3d10ba
- Make use of systemd rpm macros for scriptlets, BZ 850174
3d10ba
3d10ba
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-8
3d10ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3d10ba
3d10ba
* Wed Feb 15 2012 Jon Ciesla <limburgher@gmail.com> - 0.91-7
3d10ba
- Migrate to systemd, BZ 789707.
3d10ba
3d10ba
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-6
3d10ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3d10ba
3d10ba
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-5
3d10ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3d10ba
3d10ba
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-4
3d10ba
- rebuilt with new openssl
3d10ba
3d10ba
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-3
3d10ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3d10ba
3d10ba
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
3d10ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3d10ba
3d10ba
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-1
3d10ba
- rebuild with new openssl
3d10ba
3d10ba
* Wed Jan 16 2008 Mike Christie <mchristie@redhat.com> - 0.91-0.0
3d10ba
- first build