1 | #$Id: Portfile,v 1.1 2005/09/26 20:24:25 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name geneweb |
---|
6 | version 4.10 |
---|
7 | revision 0 |
---|
8 | categories genealogy |
---|
9 | maintainers bfulgham@mac.com |
---|
10 | description Sophisticated Genealogy System |
---|
11 | long_description GeneWeb is sophisticated genealogy software with a \ |
---|
12 | web interface. It provides efficient relationship and consanguinity \ |
---|
13 | computing, support for very large database (i.e., hundreds of thousands \ |
---|
14 | of entries), and more. |
---|
15 | |
---|
16 | homepage http://cristal.inria.fr/~ddr/GeneWeb |
---|
17 | master_sites http://cristal.inria.fr/~ddr/GeneWeb/ftp/Src \ |
---|
18 | http://www.sartorelli.gen.nz/GeneWeb/Src |
---|
19 | checksums md5 87371983b3493ced501303e096b70b3a |
---|
20 | platforms darwin |
---|
21 | |
---|
22 | depends_build port:ocaml |
---|
23 | |
---|
24 | patchfiles patch-Makefile.inc |
---|
25 | |
---|
26 | use_configure no |
---|
27 | |
---|
28 | destroot.target distrib |
---|
29 | |
---|
30 | set gwuser geneweb |
---|
31 | set gwgroup geneweb |
---|
32 | set logdir ${prefix}/var/log |
---|
33 | set dbdir ${prefix}/var/db/geneweb |
---|
34 | |
---|
35 | startupitem.create yes |
---|
36 | startupitem.start "su ${gwuser} -c \"cd ~geneweb && ./gwd -bd${dbdir} -langen -log${logdir}/geneweb.log -daemon\"" |
---|
37 | |
---|
38 | pre-destroot { |
---|
39 | addgroup ${gwgroup} |
---|
40 | set gid [existsgroup ${gwgroup}] |
---|
41 | adduser ${gwuser} shell=/bin/sh gid=${gid} \ |
---|
42 | home=${prefix}/share/geneweb \ |
---|
43 | realname=Geneweb\ Server |
---|
44 | } |
---|
45 | |
---|
46 | destroot.keepdirs ${destroot}${dbdir} |
---|
47 | post-destroot { |
---|
48 | xinstall -d -m 0755 ${destroot}${logdir} |
---|
49 | xinstall -d -m 0755 ${destroot}${dbdir} |
---|
50 | system "touch ${destroot}${logdir}/geneweb.log" |
---|
51 | system "chown ${gwuser}:${gwgroup} ${destroot}${logdir}/geneweb.log" |
---|
52 | system "chown -R ${gwuser}:${gwgroup} ${destroot}${dbdir}" |
---|
53 | |
---|
54 | cd ${worksrcpath} |
---|
55 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} |
---|
56 | xinstall -m 0644 README CHANGES ICHANGES LICENSE ${destroot}${prefix}/share/doc/${name} |
---|
57 | |
---|
58 | xinstall -d -m 0755 ${destroot}${prefix}/share/${name} |
---|
59 | xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/bases |
---|
60 | xinstall -d -m 0755 ${destroot}${logdir} |
---|
61 | xinstall -d -m 0755 ${destroot}${dbdir} |
---|
62 | |
---|
63 | system "cd ${destroot} && mv gw ${destroot}${prefix}/share/${name}" |
---|
64 | system "cd ${destroot} && rm LICENSE.txt LISEZMOI.txt README.txt" |
---|
65 | system "cd ${destroot} && mv gwd ${destroot}${prefix}/share/${name}" |
---|
66 | system "cd ${destroot} && mv gwsetup ${destroot}${prefix}/share/${name}" |
---|
67 | } |
---|
68 | |
---|
69 | pre-install { |
---|
70 | addgroup ${gwgroup} |
---|
71 | set gid [existsgroup ${gwgroup}] |
---|
72 | adduser ${gwuser} shell=/bin/sh gid=${gid} \ |
---|
73 | home=${prefix}/share/geneweb \ |
---|
74 | realname=Geneweb\ Server |
---|
75 | } |
---|
76 | |
---|
77 | post-install { |
---|
78 | ui_msg "\nGeneweb will be listening on localhost, port 2317.\n" |
---|
79 | |
---|
80 | ui_msg "To get started, you will need to load an initial database." |
---|
81 | ui_msg "Run the program 'gwsetup' to get started. After that point," |
---|
82 | ui_msg "simply point your browser to http://localhost:2317 to review" |
---|
83 | ui_msg "the data." |
---|
84 | } |
---|