[32673] trunk/dports/net/nagios/Portfile
markd at macports.org
markd at macports.org
Thu Jan 10 12:33:20 PST 2008
Revision: 32673
http://trac.macosforge.org/projects/macports/changeset/32673
Author: markd at macports.org
Date: 2008-01-10 12:33:18 -0800 (Thu, 10 Jan 2008)
Log Message:
-----------
Fix the port to properly replace /bin/mail with /usr/bin/mail in commands.cfg.
Modified Paths:
--------------
trunk/dports/net/nagios/Portfile
Modified: trunk/dports/net/nagios/Portfile
===================================================================
--- trunk/dports/net/nagios/Portfile 2008-01-10 19:05:42 UTC (rev 32672)
+++ trunk/dports/net/nagios/Portfile 2008-01-10 20:33:18 UTC (rev 32673)
@@ -65,9 +65,6 @@
reinplace "s|check_external_commands=0|check_external_commands=1|g" \
"${worksrcpath}/sample-config/nagios.cfg.in"
- reinplace "s|/bin/mail|/usr/bin/mail|g" \
- "${worksrcpath}/sample-config/template-object/commands.cfg.in"
-
reinplace "s|NagiosLockDir=/var/lock/subsys|NagiosLockDir=${prefix}/var/nagios|g" \
${worksrcpath}/daemon-init.in
reinplace "s|su -|su -m|g" \
@@ -80,6 +77,9 @@
}
post-destroot {
+ reinplace "s|/bin/mail|/usr/bin/mail|g" \
+ "${destroot}${sysconfdir}/commands.cfg"
+
# Keep the empty command file directory created by 'make install-commandmode'
destroot.keepdirs ${destroot}${prefix}/var/nagios/rw
@@ -87,6 +87,9 @@
foreach cfgfile [glob ${destroot}${sysconfdir}/*.cfg] {
file rename ${cfgfile} ${cfgfile}-sample
}
+ reinplace "s|/bin/mail|/usr/bin/mail|g" \
+ "${destroot}${sysconfdir}/commands.cfg-sample"
+
}
post-activate {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080110/49472ef5/attachment.html
More information about the macports-changes
mailing list