Changeset 126932


Ignore:
Timestamp:
Oct 17, 2014, 8:28:12 PM (5 years ago)
Author:
pixilla@…
Message:

mail/sqlgrey:

  • Add perl5 variants via port group perl5.create_variants proc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/sqlgrey/Portfile

    r98805 r126932  
    1010categories          mail
    1111license             GPL-2
    12 maintainers         pixilla
     12maintainers         pixilla openmaintainer
    1313platforms           darwin
    1414description         SQLgrey is a postfix policy service implementing a grey-listing policy
     
    1717master_sites        sourceforge
    1818
     19checksums           rmd160  0404df3987ceb4732e73fee09388454995754c1c \
     20                    sha256  c109aab28c9dcf798beb708d1efa37facfb3dfacd0f15fa87b5f6c1f023d2068
     21
     22perl5.require_variant yes
     23perl5.conflict_variants yes
     24perl5.branches      5.16 5.18 5.20
     25perl5.create_variants ${perl5.branches}
     26
    1927supported_archs     noarch
    20 
    21 depends_lib         port:p5.12-dbi \
    22                     port:p5.12-io-multiplex \
    23                     port:p5.12-net-dns \
    24                     port:p5.12-net-server
     28depends_lib         port:p${perl5.major}-dbi \
     29                    port:p${perl5.major}-io-multiplex \
     30                    port:p${perl5.major}-net-dns \
     31                    port:p${perl5.major}-net-server
    2532
    2633depends_run         port:postfix
    2734
    28 checksums           sha1    2359577af0149394d1181e12007f013478148423 \
    29                     rmd160  0404df3987ceb4732e73fee09388454995754c1c
    3035patch.pre_args      -p1
    3136patchfiles          patch-Makefile.diff \
     
    3742set sqlgreyuser     _${name}
    3843set sqlgreygroup    ${sqlgreyuser}
     44
     45add_users ${sqlgreyuser} group=${sqlgreygroup} realname=${name}
    3946
    4047post-patch {
     
    5865}
    5966
    60 use_configure       no
     67use_configure           no
    6168
    62 startupitem.create  yes
    63 startupitem.executable \
    64                     ${prefix}/sbin/sqlgrey
     69build.env-append    LC_CTYPE=C
     70destroot.env-append LC_CTYPE=C
    6571
    6672destroot.keepdirs   ${destroot}${prefix}/var/run/${name}
    6773
    6874post-destroot {
    69     addgroup ${sqlgreygroup} realname=${name}
    70     set gid [existsgroup ${sqlgreygroup}]
    71     adduser ${sqlgreyuser} gid=${gid} realname=${name}
    7275    move ${destroot}${prefix}/etc/${name}/sqlgrey.conf ${destroot}${prefix}/etc/${name}/sqlgrey.conf.example
    7376    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     
    8184}
    8285
    83 default_variants    +mysql
     86startupitem.create  yes
     87startupitem.executable \
     88                    ${prefix}/sbin/sqlgrey
    8489
    85 variant mysql description {add mysql driver support} {
    86     depends_lib-append  port:p5.12-dbd-mysql
     90default_variants-append \
     91                    +mysql
     92
     93variant mysql description {Add mysql driver support} {
     94    depends_lib-append  port:p${perl5.major}-dbd-mysql
    8795}
    8896
    89 variant sqlite description {add sqlite driver support} {
    90     depends_lib-append  port:p5.12-dbd-sqlite
     97variant sqlite description {Add sqlite driver support} {
     98    depends_lib-append  port:p${perl5.major}-dbd-sqlite
    9199}
    92100
    93 variant postgresql description {add postgres driver support} {
    94     depends_lib-append  port:p5.12-dbd-pg
     101variant postgresql description {Add postgres driver support} {
     102    depends_lib-append  port:p${perl5.major}-dbd-pg
    95103}
    96104
Note: See TracChangeset for help on using the changeset viewer.