1 | # $Id: Portfile 146517 2016-03-10 17:49:28Z raimue@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name cvsync |
---|
6 | version 0.24.18 |
---|
7 | revision 2 |
---|
8 | categories net |
---|
9 | license BSD |
---|
10 | maintainers nomaintainer |
---|
11 | description cvsync is a portable CVS repository synchronization utility |
---|
12 | long_description \ |
---|
13 | cvsync is a portable CVS repository synchronization utility. \ |
---|
14 | cvsync is freely available under the BSD license and is a \ |
---|
15 | compelling, if not raw, replacement for CVSup written in C. |
---|
16 | homepage http://www.cvsync.org/ |
---|
17 | platforms darwin |
---|
18 | master_sites ftp://ftp.cvsync.org/pub/cvsync/ |
---|
19 | checksums md5 cdabce7d2b21cc5de41e711c3f7ea7be |
---|
20 | |
---|
21 | depends_lib path:lib/libssl.dylib:openssl port:zlib |
---|
22 | |
---|
23 | patchfiles patch-common__updater_list.c \ |
---|
24 | patch-cvsyncd__main.c \ |
---|
25 | patch-mk__base.mk \ |
---|
26 | patch-mk__network.mk |
---|
27 | |
---|
28 | post-patch { |
---|
29 | reinplace s|/var/run|$prefix/var/run| \ |
---|
30 | $worksrcpath/cvsyncd/cvsyncd.1 \ |
---|
31 | $worksrcpath/cvsyncd/main.c |
---|
32 | } |
---|
33 | |
---|
34 | configure.cmd make |
---|
35 | configure.pre_args configure |
---|
36 | configure.args HASH_TYPE=openssl \ |
---|
37 | PREFIX=${prefix} |
---|
38 | build.args CVSYNC_DEFAULT_CONFIG=${prefix}/etc/cvsync.conf \ |
---|
39 | CVSYNCD_DEFAULT_CONFIG=${prefix}/etc/cvsyncd.conf |
---|
40 | destroot.args ${build.args} |
---|
41 | destroot.destdir PREFIX=${destroot}${prefix} \ |
---|
42 | MANDIR=${destroot}${prefix}/share/man |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | file mkdir ${destroot}${prefix}/share/doc/${name} |
---|
46 | file copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name} |
---|
47 | destroot.keepdirs ${destroot}${prefix}/var/run |
---|
48 | } |
---|
49 | |
---|
50 | notes "You must create two configuration files: |
---|
51 | ${prefix}/etc/cvsync.conf |
---|
52 | ${prefix}/etc/cvsyncd.conf |
---|
53 | |
---|
54 | For examples, see ${prefix}/share/doc/${name}/" |
---|