p910nd ver 0.93
[tomato.git] / release / src / router / p910nd / p910nd.spec
blob2f5942322524bd42bfc71a5fb330daaad25758f0
1 Summary: p910nd is a small daemon that copies any data received to the corresponding printer port.
2 Name: p910nd
3 Version: 0.93
4 Release: 1
5 URL: http://etherboot.sourceforge.net/p910nd
6 Vendor: Ken Yap
7 License: GPL v2
8 Source0: http://etherboot.sourceforge.net/p910nd/%{name}-%{version}.tar.gz
9 BuildArchitectures: i386 x86_64
10 BuildRoot: %{_tmppath}/%{name}-%{version}-build
11 Group: Networking
13 %description
14 p910nd implements the port 9100 network printer protocol which simply
15 copies any incoming data on the port to the printer (and in the reverse
16 direction, if bidirectional mode is selected). Both parallel and USB
17 printers are supported. This protocol was used in HP's printers and is
18 called JetDirect (probably TM). p910nd is particularly useful for
19 diskless hosts and embedded devices because it does not require any disk
20 space for spooling as this is done at the sending host.
22 %pre
24 %prep
25 rm -fr %{buildroot}
26 %setup -n p910nd-%{version}
28 %build
29 make
31 %install
32 %makeinstall
34 %post
35 insserv /etc/init.d/p910nd
37 %preun
38 insserv -r /etc/init.d/p910nd
40 %postun
42 %clean
43 rm -fr %{buildroot}
45 %files
46 %defattr(755, root, root)
47 /etc/sysconfig/p910nd
48 /etc/init.d/p910nd
49 /usr/sbin/p910nd
50 %{_mandir}/man8/p910nd.8.gz
52 %changelog
53 * Fri Jan 04 2008 Ken Yap <greenpossum@users.sourceforge.net>
54 - 0.92: First spec file
55 * Mon Feb 09 2009 Ken Yap <greenpossum@users.sourceforge.net>
56 - 0.93: Fix up open with mode for call with O_CREAT