Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
ypserv
ypserv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ypserv.spec of Package ypserv
# # spec file for package ypserv # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: ypserv Version: 4.0 Release: 0 Url: http://www.linux-nis.org/nis/ypserv/ Summary: YP - (NIS)-Server License: GPL-2.0 Group: Productivity/Networking/NIS PreReq: %fillup_prereq %if %{suse_version} < 1310 PreReq: %insserv_prereq %endif Source: ypserv-%{version}.tar.bz2 Source1: ypserv.init Source2: yppasswdd.init Source3: ypxfrd.init Source4: sysconfig.ypserv Source5: SuSEfirewall2.ypserv Source6: ypserv.service Source7: yppasswdd.service Source8: ypxfrd.service Source9: yppasswdd-systemd-exec Patch1: ypserv-2.32.diff # PATCH-FIX-UPSTREAM, bnc#011483 Patch2: 0001-use-_PATH_VARRUN-from-paths.h.patch BuildRequires: gdbm-devel BuildRequires: openslp-devel %if %{suse_version} >= 1310 BuildRequires: pkgconfig(libnsl) BuildRequires: pkgconfig(libsystemd-daemon) BuildRequires: pkgconfig(libtirpc) %{?systemd_requires} %else BuildRequires: libnsl-devel BuildRequires: libtirpc-devel %endif Requires: gawk Requires: make Requires: rpcbind BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Network Information Service (NIS) provides a simple network lookup service consisting of databases and processes. It was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same; only the name has changed. Its purpose is to provide information, that has to be known throughout the network, to all machines on the network. Information likely to be distributed by NIS is: login names/passwords/home directories (/etc/passwd) group information (/etc/group) host names and IP numbers (/etc/hosts) So, for example, if your password entry is recorded in the NIS passwd database, you will be able to login on all machines on the net which have the NIS client programs running. %prep %setup -q %patch1 %patch2 -p1 %build %configure --enable-fqdn --libexecdir="%{_libexecdir}/yp" make %install %make_install mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/yp %if %{suse_version} >= 1310 mkdir -p $RPM_BUILD_ROOT%{_unitdir} %else mkdir -p $RPM_BUILD_ROOT/etc/init.d %endif DOCDIR=%{_defaultdocdir}/yp install -d -m 755 $RPM_BUILD_ROOT${DOCDIR} install -d -m 755 $RPM_BUILD_ROOT${DOCDIR}/ypserv #install contrib/ypslave $RPM_BUILD_ROOT%{_sbindir} install -m 644 etc/ypserv.conf $RPM_BUILD_ROOT/etc/ install -m 644 etc/securenets $RPM_BUILD_ROOT/var/yp # install sysconfig.ypserv install -m 644 %SOURCE4 $RPM_BUILD_ROOT/var/adm/fillup-templates/ # install SuSEfirewall2 service script install -m 644 %SOURCE5 $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services/ypserv %if %{suse_version} >= 1310 # install systemd files install -m 644 %SOURCE6 $RPM_BUILD_ROOT%{_unitdir}/ypserv.service install -m 644 %SOURCE7 $RPM_BUILD_ROOT%{_unitdir}/yppasswdd.service install -m 644 %SOURCE8 $RPM_BUILD_ROOT%{_unitdir}/ypxfrd.service install -m 755 %SOURCE9 $RPM_BUILD_ROOT%{_libexecdir}/yp/yppasswdd-systemd-exec # create symlink for rcypserv, rcyppasswdd, rcypxfrd ln -s /sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcypserv ln -s /sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcyppasswdd ln -s /sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcypxfrd %else # install init scripts install -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/ypserv install -m 755 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/yppasswdd install -m 755 %SOURCE3 $RPM_BUILD_ROOT/etc/init.d/ypxfrd ln -sf ../../etc/init.d/yppasswdd $RPM_BUILD_ROOT%{_sbindir}/rcyppasswdd ln -sf ../../etc/init.d/ypxfrd $RPM_BUILD_ROOT%{_sbindir}/rcypxfrd ln -sf ../../etc/init.d/ypserv $RPM_BUILD_ROOT%{_sbindir}/rcypserv %endif # Remove files which should not be included: rm $RPM_BUILD_ROOT%{_prefix}/lib*/yp/match_printcap %if %{suse_version} >= 1310 # Systemd services %pre %service_add_pre ypserv.service %service_add_pre yppasswdd.service %service_add_pre ypxfrd.service %post %{fillup_only -n ypserv} %service_add_post ypserv.service %service_add_post yppasswdd.service %service_add_post ypxfrd.service %preun %service_del_preun ypserv.service %service_del_preun yppasswdd.service %service_del_preun ypxfrd.service %postun %service_del_postun ypserv.service %service_del_postun yppasswdd.service %service_del_postun ypxfrd.service %else # LSB init script %post %{fillup_and_insserv ypserv ypxfrd yppasswdd} %preun %stop_on_removal ypserv ypxfrd yppasswdd %postun %restart_on_update ypserv ypxfrd yppasswdd %insserv_cleanup %endif %files %defattr(-,root,root) %doc NEWS README TODO COPYING ChangeLog /var/adm/fillup-templates/sysconfig.ypserv %config(noreplace) /var/yp/Makefile %config(noreplace) /var/yp/securenets %config(noreplace) /etc/ypserv.conf %config /etc/sysconfig/SuSEfirewall2.d/services/ypserv %dir %{_libexecdir}/yp %dir /var/yp %if %{suse_version} >= 1310 %{_unitdir}/ypserv.service %{_unitdir}/yppasswdd.service %{_unitdir}/ypxfrd.service %{_libexecdir}/yp/yppasswdd-systemd-exec %else %config /etc/init.d/yppasswdd %config /etc/init.d/ypserv %config /etc/init.d/ypxfrd %endif %doc %{_mandir}/man5/netgroup.5.gz %doc %{_mandir}/man5/ypserv.conf.5.gz %doc %{_mandir}/man8/makedbm.8.gz %doc %{_mandir}/man8/mknetid.8.gz %doc %{_mandir}/man8/pwupdate.8.gz %doc %{_mandir}/man8/revnetgroup.8.gz %doc %{_mandir}/man8/rpc.yppasswdd.8.gz %doc %{_mandir}/man8/rpc.ypxfrd.8.gz %doc %{_mandir}/man8/yphelper.8.gz %doc %{_mandir}/man8/ypinit.8.gz %doc %{_mandir}/man8/yppasswdd.8.gz %doc %{_mandir}/man8/yppush.8.gz %doc %{_mandir}/man8/ypserv.8.gz %doc %{_mandir}/man8/ypxfr.8.gz %doc %{_mandir}/man8/ypxfrd.8.gz /usr/include/rpcsvc/ypxfrd.x %{_libexecdir}/yp/makedbm %{_libexecdir}/yp/create_printcap %{_libexecdir}/yp/mknetid %{_libexecdir}/yp/pwupdate %{_libexecdir}/yp/revnetgroup %{_libexecdir}/yp/yphelper %{_libexecdir}/yp/ypinit %{_libexecdir}/yp/ypxfr %{_libexecdir}/yp/ypxfr_* %{_sbindir}/rpc.ypxfrd %{_sbindir}/rpc.yppasswdd %{_sbindir}/yppush %{_sbindir}/ypserv %{_sbindir}/rcypserv %{_sbindir}/rcyppasswdd %{_sbindir}/rcypxfrd %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor