[126932] trunk/dports/mail/sqlgrey/Portfile

pixilla at macports.org pixilla at macports.org
Fri Oct 17 13:28:12 PDT 2014


Revision: 126932
          https://trac.macports.org/changeset/126932
Author:   pixilla at macports.org
Date:     2014-10-17 13:28:12 -0700 (Fri, 17 Oct 2014)
Log Message:
-----------
mail/sqlgrey:
- Add perl5 variants via port group perl5.create_variants proc.

Modified Paths:
--------------
    trunk/dports/mail/sqlgrey/Portfile

Modified: trunk/dports/mail/sqlgrey/Portfile
===================================================================
--- trunk/dports/mail/sqlgrey/Portfile	2014-10-17 20:27:43 UTC (rev 126931)
+++ trunk/dports/mail/sqlgrey/Portfile	2014-10-17 20:28:12 UTC (rev 126932)
@@ -9,24 +9,29 @@
 revision            2
 categories          mail
 license             GPL-2
-maintainers         pixilla
+maintainers         pixilla openmaintainer
 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
 
+checksums           rmd160  0404df3987ceb4732e73fee09388454995754c1c \
+                    sha256  c109aab28c9dcf798beb708d1efa37facfb3dfacd0f15fa87b5f6c1f023d2068
+
+perl5.require_variant yes
+perl5.conflict_variants yes
+perl5.branches      5.16 5.18 5.20
+perl5.create_variants ${perl5.branches}
+
 supported_archs     noarch
+depends_lib         port:p${perl5.major}-dbi \
+                    port:p${perl5.major}-io-multiplex \
+                    port:p${perl5.major}-net-dns \
+                    port:p${perl5.major}-net-server
 
-depends_lib         port:p5.12-dbi \
-                    port:p5.12-io-multiplex \
-                    port:p5.12-net-dns \
-                    port:p5.12-net-server
-
 depends_run         port:postfix
 
-checksums           sha1    2359577af0149394d1181e12007f013478148423 \
-                    rmd160  0404df3987ceb4732e73fee09388454995754c1c
 patch.pre_args      -p1
 patchfiles          patch-Makefile.diff \
                     patch-etc-sqlgrey.conf.diff \
@@ -37,6 +42,8 @@
 set sqlgreyuser     _${name}
 set sqlgreygroup    ${sqlgreyuser}
 
+add_users ${sqlgreyuser} group=${sqlgreygroup} realname=${name}
+
 post-patch {
     reinplace "s|@PREFIX@|${prefix}|g" \
         ${worksrcpath}/etc/sqlgrey.conf \
@@ -57,18 +64,14 @@
         ${worksrcpath}/sqlgrey
 }
 
-use_configure       no
+use_configure           no
 
-startupitem.create  yes
-startupitem.executable \
-                    ${prefix}/sbin/sqlgrey
+build.env-append    LC_CTYPE=C
+destroot.env-append LC_CTYPE=C
 
 destroot.keepdirs   ${destroot}${prefix}/var/run/${name}
 
 post-destroot {
-    addgroup ${sqlgreygroup} realname=${name}
-    set gid [existsgroup ${sqlgreygroup}]
-    adduser ${sqlgreyuser} gid=${gid} realname=${name}
     move ${destroot}${prefix}/etc/${name}/sqlgrey.conf ${destroot}${prefix}/etc/${name}/sqlgrey.conf.example
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 0664 -W ${worksrcpath} FAQ HOWTO README.DBCLUSTER README.DISCRIMINATION README.OPTINOUT README.PERF \
@@ -80,18 +83,23 @@
     touch ${prefix}/etc/${name}/clients_ip_whitelist.local
 }
 
-default_variants    +mysql
+startupitem.create  yes
+startupitem.executable \
+                    ${prefix}/sbin/sqlgrey
 
-variant mysql description {add mysql driver support} {
-    depends_lib-append  port:p5.12-dbd-mysql
+default_variants-append \
+                    +mysql
+
+variant mysql description {Add mysql driver support} {
+    depends_lib-append  port:p${perl5.major}-dbd-mysql
 }
 
-variant sqlite description {add sqlite driver support} {
-    depends_lib-append  port:p5.12-dbd-sqlite
+variant sqlite description {Add sqlite driver support} {
+    depends_lib-append  port:p${perl5.major}-dbd-sqlite
 }
 
-variant postgresql description {add postgres driver support} {
-    depends_lib-append  port:p5.12-dbd-pg
+variant postgresql description {Add postgres driver support} {
+    depends_lib-append  port:p${perl5.major}-dbd-pg
 }
 
 variant table_names description {Make table names configurable} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141017/329922b1/attachment-0001.html>


More information about the macports-changes mailing list