source: trunk/dports/net/wakeonlan/Portfile

Last change on this file was 154103, checked in by mojca@…, 9 months ago

wakeonlan: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154103 2016-10-20 03:21:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                wakeonlan
8version             0.41
9revision            3
10categories          net
11maintainers         mww
12platforms           darwin freebsd
13license             Artistic-1
14supported_archs     noarch
15description         wakeonlan sends magic packets for network-devices to wake up
16long_description    Wakeonlan is a Perl script that sends 'magic packets' \
17                    to wake-on-LAN enabled ethernet adapters and \
18                    motherboards, in order to switch on remote computers.
19
20homepage            http://gsd.di.uminho.pt/jpo/software/wakeonlan/
21master_sites        ${homepage}downloads/
22checksums           md5 d3143c5fe92d16196ac853b55dd421b5 \
23                    rmd160  ddbc2af097bb46bd8afd2c37007c5ed5291ee0e7 \
24                    sha256  581b1b27a7e810ab72668cce4bd9aa9b3e0cea34b2db24dd1a44c09d63ddda98
25
26perl5.branches      5.24
27
28depends_lib         port:perl${perl5.major}
29
30installs_libs       no
31
32patch {
33    reinplace -locale C "s|/usr/bin/perl -w|${perl5.bin} -w|g" ${worksrcpath}/wakeonlan
34}
35
36configure {
37    system -W ${worksrcpath} "${perl5.bin} Makefile.PL"
38}
39
40destroot {
41    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
42    xinstall -m 644 ${worksrcpath}/blib/man1/wakeonlan.1pm \
43        ${destroot}${prefix}/share/man/man1/
44    xinstall -m 755 ${worksrcpath}/blib/script/wakeonlan \
45        ${destroot}${prefix}/bin/
46    xinstall -m 644 -W ${worksrcpath} Changes MANIFEST README \
47        examples/lab001.wol ${destroot}${prefix}/share/doc/${name}
48}
49
50livecheck.type      regex
51livecheck.url       ${homepage}
52livecheck.regex     wakeonlan-(\[0-9\\.\]+)\\.tar.gz
Note: See TracBrowser for help on using the repository browser.