Ticket #590: Portfile.2

File Portfile.2, 2.0 KB (added by jcorley1@…, 21 years ago)

updated Portfile to 0.23.3

Line 
1PortSystem 1.0
2name             cvsync
3version          0.23.3
4revision         1
5categories       net
6maintainers      jcorley1@nc.rr.com
7description      cvsync is a portable CVS repository synchronization \
8                 utility
9long_description cvsync is a portable CVS repository synchronization utility. \
10                 cvsync is freely available under the BSD license and is a \
11                 compelling, if not raw, replacement for CVSup written in C.
12
13platforms        darwin
14
15master_sites     ftp://ftp.daemon-systems.org/pub/cvsync/ \
16                 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ \
17                 ftp://ftp.allbsd.org/pub/cvsync/
18
19distname         ${name}-${portversion}
20
21patchfiles       patch-base.mk
22
23checksums        md5 9707e8a145b5cef1f2ccfa2b5febc73b
24
25configure        {}
26
27build.target
28
29build.args       HASH_TYPE=openssl \
30                     CVSYNC_DEFAULT_CONFIG=${prefix}/etc/cvsync.conf \
31                     CVSYNCD_DEFAULT_CONFIG=${prefix}/etc/cvsyncd.conf \
32                     PREFIX=${destroot}${prefix}
33
34install.args     HASH_TYPE=openssl \
35                     CVSYNC_DEFAULT_CONFIG=${prefix}/etc/cvsync.conf \
36                     CVSYNCD_DEFAULT_CONFIG=${prefix}/etc/cvsyncd.conf \
37                     PREFIX=${destroot}${prefix}
38
39pre-build        { reinplace "s|\"/var/run/cvsyncd.pid\"|\"${prefix}/var/run/cvsyncd.pid\"|g" \
40                   ${worksrcpath}/cvsyncd/defs.h
41                 }
42
43post-install     { system "install -d -o `id -u` -g admin -m 755 \
44                       ${destroot}${prefix}/share/doc/${name}"
45                   system "install -C -o `id -u` -g admin -m 755 doc/* \
46                       ${destroot}${prefix}/share/doc/${name}"
47                   system "install -C -o `id -u` -g admin -m 755 \
48                       samples/*.conf ${destroot}${prefix}/share/doc/${name}"
49                   system "install -d -o `id -u` -g admin -m 755 \
50                       ${destroot}${prefix}/var/run"
51                   system "touch ${destroot}${prefix}/var/run/.keep"
52                 }
53