Changeset 14558 for trunk/dports
- Timestamp:
- Oct 11, 2005, 1:33:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/net/ddclient/Portfile
r13471 r14558 1 # $Id: Portfile,v 1.1 3 2005/08/11 21:33:23 rshawExp $1 # $Id: Portfile,v 1.14 2005/10/11 13:33:09 yeled Exp $ 2 2 PortSystem 1.0 3 3 name ddclient 4 version 3.6.3beta2 5 revision 3 4 version 3.6.6 6 5 platforms darwin 7 6 categories net 8 maintainers darwinports@opendarwin.org7 maintainers yeled@opendarwin.org 9 8 description Update dynamic DNS entries 10 9 long_description ddclient is a Perl client used to update dynamic \ 11 10 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 11 homepage http://ddclient.sourceforge.net/ 12 master_sites sourceforge:ddclient 13 checksums md5 9bdc93c0352c5fcc650773da7ecedb6d 16 14 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} } 15 configure { 16 reinplace "s|\[\r\]$||" ${worksrcpath}/${portname} 17 reinplace "s|^#!.*/perl.*$|#!${prefix}/bin/perl|" ${worksrcpath}/${portname} 18 reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname} 19 } 20 20 21 build { file copy -force ${portpath}/files/ddclient.sh ${worksrcpath}/ 22 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/ddclient.sh } 21 build {} 23 22 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 } 23 destroot { 24 xinstall -m 555 ${worksrcpath}/sample-etc_ddclient.conf \ 25 ${destroot}${prefix}/etc/ddclient.conf.sample 41 26 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 43 startupitem.create yes 44 startupitem.start ${prefix}/sbin/ddclient 45 startupitem.stop "/bin/kill \$(cat ${prefix}/var/run/ddclient.pid)" 46 47
Note: See TracChangeset
for help on using the changeset viewer.