[5979] | 1 | Summary: A server process which provides boot information to diskless clients. |
---|
| 2 | Summary(ja): ディスクレスクライアントに起動情報を提供するサーバプロセス |
---|
| 3 | Name: bootparamd |
---|
| 4 | Version: 0.17 |
---|
| 5 | Release: 16%{?_dist_release} |
---|
| 6 | License: BSD |
---|
| 7 | Group: System Environment/Daemons |
---|
| 8 | Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz |
---|
| 9 | Source1: bootparamd.init |
---|
| 10 | Patch0: bootparamd-manpage-63567.patch |
---|
| 11 | Patch1: bootparamd-resolver.patch |
---|
| 12 | Patch2: bootparamd-debug.patch |
---|
| 13 | Patch3: bootparamd.fast-dns.patch |
---|
| 14 | Patch4: bootparamd-resolver-fix.patch |
---|
| 15 | Patch5: bootparamd-get-router.patch |
---|
| 16 | Patch6: bootparamd-err.patch |
---|
| 17 | Patch7: bootparamd-byteorder.patch |
---|
| 18 | #PreReq: /sbin/chkconfig /sbin/init.d |
---|
| 19 | Requires(post): /sbin/chkconfig |
---|
| 20 | Requires(preun): /sbin/chkconfig |
---|
| 21 | Requires: portmap |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 23 | |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | The bootparamd process provides bootparamd, a server process which |
---|
| 27 | provides the information needed by diskless clients in order for them |
---|
| 28 | to successfully boot. Bootparamd looks first in /etc/bootparams for an |
---|
| 29 | entry for that particular client; if a local bootparams file doesn't |
---|
| 30 | exist, it looks at the appropriate Network Information Service (NIS) |
---|
| 31 | map. Some network boot loaders (notably Sun's) rely on special boot |
---|
| 32 | server code on the server, in addition to the RARP and TFTP servers. |
---|
| 33 | This bootparamd server process is compatible with SunOS bootparam clients |
---|
| 34 | and servers which need that boot server code. |
---|
| 35 | |
---|
| 36 | You should install bootparamd if you need to provide boot information to |
---|
| 37 | diskless clients on your network. |
---|
| 38 | |
---|
| 39 | %description -l ja |
---|
| 40 | bootparamd はディスクレスクライアントが正しく起動する為の情報を |
---|
| 41 | 提供するサーバプロセスです.bootparamd は最初に /etc/bootparams を |
---|
| 42 | 見て特定のクライアントの情報を探します./etc/bootparams がなければ |
---|
| 43 | NIS (Network Information Service) のマップを探します. |
---|
| 44 | ネットワークブートローダの中には (特に Sun のものが) RARP や TFTP |
---|
| 45 | サーバに加えて特別なブートサーバを必要とします.この bootparamd サーバは |
---|
| 46 | SunOS の bootparam クライアント/サーバと互換性があります. |
---|
| 47 | |
---|
| 48 | ネットワーク上のディスクレスクライアントに起動情報を提供する必要が |
---|
| 49 | ある場合は bootparamd パッケージをインストールして下さい. |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %prep |
---|
[5979] | 53 | %setup -q -n netkit-%{name}-%{version} |
---|
| 54 | %patch0 -p1 |
---|
| 55 | %patch1 -p1 |
---|
| 56 | %patch2 -p1 -b .unblocksignals |
---|
| 57 | %patch3 -p1 |
---|
| 58 | %patch4 -p1 |
---|
| 59 | %patch5 -p1 -b .router |
---|
| 60 | %patch6 -p1 -b .err |
---|
| 61 | %patch7 -p1 -b .byteorder |
---|
[521] | 62 | |
---|
[5979] | 63 | |
---|
[521] | 64 | %build |
---|
| 65 | sh configure --with-c-compiler=gcc |
---|
| 66 | perl -pi -e ' |
---|
| 67 | s,^CC=.*$,CC=cc,; |
---|
[5979] | 68 | s,-O2,\$(RPM_OPT_FLAGS) -D_BSD_SOURCE \$(f_PIE),; |
---|
[521] | 69 | s,^BINDIR=.*$,BINDIR=%{_bindir},; |
---|
| 70 | s,^MANDIR=.*$,MANDIR=%{_mandir},; |
---|
| 71 | s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; |
---|
| 72 | ' MCONFIG |
---|
[5979] | 73 | %ifarch s390 s390x |
---|
| 74 | export f_PIE="-fPIE" |
---|
| 75 | %else |
---|
| 76 | export f_PIE="-fpie" |
---|
| 77 | %endif |
---|
| 78 | make %{?_smp_mflags} |
---|
[521] | 79 | |
---|
| 80 | |
---|
| 81 | %install |
---|
| 82 | rm -rf %{buildroot} |
---|
| 83 | mkdir -p %{buildroot}%{_bindir} |
---|
| 84 | mkdir -p %{buildroot}%{_mandir}/man{1,8} |
---|
| 85 | mkdir -p %{buildroot}%{_sbindir} |
---|
| 86 | mkdir -p %{buildroot}%{_initdir} |
---|
| 87 | |
---|
| 88 | make INSTALLROOT=%{buildroot} install |
---|
[5979] | 89 | install -m 755 %{SOURCE1} %{buildroot}%{_initdir}/bootparamd |
---|
[521] | 90 | |
---|
| 91 | |
---|
| 92 | %clean |
---|
| 93 | rm -rf %{buildroot} |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %post |
---|
| 97 | /sbin/chkconfig --add bootparamd |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %preun |
---|
| 101 | if [ $1 = 0 ]; then |
---|
| 102 | /sbin/chkconfig --del bootparamd |
---|
| 103 | fi |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | %files |
---|
| 107 | %defattr(-,root,root) |
---|
| 108 | %{_sbindir}/rpc.bootparamd |
---|
| 109 | %{_bindir}/callbootd |
---|
| 110 | %{_mandir}/man8/rpc.bootparamd.* |
---|
| 111 | %{_mandir}/man8/bootparamd.* |
---|
| 112 | %config %{_initdir}/bootparamd |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %changelog |
---|
[5979] | 116 | * Sat Mar 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-16 |
---|
| 117 | - updated to 0.17 release |
---|
| 118 | - import Patch1-7 from Fedora |
---|
| 119 | |
---|
[521] | 120 | * Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-15vl5 |
---|
| 121 | - applied new versioning policy, spec in utf-8 |
---|
| 122 | |
---|
| 123 | * Thu Jul 3 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-14vl1 |
---|
| 124 | - based on Redhat Rawhide 0.17-14 |
---|
| 125 | - rebuild with new toolchains |
---|
| 126 | - s/Copyright/License/ |
---|
| 127 | |
---|
| 128 | * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 129 | - 0.17-5vl3 |
---|
| 130 | - use better macros (%%{_initdir}) |
---|
| 131 | - added Japanese summary and description |
---|
| 132 | - rebuilt with newer %%{_mandir} definition |
---|
| 133 | |
---|
| 134 | * Tue Dec 12 2000 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-5vl2 |
---|
| 135 | - remove /etc/init.d from PreReq |
---|
| 136 | |
---|
| 137 | * Sun Nov 19 2000 Satoshi MACHINO <machino@vinelinux.org> 0.17-5vl1 |
---|
| 138 | - build on Vine Linux with gcc-2.95.3 |
---|
| 139 | |
---|
| 140 | * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> |
---|
| 141 | - condrestart fixes |
---|
| 142 | |
---|
| 143 | * Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> |
---|
| 144 | - move initscript back |
---|
| 145 | |
---|
| 146 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
| 147 | - automatic rebuild |
---|
| 148 | |
---|
| 149 | * Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> |
---|
| 150 | - move initscript |
---|
| 151 | |
---|
| 152 | * Sun Jun 18 2000 Matt Wilson <msw@redhat.com> |
---|
| 153 | - FHS packaging |
---|
| 154 | - 0.17 |
---|
| 155 | |
---|
| 156 | * Thu Feb 03 2000 Erik Troan <ewt@redhat.com> |
---|
| 157 | - gzipped man pages |
---|
| 158 | |
---|
| 159 | * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 160 | - update to 0.16. |
---|
| 161 | |
---|
| 162 | * Fri Sep 25 1999 Bill Nottingham <notting@redhat.com> |
---|
| 163 | - *sigh*. |
---|
| 164 | |
---|
| 165 | * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> |
---|
| 166 | - initrscript munging |
---|
| 167 | |
---|
| 168 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 169 | - auto rebuild in the new build environment (release 22) |
---|
| 170 | |
---|
| 171 | * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 172 | - compile for 6.0 |
---|
| 173 | |
---|
| 174 | * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 175 | - removed triggerpostun. |
---|
| 176 | |
---|
| 177 | * Fri May 01 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 178 | - added triggerpostun |
---|
| 179 | |
---|
| 180 | * Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> |
---|
| 181 | - enhanced initscript |
---|
| 182 | |
---|
| 183 | * Thu Jan 08 1998 Erik Troan <ewt@redhat.com> |
---|
| 184 | - updated initscript to include functions |
---|
| 185 | - fixed 'stop' action of initscript |
---|
| 186 | - added requirement for portmap |
---|
| 187 | |
---|
| 188 | * Sun Oct 19 1997 Erik Troan <ewt@redhat.com> |
---|
| 189 | - added an initscript |
---|
| 190 | |
---|
| 191 | * Tue Jul 15 1997 Erik Troan <ewt@redhat.com> |
---|
| 192 | - initial build |
---|