|
@@ -1,21 +1,25 @@
|
|
-%define version 0.17
|
|
+Summary: A server process which provides boot information to diskless clients.
|
|
-%define release 15%{?_dist_release}
|
|
+Summary(ja): ディスクレスクライアントに起動情報を提供するサーバプロセス
|
|
-%define _snapshot -pre20000412
|
|
+Name: bootparamd
|
|
-
|
|
+Version: 0.17
|
|
-Summary: A server process which provides boot information to diskless clients.
|
|
+Release: 16%{?_dist_release}
|
|
-Summary(ja): ディスクレスクライアントに起動情報を提供するサーバプロセス
|
|
+License: BSD
|
|
-Name: bootparamd
|
|
+Group: System Environment/Daemons
|
|
-Version: %{version}
|
|
+Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
|
|
-Release: %{release}
|
|
+Source1: bootparamd.init
|
|
-License: BSD
|
|
+Patch0: bootparamd-manpage-63567.patch
|
|
-Group: System Environment/Daemons
|
|
+Patch1: bootparamd-resolver.patch
|
|
-Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-bootparamd-%{version}%{_snapshot}.tar.gz
|
|
+Patch2: bootparamd-debug.patch
|
|
-Source1: bootparamd.init
|
|
+Patch3: bootparamd.fast-dns.patch
|
|
-Patch: bootparamd-manpage-63567.patch
|
|
+Patch4: bootparamd-resolver-fix.patch
|
|
-#Prereq: /sbin/chkconfig /sbin/init.d
|
|
+Patch5: bootparamd-get-router.patch
|
|
-Prereq: /sbin/chkconfig
|
|
+Patch6: bootparamd-err.patch
|
|
-Requires: portmap
|
|
+Patch7: bootparamd-byteorder.patch
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
+#PreReq: /sbin/chkconfig /sbin/init.d
|
|
|
|
+Requires(post): /sbin/chkconfig
|
|
|
|
+Requires(preun): /sbin/chkconfig
|
|
|
|
+Requires: portmap
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -46,19 +50,32 @@ SunOS の bootparam クライアント/サーバと互換性があります.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -n netkit-bootparamd-%{version}%{_snapshot}
|
|
+%setup -q -n netkit-%{name}-%{version}
|
|
-%patch -p1
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
+%patch2 -p1 -b .unblocksignals
|
|
|
|
+%patch3 -p1
|
|
|
|
+%patch4 -p1
|
|
|
|
+%patch5 -p1 -b .router
|
|
|
|
+%patch6 -p1 -b .err
|
|
|
|
+%patch7 -p1 -b .byteorder
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
sh configure --with-c-compiler=gcc
|
|
sh configure --with-c-compiler=gcc
|
|
perl -pi -e '
|
|
perl -pi -e '
|
|
s,^CC=.*$,CC=cc,;
|
|
s,^CC=.*$,CC=cc,;
|
|
- s,-O2,\$(RPM_OPT_FLAGS) -D_BSD_SOURCE,;
|
|
+ s,-O2,\$(RPM_OPT_FLAGS) -D_BSD_SOURCE \$(f_PIE),;
|
|
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
|
|
' MCONFIG
|
|
-make
|
|
+%ifarch s390 s390x
|
|
|
|
+export f_PIE="-fPIE"
|
|
|
|
+%else
|
|
|
|
+export f_PIE="-fpie"
|
|
|
|
+%endif
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -69,7 +86,7 @@ mkdir -p %{buildroot}%{_sbindir}
|
|
mkdir -p %{buildroot}%{_initdir}
|
|
mkdir -p %{buildroot}%{_initdir}
|
|
|
|
|
|
make INSTALLROOT=%{buildroot} install
|
|
make INSTALLROOT=%{buildroot} install
|
|
-install -m 755 $RPM_SOURCE_DIR/bootparamd.init %{buildroot}%{_initdir}/bootparamd
|
|
+install -m 755 %{SOURCE1} %{buildroot}%{_initdir}/bootparamd
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -96,6 +113,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Mar 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-16
|
|
|
|
+- updated to 0.17 release
|
|
|
|
+- import Patch1-7 from Fedora
|
|
|
|
+
|
|
* Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-15vl5
|
|
* Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-15vl5
|
|
- applied new versioning policy, spec in utf-8
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|
|