Package rpcbind: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | Name: rpcbind Version: 0.2.1 Release: alt0.6 Summary: RPC port mapper License: BSD Group: Networking/Other Source: %name-%version-%release.tar BuildRequires: libtirpc-devel libwrap-devel Provides: portmap = 2:%version-%release Obsoletes: portmap Conflicts: man-pages < 3.32-alt2 %description %name is a server that converts RPC (Remote Procedure Call) program numbers into DARPA protocol port numbers. It must be running in order to make RPC calls. %prep %setup %build [ ! -f ./autogen.sh ] || sh ./autogen.sh %configure \ --enable-libwrap \ --enable-warmstarts \ --with-statedir=%_localstatedir/rpcbind \ --with-rpcuser=rpc \ # make %install %make_install DESTDIR=%buildroot sbindir=/sbin install mkdir -p %buildroot%_localstatedir/rpcbind install -pm0755 -D rpcbind.init %buildroot%_initdir/rpcbind install -pm0755 -D rpcbind.control %buildroot%_controldir/rpcbind install -pm0600 -D rpcbind.sysconfig %buildroot%_sysconfdir/sysconfig/rpcbind install -pm0644 -D rpcbind.service %buildroot%systemd_unitdir/rpcbind.service %pre %pre_control rpcbind %post /usr/sbin/groupadd -r -f rpc /usr/sbin/useradd -r -g rpc -d / -s /dev/null -c 'Portmapper RPC user' -n rpc >/dev/null 2>&1 ||: %post_control -s local rpcbind %post_service %name %preun %preun_service %name %triggerun -- portmap [ $2 -eq 0 ] || exit 0 /usr/sbin/control-dump portmap if /sbin/chkconfig portmap; then /sbin/chkconfig rpcbind on [ ! -f /var/lock/subsys/portmap ] || touch /var/lock/subsys/rpcbind fi %triggerpostun -- portmap [ $2 -eq 0 ] || exit 0 fi=/var/run/control/rpcbind fo=/var/run/control/portmap [ ! -f $fo ] || mv -f $fo $fi /usr/sbin/control-restore rpcbind ||: /sbin/service rpcbind condrestart %files %doc README %config(noreplace) %_sysconfdir/sysconfig/rpcbind %_controldir/rpcbind %_initdir/%name %systemd_unitdir/rpcbind.service /sbin/rpcbind %_bindir/rpcinfo %_man8dir/rpcbind.8* %_man8dir/rpcinfo.8* %dir %attr(770,root,rpc) %_localstatedir/rpcbind %changelog * Tue Apr 16 2013 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.2.1-alt0.6 - 0.2.1-rc4 released * Mon Apr 25 2011 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.2.1-alt0.5 - fixed rpcbind not dropping privs to `rpc' user * Sun Apr 24 2011 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.2.1-alt0.4 - rpcinfo packaged * Fri Apr 22 2011 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.2.1-alt0.3 - 0.2.1-rc3 released * Sat Nov 6 2010 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.2.0-alt1 - 0.2.0 released * Thu May 28 2009 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.1.7-alt1 - Initial build |