1 Summary: A next-generation printing system for UNIX
2 Summary(pl): System drukowania nowej generacji
3 Summary(zh_CN): LPRng--´òÓ¡³ÌÐò
8 Group: Applications/System
9 Group(de): Applikationen/System
10 Group(pl): Aplikacje/System
11 Source0: ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
14 Source3: %{name}.printcap
15 Source4: %{name}-pl-man-pages.tar.bz2
16 Patch0: %{name}-jobfilescan.patch
17 Patch1: %{name}-ac_fixes.patch
18 Patch2: %{name}-manpage.patch
19 Patch3: %{name}-shutdown.patch
20 Patch4: %{name}-nproc-unlimited.patch
21 URL: http://www.astart.com/lprng/LPRng.html
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: gettext-devel
25 BuildRequires: libtool
26 BuildRequires: ncurses-devel >= 5.0
27 Prereq: /sbin/ldconfig
28 Prereq: /sbin/chkconfig
29 Prereq: rc-scripts >= 0.2.0
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The LPRng software is an enhanced, extended, and portable
36 implementation of the Berkeley LPR print spooler functionality. While
37 providing the same interface and meeting RFC1179 requirements, the
38 implementation is completely new and provides support for the
39 following features: lightweight (no databases needed) lpr, lpc, and
40 lprm programs; dynamic redirection of print queues; automatic job
41 holding; highly verbose diagnostics; multiple printers serving a
42 single queue; client programs do not need to run SUID root; greatly
43 enhanced security checks; and a greatly improved permission and
44 authorization mechanism.
46 The source software compiles and runs on a wide variety of UNIX
47 systems, and is compatible with other print spoolers and network
48 printers that use the LPR interface and meet RFC1179 requirements.
49 LPRng provides emulation packages for the SVR4 lp and lpstat programs,
50 eliminating the need for another print spooler package. These
51 emulation packages can be modified according to local requirements, in
52 order to support vintage printing systems.
54 For users that require secure and/or authenticated printing support,
55 LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP
56 authentication. LPRng is being adopted by MIT for use as their Campus
57 Wide printing support system. Additional authentication support is
58 extremely simple to add. LPRng is Open Source Software, and the
59 current public distribution is available from the listed FTP and Web
63 LPRng jest rozszerzon±, ulepszon± i portowaln± implementacj±
64 Berkeley'owskiego LPR print spooler'a. Dostarcza ten sam interfejs
65 oraz jest zgodny z wymaganiami RFC1179. Jednocze¶nie wykonanie jest
66 ca³kowicie nowe i dostarcza nastêpuj±ce rzeczy:
67 - programy - "lekki" lpr (nie s± potrzebne ¿adne bazy danych),
69 - dynamiczna redyrekcja do kolejek;
70 - automatyczne wstrzymywanie zadañ;
71 - "gadatliwa" diagnostyka;
72 - obs³ugê wielu drukarek na jednej kolejce;
73 - programy klienckie nie musz± byæ SUID root;
74 - mocno rozszerzona kontrola bezpieczeñstwa;
75 - mocno rozszerzone mechanizmy bezpieczeñstwa i kontroli uprawnieñ.
77 Oprogramowanie to kompiluje siê i dzia³a na wielu systemach UNIX'owych
78 i jest kompatybilne z innymi print spoolami oraz drukarkami sieciowymi,
79 które u¿ywaj± interfejsu LPR oraz spe³niaj± wymagania RFC1179. LPRng
80 dostarcza pakiety emulacyjne dla programów SVR4 lp oraz lpstat,
81 eliminuj±c w ten sposób konieczno¶æ posiadania jeszcze jednego pakietu
82 print spoola. Te pakiety mog± byæ modyfikowane zgodnie z lokalnymi
85 Dla u¿ytkowników, którzy potrzebuj± bezpiecznej i autentyfikowanej
86 obs³ugi drukowania LPRng wspiera Kerberos V, MIT Kerberos IV Print
98 rm -f missing acinclude.m4
99 gettextize --copy --force
100 libtoolize --copy --force
103 (cd gdbm-1.8.0 ; aclocal ; autoconf )
108 --with-filterdir=%{_libdir}/lpfilters \
109 --with-lockfile=%{_var}/spool/lpd/lpd
114 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd/lp}
118 DESTDIR=$RPM_BUILD_ROOT \
121 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
122 # yes, overwrite distribution lpd.conf
123 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
124 echo "default_printer = lp" >>$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
125 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/printcap
126 install lpd.perms $RPM_BUILD_ROOT%{_sysconfdir}/
129 rm -fr TESTSUPPORT/{Makefile*,LPD}
130 mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
132 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
134 gzip -9nf CHANGES CONTRIBUTORS README* TESTSUPPORT/*
139 rm -rf $RPM_BUILD_ROOT
143 /sbin/chkconfig --add lpd
144 if [ -f /var/lock/subsys/lpd ]; then
145 /etc/rc.d/init.d/lpd restart 1>&2
147 echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
151 if [ "$1" = "0" ]; then
152 if [ -f /var/lock/subsys/lpd ]; then
153 /etc/rc.d/init.d/lpd stop 1>&2
155 /sbin/chkconfig --del lpd
158 %postun -p /sbin/ldconfig
160 %files -f %{name}.lang
161 %defattr(644,root,root,755)
162 %doc *.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html HOWTO/CHANGES
163 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf
164 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms
165 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap
166 %attr(754,root,root) /etc/rc.d/init.d/lpd
167 %attr(755,root,root) %{_bindir}/*
168 %attr(755,root,root) %{_sbindir}/*
169 %attr(755,root,root) %{_libdir}/lib*.so.*.*
170 %dir %{_libdir}/lpfilters
171 %attr(755,root,root) %{_libdir}/lpfilters/*
172 %dir %attr(750,root,lp) %{_var}/spool/lpd
173 %dir %attr(770,root,lp) %{_var}/spool/lpd/lp
174 %{_mandir}/man[158]/*
175 %lang(pl) %{_mandir}/pl/man[158]/*