[79572] trunk/dports/mail/sqlgrey

pixilla at macports.org pixilla at macports.org
Sat Jun 18 13:47:48 PDT 2011


Revision: 79572
          http://trac.macports.org/changeset/79572
Author:   pixilla at macports.org
Date:     2011-06-18 13:47:47 -0700 (Sat, 18 Jun 2011)
Log Message:
-----------
mail/sqlgrey: Add supported_archs. Improve Portfile readability.

Modified Paths:
--------------
    trunk/dports/mail/sqlgrey/Portfile
    trunk/dports/mail/sqlgrey/files/patch-Makefile.diff

Modified: trunk/dports/mail/sqlgrey/Portfile
===================================================================
--- trunk/dports/mail/sqlgrey/Portfile	2011-06-18 20:28:33 UTC (rev 79571)
+++ trunk/dports/mail/sqlgrey/Portfile	2011-06-18 20:47:47 UTC (rev 79572)
@@ -7,13 +7,15 @@
 name                sqlgrey
 version             1.8.0-rc2
 categories          mail
-maintainers         pixilla.com:brad
+maintainers         pixilla
 platforms           darwin
 description         SQLgrey is a postfix policy service implementing a grey-listing policy
 long_description    ${description}
 homepage            http://sqlgrey.sourceforge.net/
 master_sites        sourceforge
 
+supported_archs     noarch
+
 depends_lib         port:p5-net-server \
                     port:p5-io-multiplex \
                     port:p5-dbi
@@ -32,18 +34,24 @@
 set sqlgreyuser     _${name}
 set sqlgreygroup    ${sqlgreyuser}
 
-pre-configure {
-    reinplace "s|@@PREFIX@@|${destroot}${prefix}|g" ${worksrcpath}/Makefile
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/etc/sqlgrey.conf
-    reinplace "s|@@NAME@@|${name}|g" ${worksrcpath}/etc/sqlgrey.conf
-    reinplace "s|@@SQLGREYUSER@@|${sqlgreyuser}|g" ${worksrcpath}/etc/sqlgrey.conf
-    reinplace "s|@@SQLGREYGROUP@@|${sqlgreygroup}|g" ${worksrcpath}/etc/sqlgrey.conf
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/sqlgrey-logstats.pl
-    reinplace "s|@@NAME@@|${name}|g" ${worksrcpath}/sqlgrey
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/sqlgrey
-    reinplace "s|@@SQLGREYUSER@@|${sqlgreyuser}|g" ${worksrcpath}/sqlgrey
-    reinplace "s|@@SQLGREYGROUP@@|${sqlgreygroup}|g" ${worksrcpath}/sqlgrey
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/tester.pl            
+post-patch {
+    reinplace "s|@@PREFIX@@|${prefix}|g" \
+        ${worksrcpath}/etc/sqlgrey.conf \
+        ${worksrcpath}/sqlgrey \
+        ${worksrcpath}/sqlgrey-logstats.pl \
+        ${worksrcpath}/tester.pl \
+        ${worksrcpath}/Makefile
+    reinplace "s|@@DESTROOT@@|${destroot}|g" \
+        ${worksrcpath}/Makefile
+    reinplace "s|@@NAME@@|${name}|g" \
+        ${worksrcpath}/etc/sqlgrey.conf \
+        ${worksrcpath}/sqlgrey
+    reinplace "s|@@SQLGREYUSER@@|${sqlgreyuser}|g" \
+        ${worksrcpath}/etc/sqlgrey.conf \
+        ${worksrcpath}/sqlgrey
+    reinplace "s|@@SQLGREYGROUP@@|${sqlgreygroup}|g" \
+        ${worksrcpath}/etc/sqlgrey.conf \
+        ${worksrcpath}/sqlgrey
 }
 
 use_configure       no

Modified: trunk/dports/mail/sqlgrey/files/patch-Makefile.diff
===================================================================
--- trunk/dports/mail/sqlgrey/files/patch-Makefile.diff	2011-06-18 20:28:33 UTC (rev 79571)
+++ trunk/dports/mail/sqlgrey/files/patch-Makefile.diff	2011-06-18 20:47:47 UTC (rev 79572)
@@ -3,15 +3,15 @@
 @@ -1,10 +1,10 @@
  INSTALL = install
 -ETCDIR = $(ROOTDIR)/etc
-+ETCDIR = @@PREFIX@@/etc
++ETCDIR = @@DESTROOT@@@@PREFIX@@/etc
  CONFDIR = $(ETCDIR)/sqlgrey
 -SBINDIR = $(ROOTDIR)/usr/sbin
 -BINDIR = $(ROOTDIR)/usr/bin
-+SBINDIR = @@PREFIX@@/sbin
-+BINDIR = @@PREFIX@@/bin
++SBINDIR = @@DESTROOT@@@@PREFIX@@/sbin
++BINDIR = @@DESTROOT@@@@PREFIX@@/bin
  INITDIR = $(ETCDIR)/init.d
 -MANDIR = $(ROOTDIR)/usr/share/man/man1
-+MANDIR = @@PREFIX@@/share/man/man1
++MANDIR = @@DESTROOT@@@@PREFIX@@/share/man/man1
  
  VERSION := $(shell cat VERSION)
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110618/c614f335/attachment.html>


More information about the macports-changes mailing list