Ticket #660: Portfile.3

File Portfile.3, 1.3 KB (added by robert@…, 21 years ago)

ATTACHMENT: ddclient-3.6.3beta2

Line 
1# $Id: Portfile,v 1.8 2003/08/13 00:05:03 rshaw Exp $
2PortSystem 1.0
3name            ddclient
4version         3.6.3beta2
5platforms       darwin
6categories      net
7maintainers     robert@or.homeip.net
8description     Update dynamic DNS entries
9long_description        ddclient is a Perl client used to update dynamic \
10                        DNS entries for accounts on many dynamic DNS services.
11homepage        http://burry.ca:4141/ddclient/
12master_sites    http://burry.ca:4141/ddclient/ 
13checksums       md5 98edbaea5459f47eb9164f8e58bc162a
14configure       {}
15post-configure  {
16        reinplace "s|^#!.*/perl\\(.*\\)$|#!/usr/bin/perl\\1|" ${worksrcpath}/${portname}
17        reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname}
18}
19build           {}
20destroot        {
21        system "install -m 755 -d ${destroot}${prefix}/etc"
22        system "install -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
23                ${destroot}${prefix}/etc/ddclient.conf.sample"
24        system "install -m 755 -d ${destroot}${prefix}/sbin"
25        system "install -m 555 ${worksrcpath}/${portname} \
26                ${destroot}${prefix}/sbin"
27        system "install -m 755 -d ${destroot}${prefix}/share/${portname}"
28        system "install -m 444 ${worksrcpath}/COPY* \
29                ${destroot}${prefix}/share/${portname}"
30        system "install -m 444 ${worksrcpath}/README* \
31                ${destroot}${prefix}/share/${portname}"
32        system "install -m 444 ${worksrcpath}/sample-* \
33                ${destroot}${prefix}/share/${portname}"
34}
35# vim: ts=8 sw=8
36