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