Ticket #19469: Portfile

File Portfile, 1.2 KB (added by shoan, 15 years ago)
Line 
1# $Id: Portfile 43200 2008-12-07 03:13:41Z mcalhoun@macports.org $
2
3PortSystem 1.0
4
5name            wakeonlan
6version         0.41
7categories      net
8maintainers     mww
9platforms       darwin freebsd
10description     wakeonlan sends magic packets for network-devices to wake up
11long_description        Wakeonlan is a Perl script that sends 'magic packets' \
12                        to wake-on-LAN enabled ethernet adapters and \
13                        motherboards, in order to switch on remote computers.
14
15homepage        http://gsd.di.uminho.pt/jpo/software/wakeonlan/
16master_sites    ${homepage}downloads/
17checksums       md5 d3143c5fe92d16196ac853b55dd421b5
18
19depends_lib     path:bin/perl:perl5
20
21patch {
22        reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" ${worksrcpath}/wakeonlan
23}
24
25configure {
26        system "cd ${worksrcpath} && perl Makefile.PL"
27}
28
29destroot {
30        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
31        xinstall -m 644 ${worksrcpath}/blib/man1/wakeonlan.1pm \
32                ${destroot}${prefix}/share/man/man1/
33        xinstall -m 755 ${worksrcpath}/blib/script/wakeonlan \
34                ${destroot}${prefix}/bin/
35        xinstall -m 644 -W ${worksrcpath} Changes MANIFEST README \
36                examples/lab001.wol ${destroot}${prefix}/share/doc/${name}
37}
38
39livecheck.check regex
40livecheck.url   ${homepage}
41livecheck.regex wakeonlan-(\[0-9\\.\]+)\\.tar.gz
42