Browse Source

* bootparamd: updated to 0.17 release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5979 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 years ago
parent
commit
57e9953455
1 changed files with 44 additions and 23 deletions
  1. 44 23
      b/bootparamd/bootparamd-vl.spec

+ 44 - 23
b/bootparamd/bootparamd-vl.spec

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