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