source: trunk/dports/perl/fusioninventory-agent/Portfile @ 144569

Last change on this file since 144569 was 144569, checked in by devans@…, 3 years ago

ports with perl5 variants: increment revision to rebuild after removal of support for perl5 < 5.22.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144569 2016-01-12 23:55:48Z devans@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7# allow perl5 port group to set default perl variant
8
9perl5.require_variant   yes
10perl5.conflict_variants yes
11perl5.branches          5.22
12perl5.create_variants   ${perl5.branches}
13
14name                fusioninventory-agent
15perl5.setup         FusionInventory-Agent 2.3.16 ../by-authors/id/G/GR/GROUSSE/
16revision            3
17
18platforms           darwin
19maintainers         nomaintainer
20license             GPL-2+
21supported_archs     noarch
22
23description         FusionInventory::Agent
24
25long_description    Perl application that runs an agent connecting to a \
26                    server running for example FusionInventory for GLPI \
27                    for inventorying purposes.
28
29homepage            http://www.fusioninventory.org/overview/
30
31checksums           rmd160  0e0a13065d465543d4a17ad5febe81497758bd2e \
32                    sha256  2c1d3bdeef9b7b73328b6ed44d73bec0f31a6ba7a40547c232d852642d4ba653
33
34depends_build-append \
35                    port:p${perl5.major}-http-proxy \
36                    port:p${perl5.major}-http-server-simple \
37                    port:p${perl5.major}-http-server-simple-authen \
38                    port:p${perl5.major}-io-capture \
39                    port:p${perl5.major}-io-socket-ssl \
40                    port:p${perl5.major}-ipc-run \
41                    port:p${perl5.major}-json \
42                    port:p${perl5.major}-lwp-protocol-https \
43                    port:p${perl5.major}-net-snmp \
44                    port:p${perl5.major}-poe-component-client-ping \
45                    port:p${perl5.major}-test-compile \
46                    port:p${perl5.major}-test-deep \
47                    port:p${perl5.major}-test-exception \
48                    port:p${perl5.major}-test-http-server-simple \
49                    port:p${perl5.major}-test-mockmodule \
50                    port:p${perl5.major}-test-mockobject \
51                    port:p${perl5.major}-test-nowarnings
52
53depends_lib-append \
54                    port:p${perl5.major}-file-copy-recursive \
55                    port:p${perl5.major}-file-which \
56                    port:p${perl5.major}-libwww-perl \
57                    port:p${perl5.major}-net-ip \
58                    port:p${perl5.major}-text-template \
59                    port:p${perl5.major}-universal-require \
60                    port:p${perl5.major}-xml-treepp
61
62patchfiles          patch-Makefile.PL.diff
63
64post-patch {
65    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Makefile.PL
66}
67
68pre-destroot {
69    xinstall -d ${destroot}${perl5.lib}
70}
71
72destroot.target     install
73destroot.keepdirs   ${destroot}${prefix}/var/fusioninventory
74
75notes "
76    On initial installation of ${name}
77
78        cp ${prefix}/etc/fusioninventory/agent.cfg.new ${prefix}/etc/fusioninventory/agent.cfg
79
80    and edit as desired before running the program.
81
82    Subsequent updates will not overwrite agent.cfg
83"
Note: See TracBrowser for help on using the repository browser.