p910nd - symulator printservera (tcp port 9100)
Grzegorz Konopko
kolodko1 w o2.pl
Pią, 4 Lut 2005, 12:01:21 CET
Dnia czwartek, 3 lutego 2005 17:38, romke napisał:
> # $Id$
>
> Summary: Tiny non-spooling printer daemon.
> Name: p910nd
> Version: 0.7
> Release: 0.3
rel 0.1
> License: GPL
> Vendor: Etherboot project
> Group: Networking/Daemons
>
Source0: http://etherboot.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
> #Source0-md5: 7bf752532d26c9106f8039db95df3a6b
> Source1: %{name}.init
> Patch0: %{name}-makefile.patch
> URL: http://etherboot.sourceforge.net/p910nd
> BuildArch: i386
to chyba nie potrzebne (?)
> Icon: .p910nd.xpm
> BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
>
>
> %description
> Tiny non-spooling printer daemon for Linux hosts. Accepts data over a TCP
> network connection from a spooling host. Useful on diskless X terminals
> with local printer.
>
> %prep
> rm -rf $RPM_BUILD_ROOT
> %setup -n %{name}-%{version}
tu samo %setup -q
> %patch0
>
> %build
> make ROOT="$RPM_BUILD_ROOT"
> strip p910nd
nie stripujemy
>
> %install
>
> mkdir -p $RPM_BUILD_ROOT/etc/init.d/
/etc/rc.d/init.d
> mkdir -p $RPM_BUILD_ROOT/usr/sbin/
> mkdir -p $RPM_BUILD_ROOT/usr/lib/p910nd/
> mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8/
>
> install %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/p910nd
> install p910nd $RPM_BUILD_ROOT/usr/sbin/
> install banner.pl $RPM_BUILD_ROOT/usr/lib/p910nd/
> install client.pl $RPM_BUILD_ROOT/usr/lib/p910nd/
> install p910nd.8 $RPM_BUILD_ROOT/usr/share/man/man8/
>
> %pre
>
> %post
> /sbin/chkconfig --add p910nd
> if [ -f /var/lock/subsys/p910nd ]; then
> /etc/rc.d/init.d/p910nd restart >&2
> else
> echo "Run \"/etc/rc.d/init.d/p910nd start\" to start p910nd daemon."
>&2
> fi
>
> %preun
> if [ "$1" = "0" ]; then
> if [ -f /var/lock/subsys/p910nd ]; then
> /etc/rc.d/init.d/p910nd stop >&2
> fi
> /sbin/chkconfig --del p910nd
> fi
>
> %postun
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr(-,root,root)
> /etc/init.d/p910nd
> /usr/sbin/p910nd
> %{_libdir}/p910nd
> %{_mandir}/man8/p910nd.8*
Tu też trochę brakuje.
Między innymi uprawnien do skryptu startowego i lokalizacja zła.
Więcej informacji o liście dyskusyjnej pld-devel-pl