🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #51791

Re: Wiem że to nie Perl, ale może ktoś ma pomysł? (bash + sed)

#51791
From: Krzysztof Krzyżaniak
Date: Thu, 25 Feb 2010 16:44
168 lines
6720 bytes
"Stachu 'Dozzie' K." <dozzie@go.eat.some.screws.spammer.invalid> writes:

> On 2010-02-25, Krzysztof Krzyżaniak <eloy@kofeina.net> wrote:
>> "Stachu 'Dozzie' K." <dozzie@go.eat.some.screws.spammer.invalid> writes:
>>
>>
>> [..]
>>> Tak? To powiedz mi jak pożenić ładnie Proc::Daemon z Proc::PID::File :]
>>> Albo jak w jakiś wygodny sposób zdemonizować skrypt, żeby
>>>  * był zapisany pidfile
>>>  * nie trzeba było podawać gniazda słuchającego (-> Net::Daemon)
>>>  * nie trzeba było nic dokompilowywać pod Debianem 5.0 (Lenny)
>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>> Working::Daemon?
>
> Niespecjalnie chce mi się to debianizować ;) Inaczej po prostu bym coś
> wziął z CPAN-u.

15 sekund roboty :>
dh-make-perl --build --cpan Working::Daemon

eloy@jumon:/tmp$ dh-make-perl --build --cpan Working::Daemon
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
CPAN: File::HomeDir loaded ok (v0.86)
Going to read '/home/eloy/.cpan/Metadata'
  Database was generated on Tue, 23 Feb 2010 03:09:24 GMT
CPAN: Digest::SHA loaded ok (v5.48)
Checksum for
/home/eloy/.cpan/source/authors/id/A/AB/ABERGMAN/Working-Daemon-0.31.tar.gz
ok
CPAN: Archive::Tar loaded ok (v1.52)
Working-Daemon-0.31/
Working-Daemon-0.31/bin/
Working-Daemon-0.31/bin/test-syslog.pl
Working-Daemon-0.31/bin/test.pl
Working-Daemon-0.31/Changes
Working-Daemon-0.31/lib/
Working-Daemon-0.31/lib/Working/
Working-Daemon-0.31/lib/Working/Daemon/
Working-Daemon-0.31/lib/Working/Daemon/Syslog.pm
Working-Daemon-0.31/lib/Working/Daemon.pm
Working-Daemon-0.31/Makefile.PL
Working-Daemon-0.31/MANIFEST
Working-Daemon-0.31/META.yml
Working-Daemon-0.31/README
Working-Daemon-0.31/t/
Working-Daemon-0.31/t/background-foreground.t
Working-Daemon-0.31/t/Working-Daemon.t
CPAN: File::Temp loaded ok (v0.22)
Found: Working-Daemon 0.31 (libworking-daemon-perl arch=all)
Using cached Contents from Thu Feb 25 15:17:44 2010


Using maintainer: Krzysztof Krzyżaniak (eloy) <eloy@debian.org>
Found docs: README
Using rules: /usr/share/dh-make-perl/rules.dh7.tiny
**********
Copyright information incomplete!

Upstream copyright information could not be automatically determined.

If you are building this package for your personal use, you might
disregard
this information; however, if you intend to upload this package to
Debian
(or in general, if you plan on distributing it), you must look into the
complete copyright information.

The causes for this warning are:
Licensing information is present, but cannot be parsed
make: Wejście do katalogu `/tmp/Working-Daemon-0.31'
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
make: Opuszczenie katalogu `/tmp/Working-Daemon-0.31'
make: Wejście do katalogu `/tmp/Working-Daemon-0.31'
dh build
   dh_testdir
   dh_auto_configure
Checking if your kit is complete...
Looks good
'CREATE_PACKLIST' is not a known MakeMaker parameter name.
Writing Makefile for Working::Daemon
   dh_auto_build
make[1]: Wejście do katalogu `/tmp/Working-Daemon-0.31'
cp lib/Working/Daemon.pm blib/lib/Working/Daemon.pm
cp lib/Working/Daemon/Syslog.pm blib/lib/Working/Daemon/Syslog.pm
Manifying blib/man3/Working::Daemon.3pm
make[1]: Opuszczenie katalogu `/tmp/Working-Daemon-0.31'
   dh_auto_test
make[1]: Wejście do katalogu `/tmp/Working-Daemon-0.31'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/background-foreground.t .. ok   
t/Working-Daemon.t ......... ok   
All tests successful.
Files=2, Tests=10,  1 wallclock secs ( 0.06 usr  0.00 sys +  0.15 cusr
0.02 csys =  0.23 CPU)
Result: PASS
make[1]: Opuszczenie katalogu `/tmp/Working-Daemon-0.31'
make: Opuszczenie katalogu `/tmp/Working-Daemon-0.31'
make: Wejście do katalogu `/tmp/Working-Daemon-0.31'
dh binary
   dh_testroot
   dh_prep
   dh_installdirs
   dh_auto_install
make[1]: Wejście do katalogu `/tmp/Working-Daemon-0.31'
Installing
/tmp/Working-Daemon-0.31/debian/libworking-daemon-perl/usr/share/perl5/Working/Daemon.pm
Installing
/tmp/Working-Daemon-0.31/debian/libworking-daemon-perl/usr/share/perl5/Working/Daemon/Syslog.pm
Installing
/tmp/Working-Daemon-0.31/debian/libworking-daemon-perl/usr/share/man/man3/Working::Daemon.3pm
make[1]: Opuszczenie katalogu `/tmp/Working-Daemon-0.31'
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installexamples
   dh_installman
   dh_installcatalogs
   dh_installcron
   dh_installdebconf
   dh_installemacsen
   dh_installifupdown
   dh_installinfo
   dh_pysupport
   dh_installinit
   dh_installmenu
   dh_installmime
   dh_installmodules
   dh_installlogcheck
   dh_installlogrotate
   dh_installpam
   dh_installppp
   dh_installudev
   dh_installwm
   dh_installxfonts
   dh_bugfiles
   dh_lintian
   dh_gconf
   dh_icons
   dh_perl
   dh_usrlocal
   dh_link
   dh_compress
   dh_fixperms
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: budowanie pakietu "libworking-daemon-perl" w
"../libworking-daemon-perl_0.31-1_all.deb".
make: Opuszczenie katalogu `/tmp/Working-Daemon-0.31'
--- Done

... a zresztą i tak to miałem wrzucić do debiana bo używamy. 

  eloy
-- 
-------e-l-o-y----------------------------e-l-o-y-@-k-o-f-e-i-n-a-.-n-e-t------

       jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej
Technical Details
Message-ID: <gnus.87635ljmd1.fsf.eloy@kofeina.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <hm3n3u$i59$1@inews.gazeta.pl> <1qqaq87j4kye0$.dlg@falcon.sloth.hell.pl> <hm3tt9$cve$1@inews.gazeta.pl> <slrn.hoavur.ot5.steev@hot.pl> <hm3vif$j8a$1@inews.gazeta.pl> <slrn.hob1fc.ot5.steev@hot.pl> <hm44qr$nda$1@news.onet.pl> <hm45l2$tn2$1@solani.org> <gnus.87aauxjrhv.fsf.eloy@kofeina.net> <hm64vh$4rh$1@solani.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Krzysztof Krzyżaniak <eloy@kofeina.net>
Newsgroups: pl.comp.lang.perl
Subject: Re: Wiem że to nie Perl, ale
 może ktoś ma pomysł? (bash + sed)
Date: Thu, 25 Feb 2010 17:44:58 +0100
Organization: http://www.wikia.com/ -- We are good guys!
Lines: 168
Message-ID: <gnus.87635ljmd1.fsf.eloy@kofeina.net>
References: <hm3n3u$i59$1@inews.gazeta.pl> <1qqaq87j4kye0$.dlg@falcon.sloth.hell.pl> <hm3tt9$cve$1@inews.gazeta.pl> <slrn.hoavur.ot5.steev@hot.pl> <hm3vif$j8a$1@inews.gazeta.pl> <slrn.hob1fc.ot5.steev@hot.pl> <hm44qr$nda$1@news.onet.pl> <hm45l2$tn2$1@solani.org> <gnus.87aauxjrhv.fsf.eloy@kofeina.net> <hm64vh$4rh$1@solani.org>
NNTP-Posting-Host: chlor.kofeina.net
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1267116616 11631 194.114.145.51 (25 Feb 2010 16:50:16 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 25 Feb 2010 16:50:16 +0000 (UTC)
Cancel-Lock: sha1:22WgfUIB77L1PNXSy7/g8p+JWCQ=
X-User: eloy
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit