[131617] trunk/dports/perl
devans at macports.org
devans at macports.org
Thu Jan 15 01:11:37 PST 2015
Revision: 131617
https://trac.macports.org/changeset/131617
Author: devans at macports.org
Date: 2015-01-15 01:11:37 -0800 (Thu, 15 Jan 2015)
Log Message:
-----------
fusioninventory-agent: copy from p5-fusioninventory-agent as new port, update to version 2.3.15, add perl branches 5.18 5.20, use perl variants rather than subports, various build fixes, initial configuration notes (#46443).
Modified Paths:
--------------
trunk/dports/perl/fusioninventory-agent/Portfile
Added Paths:
-----------
trunk/dports/perl/fusioninventory-agent/
trunk/dports/perl/fusioninventory-agent/files/
trunk/dports/perl/fusioninventory-agent/files/patch-Makefile.PL.diff
Modified: trunk/dports/perl/fusioninventory-agent/Portfile
===================================================================
--- trunk/dports/perl/p5-fusioninventory-agent/Portfile 2015-01-13 10:46:25 UTC (rev 131516)
+++ trunk/dports/perl/fusioninventory-agent/Portfile 2015-01-15 09:11:37 UTC (rev 131617)
@@ -4,8 +4,11 @@
PortSystem 1.0
PortGroup perl5 1.0
-perl5.branches 5.16
-perl5.setup FusionInventory-Agent 2.1.14 ../by-authors/id/F/FU/FUSINV
+perl5.branches 5.16 5.18 5.20
+perl5.create_variants ${perl5.branches}
+
+name fusioninventory-agent
+perl5.setup FusionInventory-Agent 2.3.15 ../by-authors/id/G/GR/GROUSSE/
platforms darwin
maintainers nomaintainer
license GPL-2+
@@ -17,16 +20,58 @@
server running for example FusionInventory for GLPI \
for inventorying purposes.
-homepage http://fusioninventory.org/wordpress
+homepage http://www.fusioninventory.org/overview/
-checksums rmd160 d51896d1d1ee88cf173771d203920ed846019cf1 \
- sha256 9691a0b29b9b89b26d81783d2ca0f9a6ff4c1c1e4581cf7d098364d7419d0809
+checksums rmd160 bdd779e0f38b71320bff5ef0b1a6342c6013e006 \
+ sha256 8124c2f85628af440002b4f624b247390a851f3fe6d6ec6669743a2613b36cde
-if {${perl5.major} != ""} {
- depends_lib-append \
+depends_build-append \
+ port:p${perl5.major}-http-proxy \
+ port:p${perl5.major}-http-server-simple \
+ port:p${perl5.major}-http-server-simple-authen \
+ port:p${perl5.major}-io-capture \
+ port:p${perl5.major}-io-socket-ssl \
+ port:p${perl5.major}-ipc-run \
+ port:p${perl5.major}-json \
+ port:p${perl5.major}-lwp-protocol-https \
+ port:p${perl5.major}-net-snmp \
+ port:p${perl5.major}-poe-component-client-ping \
+ port:p${perl5.major}-test-compile \
+ port:p${perl5.major}-test-deep \
+ port:p${perl5.major}-test-exception \
+ port:p${perl5.major}-test-http-server-simple \
+ port:p${perl5.major}-test-mockmodule \
+ port:p${perl5.major}-test-mockobject \
+ port:p${perl5.major}-test-nowarnings
+
+depends_lib-append \
+ port:p${perl5.major}-file-copy-recursive \
+ port:p${perl5.major}-file-which \
port:p${perl5.major}-libwww-perl \
- port:p${perl5.major}-mac-sysprofile \
port:p${perl5.major}-net-ip \
+ port:p${perl5.major}-text-template \
port:p${perl5.major}-universal-require \
- port:p${perl5.major}-xml-simple
+ port:p${perl5.major}-xml-treepp
+
+patchfiles patch-Makefile.PL.diff
+
+post-patch {
+ reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Makefile.PL
}
+
+pre-destroot {
+ xinstall -d ${destroot}${perl5.lib}
+}
+
+destroot.target install
+destroot.keepdirs ${destroot}${prefix}/var/fusioninventory
+
+notes "
+ On initial installation of ${name}
+
+ cp ${prefix}/etc/fusioninventory/agent.cfg.new ${prefix}/etc/fusioninventory/agent.cfg
+
+ and edit as desired before running the program.
+
+ Subsequent updates will not overwrite agent.cfg
+"
Added: trunk/dports/perl/fusioninventory-agent/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/fusioninventory-agent/files/patch-Makefile.PL.diff (rev 0)
+++ trunk/dports/perl/fusioninventory-agent/files/patch-Makefile.PL.diff 2015-01-15 09:11:37 UTC (rev 131617)
@@ -0,0 +1,20 @@
+--- Makefile.PL.orig 2015-01-14 22:47:05.000000000 -0800
++++ Makefile.PL 2015-01-14 22:47:52.000000000 -0800
+@@ -117,7 +117,7 @@
+ # look for already existing configuration file
+ my $config_file_message = -f "$MY::variables{SYSCONFDIR}/agent.cfg" ?
+ "previous configuration file found, new one will be installed as agent.cfg.new" :
+- "no previous configuration file found, new one will be installed as agent.cfg";
++ "no previous configuration file found, new one will be installed as agent.cfg.new";
+
+ print <<EOF;
+
+@@ -209,7 +209,7 @@
+ if [ -f $(DESTDIR)/$(SYSCONFDIR)/agent.cfg ]; then \
+ install -m 644 etc/agent.cfg $(DESTDIR)$(SYSCONFDIR)/agent.cfg.new; \
+ else \
+- install -m 644 etc/agent.cfg $(DESTDIR)$(SYSCONFDIR)/agent.cfg; \
++ install -m 644 etc/agent.cfg $(DESTDIR)$(SYSCONFDIR)/agent.cfg.new; \
+ fi
+
+ data_install :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150115/81019b4d/attachment-0001.html>
More information about the macports-changes
mailing list