[45607] trunk/dports/perl/p5-mail-spamassassin
simon at macports.org
simon at macports.org
Sun Jan 18 13:21:38 PST 2009
Revision: 45607
http://trac.macports.org/changeset/45607
Author: simon at macports.org
Date: 2009-01-18 13:21:38 -0800 (Sun, 18 Jan 2009)
Log Message:
-----------
perl/p5-mail-spamassassin: Fix destroot problem, closes #18085.
Modified Paths:
--------------
trunk/dports/perl/p5-mail-spamassassin/Portfile
Added Paths:
-----------
trunk/dports/perl/p5-mail-spamassassin/files/
trunk/dports/perl/p5-mail-spamassassin/files/patch-Makefile.PL.diff
Modified: trunk/dports/perl/p5-mail-spamassassin/Portfile
===================================================================
--- trunk/dports/perl/p5-mail-spamassassin/Portfile 2009-01-18 21:16:59 UTC (rev 45606)
+++ trunk/dports/perl/p5-mail-spamassassin/Portfile 2009-01-18 21:21:38 UTC (rev 45607)
@@ -4,6 +4,7 @@
PortGroup perl5 1.0
perl5.setup Mail-SpamAssassin 3.2.5
+revision 1
categories-append mail
platforms darwin
maintainers simon openmaintainer
@@ -33,6 +34,8 @@
startupitem.name spamd
startupitem.executable "${prefix}/bin/spamd"
+patchfiles patch-Makefile.PL.diff
+
post-patch {
reinplace "s|return ''|return 'PRIV'|" ${worksrcpath}/Makefile.PL
}
Added: trunk/dports/perl/p5-mail-spamassassin/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-mail-spamassassin/files/patch-Makefile.PL.diff (rev 0)
+++ trunk/dports/perl/p5-mail-spamassassin/files/patch-Makefile.PL.diff 2009-01-18 21:21:38 UTC (rev 45607)
@@ -0,0 +1,35 @@
+Add missing DESTDIR, not sure why this is necessary.
+
+Index: Makefile.PL
+===================================================================
+--- Makefile.PL.orig 2008-06-10 11:21:07.000000000 +0200
++++ Makefile.PL 2009-01-18 22:07:10.000000000 +0100
+@@ -1200,18 +1200,18 @@
+ # # $(SYMLINK) $(INST_SCRIPT)/sa-filter $(B_SCRIPTDIR)/spamassassin
+
+ conf__install:
+- -$(MKPATH) $(B_CONFDIR)
+- $(PERL) -MFile::Copy -e "copy(q{rules/local.cf}, q{$(B_CONFDIR)/local.cf}) unless -f q{$(B_CONFDIR)/local.cf}"
+- $(PERL) -MFile::Copy -e "copy(q{rules/init.pre}, q{$(B_CONFDIR)/init.pre}) unless -f q{$(B_CONFDIR)/init.pre}"
+- $(PERL) -MFile::Copy -e "copy(q{rules/v310.pre}, q{$(B_CONFDIR)/v310.pre}) unless -f q{$(B_CONFDIR)/v310.pre}"
+- $(PERL) -MFile::Copy -e "copy(q{rules/v312.pre}, q{$(B_CONFDIR)/v312.pre}) unless -f q{$(B_CONFDIR)/v312.pre}"
+- $(PERL) -MFile::Copy -e "copy(q{rules/v320.pre}, q{$(B_CONFDIR)/v320.pre}) unless -f q{$(B_CONFDIR)/v320.pre}"
++ -$(MKPATH) $(DESTDIR)$(B_CONFDIR)
++ $(PERL) -MFile::Copy -e "copy(q{rules/local.cf}, q{$(DESTDIR)$(B_CONFDIR)/local.cf})"
++ $(PERL) -MFile::Copy -e "copy(q{rules/init.pre}, q{$(DESTDIR)$(B_CONFDIR)/init.pre})"
++ $(PERL) -MFile::Copy -e "copy(q{rules/v310.pre}, q{$(DESTDIR)$(B_CONFDIR)/v310.pre})"
++ $(PERL) -MFile::Copy -e "copy(q{rules/v312.pre}, q{$(DESTDIR)$(B_CONFDIR)/v312.pre})"
++ $(PERL) -MFile::Copy -e "copy(q{rules/v320.pre}, q{$(DESTDIR)$(B_CONFDIR)/v320.pre})"
+
+ data__install:
+- -$(MKPATH) $(B_DATADIR)
+- $(PERL) -e "map unlink, <$(B_DATADIR)/*>"
+- $(PREPROCESS) $(FIXVARS) -m$(PERM_RW) -Irules -O$(B_DATADIR) $(DATAFILES)
+- $(CHMOD) $(PERM_RWX) $(B_DATADIR)
++ -$(MKPATH) $(DESTDIR)$(B_DATADIR)
++ $(PERL) -e "map unlink, <$(DESTDIR)$(B_DATADIR)/*>"
++ $(PREPROCESS) $(FIXVARS) -m$(PERM_RW) -Irules -O$(DESTDIR)$(B_DATADIR) $(DATAFILES)
++ $(CHMOD) $(PERM_RWX) $(DESTDIR)$(B_DATADIR)
+
+ text_html_doc: made-doc-stamp
+ $(NOOP)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090118/fbb73ec9/attachment.html>
More information about the macports-changes
mailing list