[71082] trunk/dports/net/pastebinit/Portfile

mnick at macports.org mnick at macports.org
Tue Aug 31 15:44:21 PDT 2010


Revision: 71082
          http://trac.macports.org/changeset/71082
Author:   mnick at macports.org
Date:     2010-08-31 15:44:20 -0700 (Tue, 31 Aug 2010)
Log Message:
-----------
install missing config files and point config path to prefix (closes #25556)

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

Modified: trunk/dports/net/pastebinit/Portfile
===================================================================
--- trunk/dports/net/pastebinit/Portfile	2010-08-31 22:08:39 UTC (rev 71081)
+++ trunk/dports/net/pastebinit/Portfile	2010-08-31 22:44:20 UTC (rev 71082)
@@ -29,7 +29,9 @@
 depends_lib-append  port:py26-configobj
 
 post-patch {
+    # Fix paths
     reinplace "s|^#!/usr/bin/python|#!${prefix}/bin/python2.6|" ${worksrcpath}/pastebinit
+    reinplace "s|/etc/pastebin.d|${prefix}/etc/pastebin.d|" ${worksrcpath}/pastebinit
 }
 
 build {
@@ -38,7 +40,8 @@
 
 destroot {
     xinstall -m 755 ${worksrcpath}/pastebinit ${destroot}${prefix}/bin
-    
+    file copy ${worksrcpath}/pastebin.d ${destroot}${prefix}/etc/pastebin.d
+
     # Localization
     xinstall -m 755 -d ${destroot}${localedir}
     foreach f  [glob ${worksrcpath}/po/mo/*] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100831/da6d5074/attachment.html>


More information about the macports-changes mailing list