|
@@ -2,10 +2,11 @@ Summary: Displays who is logged in to local network machines.
|
|
Summary(ja): ローカルネットワーク機に誰がログインしているか表示する
|
|
Summary(ja): ローカルネットワーク機に誰がログインしているか表示する
|
|
Name: rwho
|
|
Name: rwho
|
|
Version: 0.17
|
|
Version: 0.17
|
|
-Release: 27%{?_dist_release}
|
|
+Release: 55%{?_dist_release}
|
|
|
|
|
|
-License: BSD
|
|
+# part of rwhod is under GPL+, other parts are under BSD
|
|
-Group: Applications/Internet
|
|
+License: BSD and GPL+
|
|
|
|
+Group: System Environment/Daemons
|
|
|
|
|
|
Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-rwho-%{version}.tar.gz
|
|
Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-rwho-%{version}.tar.gz
|
|
Source1: rwhod.init
|
|
Source1: rwhod.init
|
|
@@ -18,7 +19,10 @@ Patch5: netkit-rwho-0.17-include.patch
|
|
Patch6: netkit-rwho-0.17-wd_we.patch
|
|
Patch6: netkit-rwho-0.17-wd_we.patch
|
|
Patch7: netkit-rwho-0.17-time.patch
|
|
Patch7: netkit-rwho-0.17-time.patch
|
|
Patch8: netkit-rwho-0.17-gcc4.patch
|
|
Patch8: netkit-rwho-0.17-gcc4.patch
|
|
-Patch9: netkit-rwho-0.17-getloadavg.patch
|
|
+Patch9: rwho-0.17-waitchild.patch
|
|
|
|
+Patch10: rwho-0.17-neighbours.patch
|
|
|
|
+Patch11: rwho-0.17-hostnamelen.patch
|
|
|
|
+Patch12: rwho-0.17-stderr.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
#Requires: /sbin/chkconfig /etc/init.d
|
|
#Requires: /sbin/chkconfig /etc/init.d
|
|
@@ -49,37 +53,43 @@ rwho コマンドは who コマンド (誰がログインしているかを表
|
|
%patch2 -p1 -b .fixbcast
|
|
%patch2 -p1 -b .fixbcast
|
|
%patch3 -p1 -b .fixhostname
|
|
%patch3 -p1 -b .fixhostname
|
|
%patch4 -p1 -b .strip
|
|
%patch4 -p1 -b .strip
|
|
-%patch9 -p0 -b .getloadavg
|
|
+%patch5 -p1 -b .include
|
|
-
|
|
+%patch6 -p1 -b .wd_we
|
|
-%build
|
|
+%patch7 -p1 -b .time
|
|
-sh configure
|
|
+%patch8 -p1 -b .gcc4
|
|
-perl -pi -e '
|
|
+%patch9 -p1 -b .waitchild
|
|
- s,^CC=.*$,CC=cc,;
|
|
+%patch10 -p1 -b .neighbours
|
|
- s,-O2,\$(RPM_OPT_FLAGS),;
|
|
+%patch11 -p1 -b .hostnamelen
|
|
|
|
+%patch12 -p1 -b .stderr
|
|
|
|
+
|
|
|
|
+%{__perl} -pi -e '
|
|
|
|
+ s|^LDFLAGS=|LDFLAGS="-pie -Wl,-z,relro,-z,now"|;
|
|
s,^BINDIR=.*$,BINDIR=%{_bindir},;
|
|
s,^BINDIR=.*$,BINDIR=%{_bindir},;
|
|
s,^MANDIR=.*$,MANDIR=%{_mandir},;
|
|
s,^MANDIR=.*$,MANDIR=%{_mandir},;
|
|
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
|
|
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
|
|
- ' MCONFIG
|
|
+ ' configure
|
|
-
|
|
|
|
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
|
|
+%build
|
|
|
|
+CFLAGS="$RPM_OPT_FLAGS -I../include -fPIC" \
|
|
|
|
+sh configure --with-c-compiler=gcc
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
|
|
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,8}
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
|
+mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_initdir}
|
|
+mkdir -p $RPM_BUILD_ROOT%{_initdir}
|
|
-mkdir -p ${RPM_BUILD_ROOT}/var/spool/rwho
|
|
+mkdir -p $RPM_BUILD_ROOT/var/spool/rwho
|
|
|
|
|
|
-make INSTALLROOT=${RPM_BUILD_ROOT} install
|
|
+make INSTALLROOT=$RPM_BUILD_ROOT install
|
|
-make INSTALLROOT=${RPM_BUILD_ROOT} install -C ruptime
|
|
+make INSTALLROOT=$RPM_BUILD_ROOT install -C ruptime
|
|
|
|
|
|
-install -m 755 $RPM_SOURCE_DIR/rwhod.init ${RPM_BUILD_ROOT}%{_initdir}/rwhod
|
|
+install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/rwhod
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post
|
|
%post
|
|
@@ -99,7 +109,6 @@ fi
|
|
%{_mandir}/man1/ruptime.1*
|
|
%{_mandir}/man1/ruptime.1*
|
|
%{_bindir}/rwho
|
|
%{_bindir}/rwho
|
|
%{_mandir}/man1/rwho.1*
|
|
%{_mandir}/man1/rwho.1*
|
|
-
|
|
|
|
%{_sbindir}/rwhod
|
|
%{_sbindir}/rwhod
|
|
%{_mandir}/man8/rwhod.8*
|
|
%{_mandir}/man8/rwhod.8*
|
|
/var/spool/rwho
|
|
/var/spool/rwho
|
|
@@ -107,6 +116,21 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.17-55
|
|
|
|
+- added Patch9, 10, 11 and 12 from Fedora 0.17-54
|
|
|
|
+ * Wed Nov 07 2012 Honza Horak <hhorak@redhat.com> - 0.17-47
|
|
|
|
+ - Remove linkage against systemd-daemon
|
|
|
|
+ - Print errors into stderr
|
|
|
|
+ * Wed Dec 07 2011 Honza Horak <hhorak@redhat.com> - 0.17-37
|
|
|
|
+ - allow longer hostnames (bug #212076)
|
|
|
|
+ - add -n option to ruptime manpage
|
|
|
|
+ * Thu Jun 02 2011 Honza Horak <hhorak@redhat.com> - 0.17-35
|
|
|
|
+ - applied patch from Ian Donaldson to transmit status reliably
|
|
|
|
+ (bug #708385)
|
|
|
|
+ * Tue Aug 15 2006 Harald Hoyer <harald@redhat.com> - 0.17-26
|
|
|
|
+ - exit daemon, if child process dies (bug #202493)
|
|
|
|
+- moved to System Environment/Daemons
|
|
|
|
+
|
|
* Sun May 1 2011 Shu KONNO <owa@bg.wakwak.com> 0.17-27
|
|
* Sun May 1 2011 Shu KONNO <owa@bg.wakwak.com> 0.17-27
|
|
- rebuilt with current VineSeed
|
|
- rebuilt with current VineSeed
|
|
|
|
|