2008-02-11 22:16:36 +00:00
|
|
|
Name: isns-utils
|
2012-09-10 20:27:13 +00:00
|
|
|
Version: 0.93
|
2014-06-07 22:50:59 +00:00
|
|
|
Release: 5%{?dist}
|
2008-02-11 22:16:36 +00:00
|
|
|
Summary: The iSNS daemon and utility programs
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: LGPLv2+
|
2012-09-10 20:27:13 +00:00
|
|
|
URL: http://www.kernel.org/pub/linux/kernel/people/mnc/open-isns
|
|
|
|
Source0: http://www.kernel.org/pub/linux/kernel/people/mnc/open-isns/releases/open-isns-%{version}.tar.bz2
|
2012-02-15 20:30:06 +00:00
|
|
|
Source1: isnsd.service
|
2008-02-11 22:16:36 +00:00
|
|
|
|
2013-08-04 10:10:19 +00:00
|
|
|
BuildRequires: openssl-devel automake pkgconfig systemd-devel
|
2012-02-15 20:30:06 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
2008-02-11 22:16:36 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The iSNS package contains the daemon and tools to setup a iSNS server,
|
|
|
|
and iSNS client tools. The Internet Storage Name Service (iSNS) protocol
|
|
|
|
allows automated discovery, management and configuration of iSCSI and
|
|
|
|
Fibre Channel devices (using iFCP gateways) on a TCP/IP network.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n open-isns-%{version}
|
2008-02-11 22:58:10 +00:00
|
|
|
|
2008-02-11 22:16:36 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
if pkg-config openssl ; then
|
|
|
|
CPPFLAGS=$(pkg-config --cflags openssl) ; export CPPFLAGS
|
|
|
|
LDFLAGS=$(pkg-config --libs openssl) ; export LDFLAGS
|
|
|
|
fi
|
|
|
|
|
|
|
|
autoconf
|
|
|
|
autoheader
|
2013-08-04 10:10:19 +00:00
|
|
|
%configure
|
|
|
|
sed -i -e 's|-Wall -g -O2|%{optflags}|' Makefile
|
|
|
|
make %{?_smp_mflags}
|
2008-02-11 22:16:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2013-08-04 10:10:19 +00:00
|
|
|
install -d %{buildroot}%{_sbindir}
|
|
|
|
install -d %{buildroot}%{_mandir}/man8
|
|
|
|
install -d %{buildroot}%{_mandir}/man5
|
|
|
|
install -d %{buildroot}%{_unitdir}
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/isns
|
|
|
|
install -d %{buildroot}%{_var}/lib
|
|
|
|
install -d %{buildroot}%{_var}/lib/isns
|
2008-02-11 22:16:36 +00:00
|
|
|
|
2013-08-04 10:10:19 +00:00
|
|
|
install -p -m 644 etc/isnsd.conf %{buildroot}%{_sysconfdir}/isns/isnsd.conf
|
|
|
|
install -p -m 644 etc/isnsdd.conf %{buildroot}%{_sysconfdir}/isns/isnsdd.conf
|
|
|
|
install -p -m 644 etc/isnsadm.conf %{buildroot}%{_sysconfdir}/isns/isnsadm.conf
|
2008-02-11 22:16:36 +00:00
|
|
|
|
2013-08-04 10:10:19 +00:00
|
|
|
install -p -m 755 isnsd isnsdd isnsadm isnssetup %{buildroot}%{_sbindir}
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service
|
|
|
|
install -p -m 644 doc/isns_config.5 %{buildroot}/%{_mandir}/man5/
|
|
|
|
install -p -m 644 doc/isnsd.8 doc/isnsdd.8 doc/isnsadm.8 %{buildroot}/%{_mandir}/man8/
|
2008-02-11 22:16:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post
|
2012-09-10 20:27:13 +00:00
|
|
|
%systemd_post isnsd.service
|
2012-02-15 20:30:06 +00:00
|
|
|
|
2008-02-11 22:16:36 +00:00
|
|
|
|
|
|
|
%postun
|
2012-09-10 20:27:13 +00:00
|
|
|
%systemd_postun isnsd.service
|
2008-02-11 22:16:36 +00:00
|
|
|
|
2012-02-15 20:30:06 +00:00
|
|
|
|
2008-02-11 22:16:36 +00:00
|
|
|
%preun
|
2012-09-10 20:27:13 +00:00
|
|
|
%systemd_preun isnsd.service
|
2008-02-11 22:16:36 +00:00
|
|
|
|
2012-02-15 20:30:06 +00:00
|
|
|
|
|
|
|
%triggerun -- isns-utils < 0.91-7
|
|
|
|
# Save the current service runlevel info
|
|
|
|
# User must manually run systemd-sysv-convert --apply httpd
|
|
|
|
# to migrate them to systemd targets
|
|
|
|
/usr/bin/systemd-sysv-convert --save isnsd >/dev/null 2>&1 ||:
|
|
|
|
|
|
|
|
# Run these because the SysV package being removed won't do them
|
|
|
|
/sbin/chkconfig --del isnsd >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl try-restart isnsd.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
2008-02-11 22:16:36 +00:00
|
|
|
%files
|
|
|
|
%doc COPYING README
|
|
|
|
%{_sbindir}/isnsd
|
|
|
|
%{_sbindir}/isnsadm
|
|
|
|
%{_sbindir}/isnsdd
|
|
|
|
%{_sbindir}/isnssetup
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_mandir}/man5/*
|
2012-02-15 20:30:06 +00:00
|
|
|
%{_unitdir}/isnsd.service
|
2008-02-11 22:16:36 +00:00
|
|
|
%dir %{_sysconfdir}/isns
|
|
|
|
%dir %{_var}/lib/isns
|
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/isns/*
|
|
|
|
|
|
|
|
%changelog
|
2014-06-07 22:50:59 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 10:10:19 +00:00
|
|
|
* Sun Aug 4 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.93-4
|
|
|
|
- Fix FTBFS, modernise spec
|
|
|
|
|
2013-08-03 20:02:00 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 02:17:59 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-09-10 20:27:13 +00:00
|
|
|
* Mon Sep 10 2012 Chris Leech <cleech@redhat.com> - 0.93-1
|
|
|
|
- Rebase to 0.93
|
|
|
|
- Make use of systemd rpm macros for scriptlets, BZ 850174
|
|
|
|
|
2012-07-19 15:12:38 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-15 20:30:06 +00:00
|
|
|
* Wed Feb 15 2012 Jon Ciesla <limburgher@gmail.com> - 0.91-7
|
|
|
|
- Migrate to systemd, BZ 789707.
|
|
|
|
|
2012-01-13 06:02:47 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-09 13:14:55 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-08-21 14:02:02 +00:00
|
|
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-4
|
|
|
|
- rebuilt with new openssl
|
|
|
|
|
2009-07-25 03:39:18 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 08:10:08 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-17 13:32:44 +00:00
|
|
|
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-1
|
|
|
|
- rebuild with new openssl
|
|
|
|
|
2008-02-11 22:16:36 +00:00
|
|
|
* Wed Jan 16 2008 Mike Christie <mchristie@redhat.com> - 0.91-0.0
|
|
|
|
- first build
|