Summary: A next-generation printing system for UNIX Summary(pl): System drukowania nowej generacji Summary(zh_CN): LPRng--´ňÓĄłĚĐň Name: LPRng Version: 3.8.1 Release: 2 License: GPL Group: Applications/System Source0: ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz Source1: %{name}.init Source2: %{name}.conf Source3: %{name}.printcap Source4: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2 Patch0: %{name}-jobfilescan.patch Patch1: %{name}-ac_fixes.patch Patch2: %{name}-manpage.patch Patch3: %{name}-shutdown.patch Patch4: %{name}-nproc-unlimited.patch URL: http://www.astart.com/lprng/LPRng.html BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-devel BuildRequires: libtool BuildRequires: ncurses-devel >= 5.0 Prereq: /sbin/ldconfig Prereq: /sbin/chkconfig Prereq: rc-scripts >= 0.2.0 Provides: lpr Obsoletes: lpr Obsoletes: cups BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The LPRng software is an enhanced, extended, and portable implementation of the Berkeley LPR print spooler functionality. While providing the same interface and meeting RFC1179 requirements, the implementation is completely new and provides support for the following features: lightweight (no databases needed) lpr, lpc, and lprm programs; dynamic redirection of print queues; automatic job holding; highly verbose diagnostics; multiple printers serving a single queue; client programs do not need to run SUID root; greatly enhanced security checks; and a greatly improved permission and authorization mechanism. The source software compiles and runs on a wide variety of UNIX systems, and is compatible with other print spoolers and network printers that use the LPR interface and meet RFC1179 requirements. LPRng provides emulation packages for the SVR4 lp and lpstat programs, eliminating the need for another print spooler package. These emulation packages can be modified according to local requirements, in order to support vintage printing systems. For users that require secure and/or authenticated printing support, LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP authentication. LPRng is being adopted by MIT for use as their Campus Wide printing support system. Additional authentication support is extremely simple to add. LPRng is Open Source Software, and the current public distribution is available from the listed FTP and Web Sites. %description -l pl LPRng jest rozszerzoną, ulepszoną i portowalną implementacją Berkeley'owskiego LPR print spooler'a. Dostarcza ten sam interfejs oraz jest zgodny z wymaganiami RFC1179. Jednocześnie wykonanie jest całkowicie nowe i dostarcza następujące rzeczy: - programy - "lekki" lpr (nie są potrzebne żadne bazy danych), lpc, oraz lprm; - dynamiczna redyrekcja do kolejek; - automatyczne wstrzymywanie zadań; - "gadatliwa" diagnostyka; - obsługę wielu drukarek na jednej kolejce; - programy klienckie nie muszą być SUID root; - mocno rozszerzona kontrola bezpieczeństwa; - mocno rozszerzone mechanizmy bezpieczeństwa i kontroli uprawnień. Oprogramowanie to kompiluje się i działa na wielu systemach UNIX'owych i jest kompatybilne z innymi print spoolami oraz drukarkami sieciowymi, które używają interfejsu LPR oraz spełniają wymagania RFC1179. LPRng dostarcza pakiety emulacyjne dla programów SVR4 lp oraz lpstat, eliminując w ten sposób konieczność posiadania jeszcze jednego pakietu print spoola. Te pakiety mogą być modyfikowane zgodnie z lokalnymi wymaganiami. Dla użytkowników, którzy potrzebują bezpiecznej i autentyfikowanej obsługi drukowania LPRng wspiera Kerberos V, MIT Kerberos IV Print Support oraz PGP. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build rm -f missing acinclude.m4 gettextize --copy --force libtoolize --copy --force aclocal autoconf (cd gdbm-1.8.0 ; aclocal ; autoconf ) %configure \ --disable-setuid \ --with-userid=lp \ --with-groupid=lp \ --with-filterdir=%{_libdir}/lpfilters \ --with-lockfile=%{_var}/spool/lpd/lpd %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd/lp} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ POSTINSTALL="NO" install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd # yes, overwrite distribution lpd.conf install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf echo "default_printer = lp" >>$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/printcap install lpd.perms $RPM_BUILD_ROOT%{_sysconfdir}/ # default spool rm -fr TESTSUPPORT/{Makefile*,LPD} mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} gzip -9nf CHANGES CONTRIBUTORS README* TESTSUPPORT/* %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig /sbin/chkconfig --add lpd if [ -f /var/lock/subsys/lpd ]; then /etc/rc.d/init.d/lpd restart 1>&2 else echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon." fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/lpd ]; then /etc/rc.d/init.d/lpd stop 1>&2 fi /sbin/chkconfig --del lpd fi %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) %doc *.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html HOWTO/CHANGES %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap %attr(754,root,root) /etc/rc.d/init.d/lpd %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/* %attr(755,root,root) %{_libdir}/lib*.so.*.* %dir %{_libdir}/lpfilters %attr(755,root,root) %{_libdir}/lpfilters/* %dir %attr(750,root,lp) %{_var}/spool/lpd %dir %attr(770,root,lp) %{_var}/spool/lpd/lp %{_mandir}/man[158]/* %lang(pl) %{_mandir}/pl/man[158]/*