[35915] trunk/dports/net/net-snmp/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Wed Apr 9 10:41:52 PDT 2008


Revision: 35915
          http://trac.macosforge.org/projects/macports/changeset/35915
Author:   mcalhoun at macports.org
Date:     2008-04-09 10:41:48 -0700 (Wed, 09 Apr 2008)

Log Message:
-----------
net-snmp: Deal with problematic perl files (closes #14855).

Modified Paths:
--------------
    trunk/dports/net/net-snmp/Portfile

Modified: trunk/dports/net/net-snmp/Portfile
===================================================================
--- trunk/dports/net/net-snmp/Portfile	2008-04-09 17:33:41 UTC (rev 35914)
+++ trunk/dports/net/net-snmp/Portfile	2008-04-09 17:41:48 UTC (rev 35915)
@@ -66,5 +66,14 @@
 
 variant ksm description { support for kerberos based SNMP security } { configure.args-append --with-security-modules="usm ksm" }
 
-post-destroot	{ destroot.keepdirs ${destroot}${prefix}/var/net-snmp }
-
+post-destroot	{
+	destroot.keepdirs ${destroot}${prefix}/var/net-snmp
+	foreach packlist [exec find ${destroot} -name .packlist] {
+		ui_info "Fixing packlist ${packlist}"
+		reinplace "s|${destroot}||" ${packlist}
+	}
+	foreach badfile [exec find ${destroot} -name perllocal.pod] {
+		ui_info "Removing ${badfile}"
+		file delete ${badfile}
+	}
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080409/1556a7ef/attachment.html


More information about the macports-changes mailing list