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.

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

mercurial