1 | # $Id: Portfile 43200 2008-12-07 03:13:41Z mcalhoun@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wakeonlan |
---|
6 | version 0.41 |
---|
7 | categories net |
---|
8 | maintainers mww |
---|
9 | platforms darwin freebsd |
---|
10 | description wakeonlan sends magic packets for network-devices to wake up |
---|
11 | long_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 | |
---|
15 | homepage http://gsd.di.uminho.pt/jpo/software/wakeonlan/ |
---|
16 | master_sites ${homepage}downloads/ |
---|
17 | checksums md5 d3143c5fe92d16196ac853b55dd421b5 |
---|
18 | |
---|
19 | depends_lib path:bin/perl:perl5 |
---|
20 | |
---|
21 | patch { |
---|
22 | reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" ${worksrcpath}/wakeonlan |
---|
23 | } |
---|
24 | |
---|
25 | configure { |
---|
26 | system "cd ${worksrcpath} && perl Makefile.PL" |
---|
27 | } |
---|
28 | |
---|
29 | destroot { |
---|
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 | |
---|
39 | livecheck.check regex |
---|
40 | livecheck.url ${homepage} |
---|
41 | livecheck.regex wakeonlan-(\[0-9\\.\]+)\\.tar.gz |
---|
42 | |
---|