105 lines
3.1 KiB
RPMSpec
105 lines
3.1 KiB
RPMSpec
Name: isns-utils
|
|
Version: 0.91
|
|
Release: 1%{?dist}
|
|
Summary: The iSNS daemon and utility programs
|
|
|
|
Group: System Environment/Daemons
|
|
License: LGPLv2+
|
|
URL: http://oss.oracle.com/~okir/open-isns/
|
|
Source0: http://oss.oracle.com/~okir/open-isns/open-isns-%{version}.tar.bz2
|
|
Source1: isnsd.init
|
|
Patch0: isns-utils-turn-default-dd-on-to-match-msft.patch
|
|
Patch1: isns-utils-update-isnsadm-man.patch
|
|
Patch2: isns-utils-fix-non-utf8-chars-in-copying.patch
|
|
Patch3: isns-utils-include-limits.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: openssl-devel automake pkgconfig
|
|
Requires: /sbin/chkconfig /sbin/service
|
|
|
|
%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}
|
|
%patch0 -p1 -b .turn-default-dd-on-to-match-msft
|
|
%patch1 -p1 -b .update-isnsadm-man
|
|
%patch2 -p1 -b .fix-non-utf8-chars-in-copying
|
|
%patch3 -p1 -b .isns-utils-include-limits
|
|
|
|
|
|
%build
|
|
if pkg-config openssl ; then
|
|
CPPFLAGS=$(pkg-config --cflags openssl) ; export CPPFLAGS
|
|
LDFLAGS=$(pkg-config --libs openssl) ; export LDFLAGS
|
|
fi
|
|
|
|
autoconf
|
|
autoheader
|
|
%{configure}
|
|
%{__sed} -i -e 's|-Wall -g -O2|%{optflags}|' Makefile
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
%{__install} -d %{buildroot}%{_sbindir}
|
|
%{__install} -d %{buildroot}%{_mandir}/man8
|
|
%{__install} -d %{buildroot}%{_mandir}/man5
|
|
%{__install} -d %{buildroot}%{_initrddir}
|
|
%{__install} -d %{buildroot}%{_sysconfdir}/isns
|
|
%{__install} -d %{buildroot}%{_var}/lib
|
|
%{__install} -d %{buildroot}%{_var}/lib/isns
|
|
|
|
%{__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
|
|
|
|
%{__install} -p -m 755 isnsd isnsdd isnsadm isnssetup %{buildroot}%{_sbindir}
|
|
%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/isnsd
|
|
%{__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/
|
|
|
|
|
|
%post
|
|
/sbin/chkconfig --add isnsd
|
|
|
|
%postun
|
|
if [ "$1" = "1" ] ; then
|
|
/sbin/service isnsd condrestart > /dev/null 2>&1
|
|
fi
|
|
|
|
%preun
|
|
if [ "$1" = "0" ] ; then
|
|
/sbin/chkconfig isnsd stop > /dev/null 2>&1
|
|
/sbin/chkconfig --del isnsd
|
|
fi
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root, -)
|
|
%doc COPYING README
|
|
%{_sbindir}/isnsd
|
|
%{_sbindir}/isnsadm
|
|
%{_sbindir}/isnsdd
|
|
%{_sbindir}/isnssetup
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man5/*
|
|
%{_initrddir}/isnsd
|
|
%dir %{_sysconfdir}/isns
|
|
%dir %{_var}/lib/isns
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/isns/*
|
|
|
|
%changelog
|
|
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-1
|
|
- rebuild with new openssl
|
|
|
|
* Wed Jan 16 2008 Mike Christie <mchristie@redhat.com> - 0.91-0.0
|
|
- first build
|