Changeset 14558 for trunk/dports


Ignore:
Timestamp:
Oct 11, 2005, 1:33:09 PM (14 years ago)
Author:
yeled
Message:

bump version
cleanup whitespace
take maintainership
steal mww's eval
steal mww's systemstarter outline
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/ddclient/Portfile

    r13471 r14558  
    1 # $Id: Portfile,v 1.13 2005/08/11 21:33:23 rshaw Exp $
     1# $Id: Portfile,v 1.14 2005/10/11 13:33:09 yeled Exp $
    22PortSystem 1.0
    33name            ddclient
    4 version         3.6.3beta2
    5 revision        3
     4version         3.6.6
    65platforms       darwin
    76categories      net
    8 maintainers     darwinports@opendarwin.org
     7maintainers     yeled@opendarwin.org
    98description     Update dynamic DNS entries
    109long_description        ddclient is a Perl client used to update dynamic \
    1110                        DNS entries for accounts on many dynamic DNS services.
    12 homepage        http://burry.ca:4141/ddclient/
    13 master_sites    opendarwin http://burry.ca:4141/ddclient/       
    14 checksums       md5 98edbaea5459f47eb9164f8e58bc162a
    15 depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     11homepage        http://ddclient.sourceforge.net/
     12master_sites    sourceforge:ddclient
     13checksums       md5 9bdc93c0352c5fcc650773da7ecedb6d
    1614
    17 configure       { reinplace "s|\[\r\]$||" ${worksrcpath}/${portname}
    18                   reinplace "s|^#!.*/perl.*$|#!/usr/bin/env perl|" ${worksrcpath}/${portname}
    19                   reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname} }
     15configure       {
     16                reinplace "s|\[\r\]$||" ${worksrcpath}/${portname}
     17                reinplace "s|^#!.*/perl.*$|#!${prefix}/bin/perl|" ${worksrcpath}/${portname}
     18                reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname}
     19}
    2020
    21 build           { file copy -force ${portpath}/files/ddclient.sh ${worksrcpath}/
    22                   reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/ddclient.sh }
     21build   {}
    2322
    24 destroot        { system "install -m 755 -d ${destroot}${prefix}/etc"
    25                   system "install -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
    26                           ${destroot}${prefix}/etc/ddclient.conf.sample"
    27                   reinplace "s|/var/run|${prefix}/var/run|" ${destroot}${prefix}/etc/ddclient.conf.sample
    28                   system "install -m 755 -d ${destroot}${prefix}/sbin"
    29                   system "install -m 555 ${worksrcpath}/${portname} \
    30                           ${destroot}${prefix}/sbin"
    31                   system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
    32                   system "install -m 755 -c ${worksrcpath}/ddclient.sh ${destroot}${prefix}/etc/rc.d/"
    33                   system "install -m 755 -d ${destroot}${prefix}/share/doc/${portname}"
    34                   system "install -m 444 ${worksrcpath}/COPY* \
    35                           ${destroot}${prefix}/share/doc/${portname}"
    36                   system "install -m 444 ${worksrcpath}/README* \
    37                           ${destroot}${prefix}/share/doc/${portname}"
    38                   system "install -m 444 ${worksrcpath}/sample-* \
    39                           ${destroot}${prefix}/share/doc/${portname}"
    40                   destroot.keepdirs ${destroot}${prefix}/var/run }
     23destroot        {
     24                xinstall -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
     25                        ${destroot}${prefix}/etc/ddclient.conf.sample
    4126
     27                reinplace "s|/var/run|${prefix}/var/run|" \
     28                        ${destroot}${prefix}/etc/ddclient.conf.sample
     29
     30                xinstall -m 555 ${worksrcpath}/${portname} ${destroot}${prefix}/sbin
     31                xinstall -d ${destroot}${prefix}/share/doc/${portname}
     32
     33                eval file copy [glob ${worksrcpath}/sample-*] \
     34                        ${destroot}${prefix}/share/doc/${portname}
     35                eval file copy [glob ${worksrcpath}/COPY*] \
     36                        ${destroot}${prefix}/share/doc/${portname}
     37                eval file copy [glob ${worksrcpath}/README*] \
     38                        ${destroot}${prefix}/share/doc/${portname}
     39
     40                destroot.keepdirs ${destroot}${prefix}/var/run
     41}
     42
     43startupitem.create      yes
     44startupitem.start       ${prefix}/sbin/ddclient
     45startupitem.stop        "/bin/kill \$(cat ${prefix}/var/run/ddclient.pid)"
     46
     47
Note: See TracChangeset for help on using the changeset viewer.