> > I'll try to upload the src.rpm to ftp://ftp.linux-mandrake.com/incoming/
> i believe it not necessary anymore since titi has did the changes.
negative... I screwed up on that package. the path to makedbm in
/var/yp/Makefile is incorrect in the current cooker package. Fix is
attached.
--- ypserv.spec.orig Mon Jul 24 19:29:26 2000
+++ ypserv.spec Mon Jul 24 20:13:51 2000
@@ -1,6 +1,6 @@
%define name ypserv
%define version 1.3.9
-%define release 4mdk
+%define release 5mdk
Summary: The NIS (Network Information Service) server.
Summary(de): NIS/YP-Server
@@ -63,7 +63,12 @@
%build
cp etc/README etc/README.etc
-%configure --enable-tcp-wrapper --enable-fqdn --enable-yppasswd
+%configure \
+ --bindir=/usr/lib/yp \
+ --enable-fqdn \
+ --enable-tcp-wrapper \
+ --enable-yppasswd \
+ --libexecdir=/usr/lib/yp
make
%install
@@ -117,6 +122,9 @@
%{_includedir}/*/*
%changelog
+* Mon Jul 24 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 1.3.9-5mdk
+- fixed path of makedbm in /var/yp/Makefile (was broken with 4mdk)
+
* Sun Jul 23 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 1.3.9-4mdk
- macroszifications
- BM
%define name ypserv
%define version 1.3.9
%define release 5mdk
Summary: The NIS (Network Information Service) server.
Summary(de): NIS/YP-Server
Summary(fr): Serveur NIS/YP.
Summary(tr): NIS/YP Sunucusu
Url: http://www-vt.uni-paderborn.de/~kukuk/linux/nis.html
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: System/Servers
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/NIS/ypserv-%{PACKAGE_VERSION}.tar.bz2
Source1: ypserv-ypserv.init
Source2: ypserv-yppasswdd.init
Requires: portmap tcp_wrappers
Prereq: /sbin/chkconfig
Buildroot: %{_tmppath}/%{name}-%{version}-root/
Patch0: patch-ypMakefile.bz2
Patch1: ypserv-Makefile.patch.bz2
Obsoletes: yppasswd
%description
The Network Information Service (NIS) is a system which provides network
information (login names, passwords, home directories, group information)
to all of the machines on a network. NIS can enable users to login on
any machine on the network, as long as the machine has the NIS client
programs running and the user's password is recorded in the NIS passwd
database. NIS was formerly known as Sun Yellow Pages (YP).
This package provides the NIS server, which will need to be running on
your network. NIS clients do not need to be running the server.
Install ypserv if you need an NIS server for your network. You'll also
need to install the yp-tools and ypbind packages onto any NIS client
machines.
%description -l de
ypserv ist eine Implementierung des NIS/YP-Netzwerkprotokolls.
Es erm�glicht die netwerkweite Verteilung von Hostname, Benutzername
und anderen Information. Dies ist der NIS-Server und wird auf NIS-
Clients nicht ben�tigt.
%description -l fr
ypserv est une implantation du protocole r�seau NIS/YP standard.
Il permet une distribution, � l'�chelle du r�seau, du nom de la machine,
du nom de l'utilisateur et des autres bases de donn�es d"informations.
Il s'agit du serveur NIS et n'est pas n�cessaire sur les clients NIS.
%description -l tr
ypserv, standart NIS/YP a� protokol�n�n bir uygulamas�d�r. Bu sunucu ile makina
ad�, kullan�c� ismi gibi bilgiler a� �ap�nda da��t�labilir ve bir dizi makina
�zerinde e� olmas� sa�lanabilir. Bu paket sadece sunucuyu i�ermektedir, bu
hizmetten yararlanacak olan istemci makinalarda bulunmas� gerekmez.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
cp etc/README etc/README.etc
%configure \
--bindir=/usr/lib/yp \
--enable-fqdn \
--enable-tcp-wrapper \
--enable-yppasswd \
--libexecdir=/usr/lib/yp
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall \
CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
MAKEDBMDIR=$RPM_BUILD_ROOT%{_libdir}/yp \
MAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
MAN5DIR=$RPM_BUILD_ROOT%{_mandir}/man5 \
MAN8DIR=$RPM_BUILD_ROOT%{_mandir}/man8 \
YPBINDIR=$RPM_BUILD_ROOT%{_libdir}/yp \
YPMAPDIR=$RPM_BUILD_ROOT/var/yp
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir}
install -m755 $RPM_SOURCE_DIR/ypserv-ypserv.init
$RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/ypserv
install -m755 $RPM_SOURCE_DIR/ypserv-yppasswdd.init
$RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/yppasswdd
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add ypserv
/sbin/chkconfig --add yppasswdd
%triggerpostun -- ypserv <= ypserv-1.3.0-2
/sbin/chkconfig --add ypserv
%trigerpostun -- yppasswd
/sbin/chkconfig --add yppasswdd
%postun
if [ $1 = 0 ]; then
/sbin/chkconfig --del ypserv
/sbin/chkconfig --del yppasswdd
fi
%files
%defattr(-,root,root)
%doc README README.secure INSTALL ChangeLog TODO
%doc etc/ypserv.conf etc/securenets etc/README.etc
%config %{_sysconfdir}/ypserv.conf
%config /var/yp/*
%dir /var/yp
%config %{_sysconfdir}/rc.d/init.d/*
%{_libdir}/yp
%{_sbindir}/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_includedir}/*/*
%changelog
* Mon Jul 24 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 1.3.9-5mdk
- fixed path of makedbm in /var/yp/Makefile (was broken with 4mdk)
* Sun Jul 23 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 1.3.9-4mdk
- macroszifications
- BM
* Thu Mar 30 2000 Thierry Vignaud <[EMAIL PROTECTED]> 1.3.9-3mdk
- fix group
- use spechelper (resulting in spec cleanups)
* Mon Dec 6 1999 Philippe Libat <[EMAIL PROTECTED]>
- Added Makefile patch
- Spec modification
* Wed Oct 27 1999 Francis Galiegue <[EMAIL PROTECTED]>
- Updated to 1.3.9 - fixes numerous security bugs
- export shadow map but set MERGE_(PASSWD|GROUP) to false
* Fri Jul 30 1999 Thierry Vignaud <[EMAIL PROTECTED]>
- Updated to 1.3.7
* Sun Jul 18 1999 Axalon Bloodstone <[EMAIL PROTECTED]>
- 1.3.6.94
* Tue May 11 1999 Bernhard Rosenkraenzer <[EMAIL PROTECTED]>
- Mandrake adaptions
* Fri Mar 26 1999 Cristian Gafton <[EMAIL PROTECTED]>
- version 1.3.6.91
* Sun Mar 21 1999 Cristian Gafton <[EMAIL PROTECTED]>
- auto rebuild in the new build environment (release 4)
* Mon Feb 8 1999 Bill Nottingham <[EMAIL PROTECTED]>
- move to start before ypbind
* Thu Dec 17 1998 Cristian Gafton <[EMAIL PROTECTED]>
- build for glibc 2.1
- upgraded to 1.3.5
* Tue Aug 4 1998 Jeff Johnson <[EMAIL PROTECTED]>
- yppasswd.init: lock file must have same name as init.d script, not daemon
* Sat Jul 11 1998 Cristian Gafton <[EMAIL PROTECTED]>
- upgraded to 1.3.4
- fixed the fubared Makefile
- link against gdbm instead of ndbm (it seems to work better)
* Sat May 02 1998 Cristian Gafton <[EMAIL PROTECTED]>
- upgraded to 1.3.1
- enhanced init scripts
* Fri May 01 1998 Jeff Johnson <[EMAIL PROTECTED]>
- added triggerpostun
- Use libdb fro dbp_*().
* Fri Apr 24 1998 Prospector System <[EMAIL PROTECTED]>
- translations modified for de, fr, tr
* Mon Apr 13 1998 Cristian Gafton <[EMAIL PROTECTED]>
- updated to 1.3.0
* Wed Dec 03 1997 Cristian Gafton <[EMAIL PROTECTED]>
- updated to 1.2.5
- added buildroot; updated spec file
- added yppasswdd init file
* Tue Nov 04 1997 Erik Troan <[EMAIL PROTECTED]>
- init script shouldn't set the domain name
* Tue Oct 14 1997 Erik Troan <[EMAIL PROTECTED]>
- supports chkconfig
- updated initscript for status and restart
- turned off in all runlevels, by default
- removed postinstall script which didn't do anything
* Thu Oct 09 1997 Erik Troan <[EMAIL PROTECTED]>
- added patch to build against later glibc
* Mon Jul 21 1997 Erik Troan <[EMAIL PROTECTED]>
- built against glibc
* Wed Apr 23 1997 Erik Troan <[EMAIL PROTECTED]>
- updated to 1.1.7.
* Fri Mar 14 1997 Erik Troan <[EMAIL PROTECTED]>
- Updated to ypserv 1.1.5, ported to Alpha (glibc).
* Fri Mar 07 1997 Erik Troan <[EMAIL PROTECTED]>
- Removed -pedantic which confuses the SPARC :-(