[128981] trunk/dports/net/nedi/Portfile
devans at macports.org
devans at macports.org
Mon Dec 1 15:52:48 PST 2014
Revision: 128981
https://trac.macports.org/changeset/128981
Author: devans at macports.org
Date: 2014-12-01 15:52:47 -0800 (Mon, 01 Dec 2014)
Log Message:
-----------
nedi: update to version 1.0.9, switch from perl5.12 to perl5.16, fix up destroot processing (#40700, #44405).
Modified Paths:
--------------
trunk/dports/net/nedi/Portfile
Modified: trunk/dports/net/nedi/Portfile
===================================================================
--- trunk/dports/net/nedi/Portfile 2014-12-01 22:39:40 UTC (rev 128980)
+++ trunk/dports/net/nedi/Portfile 2014-12-01 23:52:47 UTC (rev 128981)
@@ -4,8 +4,7 @@
PortSystem 1.0
name nedi
-version 1.0.7
-revision 3
+version 1.0.9
license GPL-3
categories net
maintainers nomaintainer
@@ -21,19 +20,20 @@
extract.mkdir yes
extract.suffix .tgz
-checksums md5 7eb73bfc687c8efbd833b1f8f3fbd749 \
- rmd160 3b7895f80697f6f4a0b53e348874a8c4044e6ed4
-depends_lib port:perl5.12 \
+checksums rmd160 776b178b4fd3fe139796dbc367ae0e626f6ccaa1 \
+ sha256 cf004dafb781f1ac638b2291ea565d3c3972eb5dd049f9119b46dbc66f722f13
+
+depends_lib port:perl5.16 \
path:bin/mysql_config5:mysql5 \
- port:p5.12-net-snmp \
- port:p5.12-net-ssh-perl \
- port:p5.12-net-telnet \
- port:p5.12-net-telnet-cisco \
- port:p5.12-libwww-perl \
- port:p5.12-algorithm-diff \
- port:p5.12-dbi \
- port:p5.12-dbd-mysql \
+ port:p5.16-net-snmp \
+ port:p5.16-net-ssh-perl \
+ port:p5.16-net-telnet \
+ port:p5.16-net-telnet-cisco \
+ port:p5.16-libwww-perl \
+ port:p5.16-algorithm-diff \
+ port:p5.16-dbi \
+ port:p5.16-dbd-mysql \
port:rrdtool \
port:fping
@@ -53,26 +53,31 @@
build {}
destroot {
+# create directories
+ file mkdir ${destroot}/Library/LaunchDaemons
file mkdir ${destroot}${nedidir}
- system "cp -R ${worksrcpath}/* ${destroot}${nedidir}"
+
+# copy content to destroot
+ eval copy [glob ${worksrcpath}/*] ${destroot}${nedidir}
}
post-destroot {
+
# Fix general paths
- eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|g" \
- [glob ${destroot}${nedidir}/*.pl] \
- [glob ${destroot}${nedidir}/html/inc/*.pl] \
- [glob ${destroot}${nedidir}/contrib/*.pl]
+ eval reinplace "s|^#!.*|#!${prefix}/bin/perl5.16|" \
+ [glob ${destroot}${nedidir}/*.pl] \
+ [glob ${destroot}${nedidir}/contrib/*.pl] \
+ [glob ${destroot}${nedidir}/inc/*.pl]
reinplace "s|netstat|/usr/sbin/netstat|g" \
- ${destroot}${nedidir}/inc/libmisc.pm
+ ${destroot}${nedidir}/inc/libmisc.pm
- reinplace "s|/etc/nedi.conf|${nedidir}/nedi.conf|g" \
- ${destroot}${nedidir}/html/inc/libmisc.php
+ reinplace "s|/etc/nedi.conf|${nedidir}/nedi.conf|g" \
+ ${destroot}${nedidir}/html/inc/libmisc.php
# Fix rrdcmd location in nedi.conf
reinplace "s|rrdtool|${rrdbin}|g" \
- ${destroot}${nedidir}/nedi.conf
+ ${destroot}${nedidir}/nedi.conf
# Fix fping path
reinplace "s|/usr/local/sbin|${fpingpath}|g" \
@@ -96,17 +101,15 @@
file rename ${destroot}${nedidir}/nedi.conf \
${destroot}${nedidir}/nedi.conf.sample
system "chmod 600 ${destroot}${nedidir}/nedi.conf.sample"
-}
-pre-install {
# MacPorts can create only one startupitem per portfile. So copy nedisyslog.plist
# from filespath and link it into /Library/LaunchDaemons as startupitem's do.
xinstall -m 755 -d ${destroot}${prefix}/etc/LaunchDaemons/org.macports.nedisyslog/
xinstall -m 755 ${filespath}/org.macports.nedisyslog.plist \
${destroot}${prefix}/etc/LaunchDaemons/org.macports.nedisyslog/
- system "cd /Library/LaunchDaemons && ln -sf \
- ${prefix}/etc/LaunchDaemons/org.macports.nedisyslog/org.macports.nedisyslog.plist"
+ ln -s ${prefix}/etc/LaunchDaemons/org.macports.nedisyslog/org.macports.nedisyslog.plist \
+ ${destroot}/Library/LaunchDaemons
}
notes \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141201/f61ff4d3/attachment.html>
More information about the macports-changes
mailing list