source: trunk/dports/devel/perforce/Portfile

Last change on this file was 151824, checked in by khindenburg@…, 13 months ago

perforce: setup nomaintainer see #39242

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 151824 2016-08-22 22:47:58Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    perforce
6version                 2010.1
7categories              devel
8platforms               darwin
9maintainers             nomaintainer
10
11description             Fast source code management system
12
13long_description        Perforce is a commercial revision control system \
14                        that can be used gratis for developing free \
15                        software. (see the WWW page for details).
16
17homepage                http://www.perforce.com/
18master_sites            http://www.perforce.com/downloads/perforce/r[string range ${version} 2 end]/bin.darwin80u/:prog \
19                        http://www.perforce.com/perforce/doc.052/man/:man
20
21dist_subdir             ${name}/${version}
22worksrcdir              ${name}
23
24distfiles               p4:prog p4.1:man p4d:prog p4d.1:man
25
26checksums               p4      md5     4170d202a4bda079e334c7dc5c37c417 \
27                                sha1    c666bd19c6de7a1b7283c14c2f0cf8486c56c516 \
28                                rmd160  5b3fc0fa7cab9d4fcfd8a2e0675379d2a4cceb60 \
29                        p4.1    md5     e5cada2f402e1e016be7999fdc49035d \
30                                sha1    f0740627c5232e2eb72a278fd62d5764b7fcbdbb \
31                                rmd160  c32ac846dfa8110fadba131ca4c7a3782cf1c180 \
32                        p4d     md5     dd2f6de1b1a57a70838379d425606896 \
33                                sha1    f26b2b1d2ff1437b343c9bd590f72a0c00846567 \
34                                rmd160  7957d8db3b6a2ec5e85fc291a03f746a15ea6b60 \
35                        p4d.1   md5     1aa86f28ba0698266bf1dcaded3e4106 \
36                                sha1    0383e5eb515ff1a4ecd6fb148aa544a49e68eb59 \
37                                rmd160  913efbe9b299030a143e3c6a1fbf672ec526d7b7
38
39extract.mkdir           yes
40extract {
41    eval copy [glob ${distpath}/*] ${worksrcpath}
42}
43
44use_configure           no
45
46build {}
47
48destroot {
49    xinstall -W ${worksrcpath} p4 ${destroot}${prefix}/bin
50    xinstall -W ${worksrcpath} p4d ${destroot}${prefix}/sbin
51    xinstall -W ${worksrcpath} -m 644 p4.1 ${destroot}${prefix}/share/man/man1
52    xinstall -W ${worksrcpath} -m 644 p4d.1 ${destroot}${prefix}/share/man/man8
53}
54
55variant server {
56    startupitem.create  yes
57    startupitem.start   "su -c ${prefix}/sbin/p4d -d -r ${prefix}/share/perforce/depot -L ${prefix}/share/perforce/log"
58   
59    post-destroot {
60        addgroup perforce
61        set gid [existsgroup perforce]
62        adduser perforce realname=Perforce\ Server gid=${gid} home=${prefix}/share/perforce shell=/bin/sh
63        system "install -o perforce -m 755 -d ${destroot}${prefix}/share/perforce/depot"
64        system "install -o perforce -m 644 -c /dev/null ${destroot}${prefix}/share/perforce/log"
65    }
66}
67
68supported_archs             i386 ppc x86_64
69configure.universal_archs   i386 ppc x86_64
70default_variants            +universal
71variant_set                 universal
72variant universal {}
Note: See TracBrowser for help on using the repository browser.