New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79572


Ignore:
Timestamp:
06/18/11 13:47:47 (4 years ago)
Author:
pixilla@…
Message:

mail/sqlgrey: Add supported_archs. Improve Portfile readability.

Location:
trunk/dports/mail/sqlgrey
Files:
2 edited

Legend:

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

    r79570 r79572  
    88version             1.8.0-rc2 
    99categories          mail 
    10 maintainers         pixilla.com:brad 
     10maintainers         pixilla 
    1111platforms           darwin 
    1212description         SQLgrey is a postfix policy service implementing a grey-listing policy 
     
    1414homepage            http://sqlgrey.sourceforge.net/ 
    1515master_sites        sourceforge 
     16 
     17supported_archs     noarch 
    1618 
    1719depends_lib         port:p5-net-server \ 
     
    3335set sqlgreygroup    ${sqlgreyuser} 
    3436 
    35 pre-configure { 
    36     reinplace "s|@@PREFIX@@|${destroot}${prefix}|g" ${worksrcpath}/Makefile 
    37     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/etc/sqlgrey.conf 
    38     reinplace "s|@@NAME@@|${name}|g" ${worksrcpath}/etc/sqlgrey.conf 
    39     reinplace "s|@@SQLGREYUSER@@|${sqlgreyuser}|g" ${worksrcpath}/etc/sqlgrey.conf 
    40     reinplace "s|@@SQLGREYGROUP@@|${sqlgreygroup}|g" ${worksrcpath}/etc/sqlgrey.conf 
    41     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/sqlgrey-logstats.pl 
    42     reinplace "s|@@NAME@@|${name}|g" ${worksrcpath}/sqlgrey 
    43     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/sqlgrey 
    44     reinplace "s|@@SQLGREYUSER@@|${sqlgreyuser}|g" ${worksrcpath}/sqlgrey 
    45     reinplace "s|@@SQLGREYGROUP@@|${sqlgreygroup}|g" ${worksrcpath}/sqlgrey 
    46     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/tester.pl             
     37post-patch { 
     38    reinplace "s|@@PREFIX@@|${prefix}|g" \ 
     39        ${worksrcpath}/etc/sqlgrey.conf \ 
     40        ${worksrcpath}/sqlgrey \ 
     41        ${worksrcpath}/sqlgrey-logstats.pl \ 
     42        ${worksrcpath}/tester.pl \ 
     43        ${worksrcpath}/Makefile 
     44    reinplace "s|@@DESTROOT@@|${destroot}|g" \ 
     45        ${worksrcpath}/Makefile 
     46    reinplace "s|@@NAME@@|${name}|g" \ 
     47        ${worksrcpath}/etc/sqlgrey.conf \ 
     48        ${worksrcpath}/sqlgrey 
     49    reinplace "s|@@SQLGREYUSER@@|${sqlgreyuser}|g" \ 
     50        ${worksrcpath}/etc/sqlgrey.conf \ 
     51        ${worksrcpath}/sqlgrey 
     52    reinplace "s|@@SQLGREYGROUP@@|${sqlgreygroup}|g" \ 
     53        ${worksrcpath}/etc/sqlgrey.conf \ 
     54        ${worksrcpath}/sqlgrey 
    4755} 
    4856 
  • trunk/dports/mail/sqlgrey/files/patch-Makefile.diff

    r79570 r79572  
    44 INSTALL = install 
    55-ETCDIR = $(ROOTDIR)/etc 
    6 +ETCDIR = @@PREFIX@@/etc 
     6+ETCDIR = @@DESTROOT@@@@PREFIX@@/etc 
    77 CONFDIR = $(ETCDIR)/sqlgrey 
    88-SBINDIR = $(ROOTDIR)/usr/sbin 
    99-BINDIR = $(ROOTDIR)/usr/bin 
    10 +SBINDIR = @@PREFIX@@/sbin 
    11 +BINDIR = @@PREFIX@@/bin 
     10+SBINDIR = @@DESTROOT@@@@PREFIX@@/sbin 
     11+BINDIR = @@DESTROOT@@@@PREFIX@@/bin 
    1212 INITDIR = $(ETCDIR)/init.d 
    1313-MANDIR = $(ROOTDIR)/usr/share/man/man1 
    14 +MANDIR = @@PREFIX@@/share/man/man1 
     14+MANDIR = @@DESTROOT@@@@PREFIX@@/share/man/man1 
    1515  
    1616 VERSION := $(shell cat VERSION) 
Note: See TracChangeset for help on using the changeset viewer.