]> git.pld-linux.org Git - packages/ypbind-mt.git/blob - ypbind-mt.spec
- up to 1.37.1
[packages/ypbind-mt.git] / ypbind-mt.spec
1 Summary:        The NIS daemon which binds NIS clients to an NIS domain
2 Summary(es.UTF-8):      Proceso de ligación NIS
3 Summary(pl.UTF-8):      Demon NIS przyłączający klientów NIS do domeny NIS
4 Summary(pt_BR.UTF-8):   Processo de ligação NIS
5 Summary(zh_CN.UTF-8):   NIS 服务器
6 Name:           ypbind-mt
7 Version:        1.37.1
8 Release:        1
9 License:        GPL
10 Group:          Networking/Daemons
11 Source0:        http://www.linux-nis.org/download/ypbind-mt//%{name}-%{version}.tar.bz2
12 # Source0-md5:  8af8d35e7b9a7fcc3a1576697a04bd82
13 Source1:        ypbind.init
14 Source2:        yp.conf
15 Patch0:         %{name}-pthread.patch
16 Patch1:         %{name}-broadcast.patch
17 Patch2:         %{name}-dbus.patch
18 URL:            http://www.linux-nis.org/
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  dbus-devel
23 BuildRequires:  dbus-glib-devel
24 BuildRequires:  gettext-devel
25 BuildRequires:  rpmbuild(macros) >= 1.268
26 Requires(post,preun):   /sbin/chkconfig
27 Requires:       nss_nis
28 Requires:       portmap
29 Requires:       rc-scripts >= 0.4.1.5
30 Requires:       yp-tools
31 Provides:       ypbind
32 Obsoletes:      ypbind
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _sbindir        /sbin
36
37 %description
38 The Network Information Service (NIS) is a system which provides
39 network information (login names, passwords, home directories, group
40 information) to all of the machines on a network. NIS can enable users
41 to login on any machine on the network, as long as the machine has the
42 NIS client programs running and the user's password is recorded in the
43 NIS passwd database. NIS was formerly known as Sun Yellow Pages (YP).
44
45 This package provides the ypbind daemon. The ypbind daemon binds NIS
46 clients to an NIS domain. Ypbind must be running on any machines which
47 are running NIS client programs.
48
49 Install the ypbind package on any machines which are running NIS
50 client programs (included in the yp-tools package). If you need an NIS
51 server, you'll also need to install the ypserv package to a machine on
52 your network.
53
54 %description -l es.UTF-8
55 Este es un daemon que se ejecuta en clientes NIS/YP y los relaciona a
56 un dominio NIS. Debe ejecutarse en sistemas basados en la glibc para
57 funcionaren como clientes NIS.
58
59 %description -l pl.UTF-8
60 NIS (Network Information Service) to system dostarczający informacje
61 sieciowe (nazwy użytkowników, hasła, katalogi domowe, informacje o
62 grupach) wszystkim maszynom w sieci. NIS może pozwalać użytkownikom
63 logować się na dowolnej maszynie w sieci pod warunkiem, że maszyna ma
64 działające programy klienckie NIS i hasło użytkownika jest zapisane w
65 bazie haseł NIS. NIS był wcześniej znany jako YP (Sun Yellow Pages).
66
67 Ten pakiet zawiera demona ypbind. Demon ten przyłącza klientów NIS do
68 domeny NIS. ypbind musi działać na każdej maszynie, na której działają
69 programy klienckie NIS.
70
71 %description -l pt_BR.UTF-8
72 Este é um daemon que roda em clientes NIS/YP e os relaciona a um
73 domínio NIS. Ele deve estar rodando em sistemas baseados na glibc para
74 agirem como clientes NIS.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79 %patch1 -p1
80 %patch2 -p1
81
82 cat m4/jh_path_xml_catalog.m4 >> acinclude.m4
83 rm -rf m4
84
85 %build
86 %{__gettextize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__automake}
90 %configure \
91         --disable-slp
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,var/yp/binding}
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ypbind
102 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/yp.conf
103
104 %find_lang %{name}
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post
110 /sbin/chkconfig --add ypbind
111 %service ypbind restart
112
113 %preun
114 if [ "$1" = "0" ]; then
115         %service ypbind stop
116         /sbin/chkconfig --del ypbind
117 fi
118
119 %files -f %{name}.lang
120 %defattr(644,root,root,755)
121 %doc README
122 %attr(755,root,root) %{_sbindir}/ypbind
123 %attr(754,root,root) /etc/rc.d/init.d/*
124 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yp.conf
125 %{_mandir}/man[58]/*
126 %dir /var/yp/binding
This page took 0.068675 seconds and 3 git commands to generate.