rpcbind/rpcbind.spec

Fri, 11 Mar 2011 21:41:16 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:41:16 +0100
changeset 3
d4b4127cd2bb
parent 0
4f133201e207
permissions
-rw-r--r--

Import unmodified vendor specs for introduction into repository.

     1 %{!?_initddir:%define _initddir /etc/rc.d/init.d}
     3 Name:           rpcbind
     4 Version:        0.2.0
     5 Release:	    20101201
     6 Summary:        Universal Addresses to RPC Program Number Mapper
     7 Vendor:         Europalab Software
     8 Packager:       Michael Schloh von Bennewitz
     9 Distribution:   MeeGo Thirdparty
    10 Group:          System Environment/Daemons
    11 License:        BSD
    12 URL:            http://nfsv4.bullopensource.org
    14 BuildRoot:      %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
    15 Source0:        http://downloads.sourceforge.net/rpcbind/%{name}-%{version}.tar.bz2
    16 Source1: rpcbind.init
    17 Patch0:  rpcbind.patch
    19 Requires: glibc-common setup
    20 Conflicts: man-pages < 2.43-12
    21 BuildRequires: automake, autoconf, libtool
    22 BuildRequires: libtirpc-devel, quota-devel, tcp_wrappers-devel
    23 Requires(pre): /usr/sbin/groupadd  /usr/sbin/groupdel
    24 Requires(pre): /usr/sbin/useradd  /usr/sbin/userdel
    25 Requires(pre): coreutils fastinit
    26 Requires(post): /sbin/chkconfig
    27 Requires(post): /sbin/chkconfig
    29 Provides: portmap = %{version}-%{release}
    30 Obsoletes: portmap <= 4.0-65.3
    32 %description
    33 The rpcbind utility is a server that converts RPC program numbers into
    34 universal addresses.  It must be running on the host to be able to make
    35 RPC calls on a server on that machine.
    37 %prep
    38 %setup -q
    39 %patch0 -p1
    41 %build
    42 %ifarch s390 s390x
    43 PIE="-fPIE"
    44 %else
    45 PIE="-fpie"
    46 %endif
    47 export PIE
    49 RPCBUSR=rpc
    50 RPCBDIR=/var/lib/rpcbind
    51 CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
    53 autoreconf -fisv
    54 %configure CFLAGS="$CFLAGS" LDFLAGS="-pie" \
    55     --enable-warmstarts \
    56     --with-statedir="$RPCBDIR" \
    57     --with-rpcuser="$RPCBUSR" \
    58     --enable-libwrap \
    59     --enable-debug
    61 make all
    64 %install
    65 rm -rf %{buildroot}
    66 mkdir -p %{buildroot}/sbin
    67 mkdir -p %{buildroot}/usr/sbin
    68 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
    69 mkdir -p %{buildroot}%{_mandir}/man8
    70 mkdir -p %{buildroot}/var/lib/rpcbind
    71 make DESTDIR=$RPM_BUILD_ROOT install
    73 mv -f ${RPM_BUILD_ROOT}%{_bindir}/rpcbind ${RPM_BUILD_ROOT}/sbin
    74 mv -f ${RPM_BUILD_ROOT}%{_bindir}/rpcinfo ${RPM_BUILD_ROOT}%{_sbindir}
    75 install -m 755 ${RPM_SOURCE_DIR}/rpcbind.init ${RPM_BUILD_ROOT}%{_initddir}/rpcbind
    77 %clean
    78 rm -rf %{buildroot}
    80 %pre
    82 # Check the validity of the rpc uid and gid.
    83 # If they don't exist, create them
    84 # If they exist but are the wrong value, remove them 
    85 #   and recreate them with the correct value
    86 # If they exist and are the correct value do nothing
    87 rpcid=`getent passwd rpc | cut -d: -f 3`
    88 if [ -n "$rpcid" -a "$rpcid" != "32" ]; then
    89 	/usr/sbin/userdel  rpc 2> /dev/null || :
    90 	/usr/sbin/groupdel rpc 2> /dev/null || : 
    91 fi
    92 if [ -z "$rpcid" -o "$rpcid" != "32" ]; then
    93 	/usr/sbin/groupadd -o -g 32 rpc > /dev/null 2>&1
    94 	/usr/sbin/useradd -o -l -c "Rpcbind Daemon" -d /var/lib/rpcbind -g 32 \
    95     	-M -s /sbin/nologin -u 32 rpc > /dev/null 2>&1
    96 fi
    97 %post 
    98 /sbin/chkconfig --add %{name}
   100 %preun
   101 if [ $1 -eq 0 ]; then
   102     service rpcbind stop > /dev/null 2>&1
   103     /sbin/chkconfig --del %{name}
   104 	/usr/sbin/userdel  rpc 2>/dev/null || :
   105 	/usr/sbin/groupdel rpc 2>/dev/null || :
   106 	rm -rf /var/lib/rpcbind
   107 fi
   108 %postun
   109 if [ "$1" -ge "1" ]; then
   110     service rpcbind condrestart > /dev/null 2>&1
   111 fi
   113 %files
   114 %defattr(-,root,root)
   115 %doc AUTHORS ChangeLog README
   116 /sbin/rpcbind
   117 %{_sbindir}/rpcinfo
   118 %{_mandir}/man8/*
   119 %config %{_initddir}/rpcbind
   121 %dir %attr(700,rpc,rpc) /var/lib/rpcbind
   123 %changelog
   124 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.2.0-20101201
   125 - Repackage for MeeGo 1.1
   127 * Tue Nov 30 2010 Steve Dickson <steved@redhat.com> - 0.2.0-8
   128 - Updated to the latest upstream release: rpcbind-0.2.1-rc2
   130 * Fri Jul 16 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.2.0-7
   131 - correct license tag to BSD
   133 * Tue Jul 13 2010 Steve Dickson <steved@redhat.com> - 0.2.0-6
   134 - Made initscript LSB compliant (bz 614193)
   135 - Added no fork patch
   137 * Tue Jul  6 2010 Steve Dickson <steved@redhat.com> - 0.2.0-5
   138 - Set SO_REUSEADDR on listening sockets (bz 597356)
   140 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-4
   141 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
   143 * Mon Jul 06 2009 Adam Jackson <ajax@redhat.com> 0.2.0-3
   144 - Requires(pre): coreutils for cut(1).
   146 * Thu Jun 25 2009 Steve Dickson <steved@redhat.com> - 0.2.0-2
   147 - Fixed pre scriptle failure during upgrades (bz 507364)
   148 - Corrected the usage info to match what the rpcbind man
   149     page says. (bz 466332)
   150 - Correct package issues (bz 503508)
   152 * Fri May 29 2009 Steve Dickson <steved@redhat.com> - 0.2.0-1
   153 - Updated to latest upstream release: 0.2.0
   155 * Tue May 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1.7-3
   156 - Replace the Sun RPC license with the BSD license, with the explicit permission of Sun Microsystems
   158 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
   159 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
   161 * Wed Nov 19 2008 Steve Dickson <steved@redhat.com>  0.1.7-1
   162 - Update to latest upstream release: 0.1.7
   164 * Tue Sep 30 2008 Steve Dickson <steved@redhat.com>  0.1.6-3
   165 - Fixed a typo in the rpcbind.init script that stop warm starts
   166   from happening with conrestarts
   167 - Fixed scriptlet failure (bz 462533)
   169 * Tue Sep 16 2008 Steve Dickson <steved@redhat.com> 0.1.6-2
   170 - Added usptream patches 01 thru 03 that do:
   171     * Introduce helpers for ipprot/netid mapping
   172     * Change how we decide on the netids to use for portmap
   173     * Simplify port live check in pmap_svc.c
   175 * Wed Jul  9 2008 Steve Dickson <steved@redhat.com> 0.1.6-1
   176 - Updated to latest upstream release 0.1.6
   178 * Wed Jul  2 2008 Steve Dickson <steved@redhat.com> 0.1.5-5
   179 - Fixed SYNOPSIS section in the rpcinfo man page (bz 453729)
   181 * Fri Jun 27 2008 Steve Dickson <steved@redhat.com> 0.1.5-4
   182 - Removed the documentation about the non-existent 
   183   '-L' flag (bz 446915)
   185 * Fri Jun 27 2008 Steve Dickson <steved@redhat.com> 0.1.5-3
   186 - Set password and service lookups to be local (bz 447092)
   188 * Mon Jun 23 2008 Steve Dickson <steved@redhat.com> 0.1.5-2
   189 - rpcbind needs to downgrade to non-priviledgied group.
   191 * Mon Jun 23 2008 Steve Dickson <steved@redhat.com> 0.1.5-1
   192 - Updated to latest upstream release 0.1.5
   194 * Mon Feb 11 2008 Steve Dickson <steved@redhat.com> 0.1.4-14
   195 - Fixed a warning in pmap_svc.c
   196 - Cleaned up warmstarts so uid are longer needed, also
   197   changed condrestarts to use warmstarts. (bz 428496)
   199 * Thu Jan 24 2008 Steve Dickson <steved@redhat.com> 0.1.4-13
   200 - Fixed connectivity with Mac OS clients by making sure handle_reply()
   201   sets the correct fromlen in its recvfrom() call (bz 244492)
   203 * Mon Dec 17 2007 Steve Dickson <steved@redhat.com> 0.1.4-12
   204 - Changed is_loopback() and check_access() see if the calling
   205   address is an address on a local interface, just not a loopback
   206   address (bz 358621).
   208 * Wed Oct 17 2007 Steve Dickson <steved@redhat.com> 0.1.4-11
   209 - Reworked logic in initscript so the correct exit is 
   210   used when networking does not exist or is set up
   211   incorrectly.
   213 * Tue Oct 16 2007 Steve Dickson <steved@redhat.com> 0.1.4-10
   214 - Corrected a typo in the initscript from previous 
   215   commit.
   217 * Mon Oct 15 2007 Steve Dickson <steved@redhat.com> 0.1.4-9
   218 - Fixed typo in Summary (bz 331811)
   219 - Corrected init script (bz 247046)
   221 * Sat Sep 15 2007 Steve Dickson <steved@redhat.com> 0.1.4-8
   222 - Fixed typo in init script (bz 248285)
   223 - Added autoconf rules to turn on secure host checking
   224   via libwrap. Also turned on host check by default (bz 248284)
   225 - Changed init script to start service in runlevel 2 (bz 251568)
   226 - Added a couple missing Requires(pre) (bz 247134)
   228 * Fri May 25 2007 Steve Dickson <steved@redhat.com> 0.1.4-7
   229 - Fixed condrestarts (bz 241332)
   231 * Tue May 22 2007 Steve Dickson <steved@redhat.com> 0.1.4-6
   232 - Fixed an ipv6 related segfault on startup (bz 240873)
   234 * Wed Apr 18 2007 Steve Dickson <steved@redhat.com> 0.1.4-5
   235 - Added dependency on setup which contains the correct
   236   rpcbind /etc/service entry which in turns stops 
   237   rpcbind from haning when NIS is enabled. (bz 236865)
   239 * Wed Apr 11 2007 Jeremy Katz <katzj@redhat.com> - 0.1.4-4
   240 - change man-pages requires into a conflicts as we don't have to have 
   241   man-pages installed, but if we do, we need the newer version
   243 * Fri Apr  6 2007 Steve Dickson <steved@redhat.com> 0.1.4-3
   244 - Fixed the Provides and Obsoletes statments to correctly
   245   obsolete the portmap package.
   246 * Tue Apr  3 2007 Steve Dickson <steved@redhat.com> 0.1.4-2
   247 - Added dependency on glibc-common which allows the
   248   rpcinfo command to be installed in the correct place.
   249 - Added dependency on man-pages so the rpcinfo man 
   250   pages don't conflict.
   251 - Added the creation of /var/lib/rpcbind which will be
   252   used to store state files.
   253 - Make rpcbind run with the 'rpc' uid/gid when it exists.
   255 * Wed Feb 21 2007 Steve Dickson <steved@redhat.com> 0.1.4-1
   256 - Initial commit
   257 - Spec reviewed (bz 228894)
   258 - Added the Provides/Obsoletes which should
   259   cause rpcbind to replace portmapper

mercurial