Skip to content

Commit

Permalink
fusioninventory-agent: update to version 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dbevans committed Jul 3, 2019
1 parent fa52890 commit 8212185
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
11 changes: 4 additions & 7 deletions perl/fusioninventory-agent/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ perl5.branches 5.26 5.28
perl5.create_variants ${perl5.branches}

name fusioninventory-agent
perl5.setup FusionInventory-Agent 2.4.1 ../../authors/id/G/GR/GROUSSE/
perl5.setup FusionInventory-Agent 2.5.1

platforms darwin
maintainers nomaintainer
Expand All @@ -25,14 +25,11 @@ long_description Perl application that runs an agent connecting to a \
for inventorying purposes.

homepage http://www.fusioninventory.org/overview/

# no longer released to CPAN
# now mandatory to download releases from github
master_sites https://github.com/fusioninventory/fusioninventory-agent/releases/download/${version}/

checksums rmd160 86b0520638fc3c1d0caf012550275432f796a402 \
sha256 aa72f0ff89178e9fff3271b15e1eceeffe1cc7cb34085a9c8fe1160262949606 \
size 2566207
checksums rmd160 f0aa0c095b90f4ccf52f6b250181ecb910ceabb9 \
sha256 c86211f8a43617f6817ee279ae90e138179a93b98116f81854d64a9207ea7020 \
size 2651873

depends_build-append \
port:p${perl5.major}-http-proxy \
Expand Down
24 changes: 13 additions & 11 deletions perl/fusioninventory-agent/files/patch-Makefile.PL.diff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- Makefile.PL.orig 2018-06-29 05:32:54.000000000 -0700
+++ Makefile.PL 2018-09-20 14:31:16.000000000 -0700
@@ -131,7 +131,7 @@
--- Makefile.PL.orig 2019-07-01 08:37:06.000000000 -0700
+++ Makefile.PL 2019-07-02 14:33:22.000000000 -0700
@@ -133,7 +133,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" :
Expand All @@ -9,12 +9,14 @@

print <<EOF;

@@ -240,7 +240,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
@@ -247,8 +247,8 @@
$(CP) etc/$$config $(DESTDIR)$(SYSCONFDIR)/$$config.new; \
$(CHMOD) $(PERM_RW) $(DESTDIR)$(SYSCONFDIR)/$$config.new; \
else \
- $(CP) etc/$$config $(DESTDIR)$(SYSCONFDIR)/$$config; \
- $(CHMOD) $(PERM_RW) $(DESTDIR)$(SYSCONFDIR)/$$config; \
+ $(CP) etc/$$config $(DESTDIR)$(SYSCONFDIR)/$$config.new; \
+ $(CHMOD) $(PERM_RW) $(DESTDIR)$(SYSCONFDIR)/$$config.new; \
fi; \
done
$(ABSPERLRUN) -pi \
-e "s|=> undef, # SYSCONFDIR.*|=> '$(SYSCONFDIR)',|;" \

0 comments on commit 8212185

Please sign in to comment.