]>
Commit | Line | Data |
---|---|---|
cde43425 | 1 | # TODO |
074aef10 | 2 | # - libxcrypt support? (or move to libxcrypt globally) |
cde43425 | 3 | # - /usr/include/rpcsvc/ypxfrd.x should be in -devel package? |
748b4b47 | 4 | Summary: The NIS (Network Information Service) server |
2de72f69 ER |
5 | Summary(es.UTF-8): Servidor NIS/YP |
6 | Summary(ja.UTF-8): NIS(ネットワーク情報サービス)サーバー | |
7 | Summary(pl.UTF-8): Serwer NIS (Network Information Service) | |
8 | Summary(pt_BR.UTF-8): Servidor NIS/YP | |
9 | Summary(ru.UTF-8): Сервер NIS (Network Information Service) | |
10 | Summary(uk.UTF-8): Сервер NIS (Network Information Service) | |
11 | Summary(zh_CN.UTF-8): NIS(网络信息服务)服务器 | |
5b565029 | 12 | Name: ypserv |
074aef10 JB |
13 | Version: 4.1 |
14 | Release: 1 | |
15 | License: GPL v2 | |
b82f91a3 | 16 | Group: Networking/Daemons |
074aef10 JB |
17 | #Source0Download: https://github.com/thkukuk/ypserv/releases |
18 | Source0: https://github.com/thkukuk/ypserv/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
19 | # Source0-md5: 27df9000c34cb300e9b6425cd299cb2f | |
b008b5bc | 20 | Source1: %{name}-%{name}.init |
748b4b47 | 21 | Source2: %{name}-yppasswdd.init |
31775587 | 22 | Source3: %{name}-ypxfrd.init |
6f1c1a5f | 23 | Source4: %{name}.sysconfig |
748b4b47 | 24 | Patch0: %{name}-ypMakefile.patch |
7097457c | 25 | Patch2: %{name}-nfsnobody.patch |
5b2598b8 | 26 | Patch3: %{name}-awk.patch |
31775587 | 27 | URL: http://www.linux-nis.org/ |
074aef10 | 28 | BuildRequires: autoconf >= 2.50 |
9f646857 | 29 | BuildRequires: automake >= 1:1.7 |
074aef10 | 30 | BuildRequires: docbook-dtd43-xml |
a9aa0f7c | 31 | BuildRequires: gdbm-devel |
074aef10 JB |
32 | BuildRequires: libnsl-devel >= 1.0.4 |
33 | BuildRequires: libtirpc-devel >= 1.0.1 | |
34 | BuildRequires: libxslt-progs | |
35 | BuildRequires: pkgconfig | |
76b5cb3e | 36 | BuildRequires: rpmbuild(macros) >= 1.268 |
074aef10 JB |
37 | BuildRequires: systemd-devel >= 1:209 |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
5980d26f | 40 | Requires(post,preun): /sbin/chkconfig |
4ffeca2c | 41 | Requires: FHS >= 2.3-18 |
777bc5fa | 42 | Requires: glibc >= 2.2 |
074aef10 JB |
43 | Requires: libnsl >= 1.0.4 |
44 | Requires: libtirpc >= 1.0.1 | |
1567faa1 | 45 | Requires: rc-scripts >= 0.4.1.5 |
074aef10 | 46 | Requires: rpcbind |
5b565029 | 47 | Obsoletes: yppasswd |
76b5cb3e | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5b565029 | 49 | |
faca0906 | 50 | %define _libexecdir %{_libdir}/yp |
e0e19f89 | 51 | |
5b565029 | 52 | %description |
e0e19f89 | 53 | The Network Information Service (NIS) is a system which provides |
54 | network information (login names, passwords, home directories, group | |
55 | information) to all of the machines on a network. NIS can enable users | |
56 | to login on any machine on the network, as long as the machine has the | |
57 | NIS client programs running and the user's password is recorded in the | |
58 | NIS passwd database. NIS was formerly known as Sun Yellow Pages (YP). | |
5b565029 JR |
59 | |
60 | This package provides the NIS server, which will need to be running on | |
e0e19f89 | 61 | your network. NIS clients do not need to be running the server. |
5b565029 | 62 | |
e0e19f89 | 63 | Install ypserv if you need an NIS server for your network. You'll also |
5b565029 JR |
64 | need to install the yp-tools and ypbind packages onto any NIS client |
65 | machines. | |
66 | ||
772a076f JR |
67 | %description -l es.UTF-8 |
68 | ypserv es una implementación del protocolo padrón de red NIS/YP. | |
69 | Permite el uso distribuido de información como hostname, username, | |
d36a3606 | 70 | etc. |
71 | ||
772a076f JR |
72 | %description -l pl.UTF-8 |
73 | NIS (Network Information Service) to system dostarczający informacje | |
74 | sieciowe (nazwy użytkowników, hasła, katalogi domowe, informacje o | |
75 | grupach) wszystkim maszynom w sieci. NIS może pozwalać użytkownikom | |
76 | logować się na dowolnej maszynie w sieci pod warunkiem, że maszyna ma | |
77 | działające programy klienckie NIS i hasło użytkownika jest zapisane w | |
78 | bazie haseł NIS. NIS był wcześniej znany jako YP (Sun Yellow Pages). | |
79 | ||
80 | Ten pakiet zawiera serwer NIS, który musi działać w sieci. Klienci nie | |
81 | muszą działać na maszynie serwera. | |
82 | ||
83 | %description -l pt_BR.UTF-8 | |
84 | ypserv é uma implementação do protocolo padrão de rede NIS/YP. Ele | |
85 | permite o uso distribuído de informações como hostname, username, etc. | |
86 | ||
87 | %description -l ru.UTF-8 | |
88 | Network Information Service (NIS) - это система, которая предоставляет | |
89 | сетевую информацию (логины, пароли, домашние каталоги, группы и т.п.) | |
90 | всем машинам в сети. NIS может разрешить пользователям вход на любой | |
91 | машине если на этой машине запущены клиентские программы NIS и пароль | |
92 | пользователя записан в базу данных паролей NIS. NIS ранее был известен | |
93 | как Sun Yellow Pages (YP). | |
94 | ||
95 | Этот пакет содержит сервер NIS, который должен быть запущен в вашей | |
96 | сети. Клиенты NIS не обязаны запускать сервер NIS. | |
97 | ||
98 | Установите ypserv если вам нужен сервер NIS для вашей сети. Вам также | |
99 | надо будет установить пакеты yp-tools и ypbind на каждой машине, | |
100 | которая должна быть клиентом NIS. | |
101 | ||
102 | %description -l uk.UTF-8 | |
103 | Network Information Service (NIS) - це система, яка надає мережеву | |
104 | інформацію (логіни, паролі, домашні каталоги, групи і т.і.) всім | |
105 | машинам у мережі. NIS може дозволити користувачам вхід на будь-якій | |
106 | машині якщо на цій машині запущені клієнтські програми NIS та пароль | |
107 | користувача записаний у базу даних паролів NIS. NIS раніше був відомий | |
108 | як Sun Yellow Pages (YP). | |
109 | ||
110 | Цей пакет містить сервер NIS, який повинен бути запущений у вашій | |
111 | мережі. Клієнти NIS не повинні запускати сервер NIS. | |
112 | ||
113 | Встановіть ypserv якщо вам потрібен сервер NIS для вашої мережі. Вам | |
114 | також треба буде встановити пакети yp-tools та ypbind на кожній | |
115 | машині, яка повинна бути клієнтом NIS. | |
d36a3606 | 116 | |
5b565029 | 117 | %prep |
47a22a36 | 118 | %setup -q |
1c922766 | 119 | %patch0 -p1 |
1c922766 | 120 | %patch2 -p1 |
5b2598b8 | 121 | %patch3 -p1 |
5b565029 | 122 | |
074aef10 | 123 | %{__mv} etc/README etc/README.etc |
5980d26f | 124 | |
5b565029 | 125 | %build |
31775587 | 126 | %configure \ |
127 | --enable-check-root \ | |
5b565029 | 128 | --enable-fqdn \ |
074aef10 JB |
129 | --enable-yppasswd \ |
130 | --with-dbmliborder=gdbm | |
31775587 | 131 | %{__make} |
5b565029 JR |
132 | |
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
6f1c1a5f | 135 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
748b4b47 | 136 | |
760023c6 | 137 | %{__make} install \ |
31775587 | 138 | DESTDIR=$RPM_BUILD_ROOT \ |
139 | YPMAPDIR=/var/yp | |
5b565029 | 140 | |
e0e19f89 | 141 | install etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir} |
5b565029 JR |
142 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ypserv |
143 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/yppasswdd | |
31775587 | 144 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ypxfrd |
ed53ffa6 | 145 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ypserv |
6f1c1a5f | 146 | |
5b565029 JR |
147 | %clean |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %post | |
315456f9 | 151 | /sbin/chkconfig --add ypserv |
76b5cb3e ER |
152 | %service ypserv restart "YP server" |
153 | ||
315456f9 | 154 | /sbin/chkconfig --add yppasswdd |
76b5cb3e ER |
155 | %service yppasswdd restart "YP password changing server" |
156 | ||
31775587 | 157 | /sbin/chkconfig --add ypxfrd |
76b5cb3e | 158 | %service ypxfrd restart "YP map server" |
5b565029 | 159 | |
76b5cb3e | 160 | %triggerpostun -- yppasswd |
5b565029 JR |
161 | /sbin/chkconfig --add yppasswdd |
162 | ||
748b4b47 | 163 | %preun |
315456f9 | 164 | if [ "$1" = "0" ]; then |
76b5cb3e | 165 | %service ypserv stop |
315456f9 | 166 | /sbin/chkconfig --del ypserv |
76b5cb3e ER |
167 | |
168 | %service yppasswdd stop | |
315456f9 | 169 | /sbin/chkconfig --del yppasswdd |
76b5cb3e ER |
170 | |
171 | %service ypxfrd stop | |
31775587 | 172 | /sbin/chkconfig --del ypxfrd |
315456f9 | 173 | fi |
b008b5bc | 174 | |
5b565029 JR |
175 | %files |
176 | %defattr(644,root,root,755) | |
5980d26f | 177 | %doc README ChangeLog TODO NEWS |
0df11eea | 178 | %doc etc/ypserv.conf etc/securenets etc/README.etc |
074aef10 JB |
179 | %attr(755,root,root) %{_sbindir}/rpc.yppasswdd |
180 | %attr(755,root,root) %{_sbindir}/rpc.ypxfrd | |
181 | %attr(755,root,root) %{_sbindir}/yppush | |
182 | %attr(755,root,root) %{_sbindir}/ypserv | |
183 | %dir %{_libdir}/yp | |
184 | %attr(755,root,root) %{_libdir}/yp/create_printcap | |
185 | %attr(755,root,root) %{_libdir}/yp/makedbm | |
186 | %attr(755,root,root) %{_libdir}/yp/match_printcap | |
187 | %attr(755,root,root) %{_libdir}/yp/mknetid | |
188 | %attr(755,root,root) %{_libdir}/yp/pwupdate | |
189 | %attr(755,root,root) %{_libdir}/yp/revnetgroup | |
190 | %attr(755,root,root) %{_libdir}/yp/yphelper | |
191 | %attr(755,root,root) %{_libdir}/yp/ypinit | |
192 | %attr(755,root,root) %{_libdir}/yp/ypxfr | |
193 | %attr(755,root,root) %{_libdir}/yp/ypxfr_* | |
ba484b41 | 194 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ypserv.conf |
6f1c1a5f | 195 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ypserv |
ba484b41 | 196 | %config(noreplace) %verify(not md5 mtime size) /var/yp/Makefile |
074aef10 JB |
197 | %attr(754,root,root) /etc/rc.d/init.d/yppasswdd |
198 | %attr(754,root,root) /etc/rc.d/init.d/ypserv | |
199 | %attr(754,root,root) /etc/rc.d/init.d/ypxfrd | |
200 | %{_mandir}/man5/netgroup.5* | |
201 | %{_mandir}/man5/ypserv.conf.5* | |
202 | %{_mandir}/man8/makedbm.8* | |
203 | %{_mandir}/man8/mknetid.8* | |
204 | %{_mandir}/man8/pwupdate.8* | |
205 | %{_mandir}/man8/revnetgroup.8* | |
206 | %{_mandir}/man8/rpc.yppasswdd.8* | |
207 | %{_mandir}/man8/rpc.ypxfrd.8* | |
208 | %{_mandir}/man8/yphelper.8* | |
209 | %{_mandir}/man8/ypinit.8* | |
210 | %{_mandir}/man8/yppasswdd.8* | |
211 | %{_mandir}/man8/yppush.8* | |
212 | %{_mandir}/man8/ypserv.8* | |
213 | %{_mandir}/man8/ypxfr.8* | |
214 | %{_mandir}/man8/ypxfrd.8* | |
5980d26f | 215 | %{_includedir}/rpcsvc/ypxfrd.x |