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