Ticket #1530: dovecot.2.diff

File dovecot.2.diff, 883 bytes (added by andrea+darwinports@…, 20 years ago)

The patch, take 2

  • Portfile

    diff -urN dovecot.orig/Portfile dovecot/Portfile
    old new  
    2222  }
    2323variant rawlog  {       configure.args-append   --with-rawlog   }
    2424variant ldap      {     configure.args-append   --with-ldap     }
     25
     26destroot        {
     27        xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d
     28        xinstall -m 755 -c ${portpath}/files/dovecot.sh ${destroot}${prefix}/etc/rc.d
     29        reinplace "s|__PREFIX|${prefix}|g" \
     30                ${destroot}${prefix}/etc/rc.d/dovecot.sh
     31}
  • files/dovecot.sh

    diff -urN dovecot.orig/files/dovecot.sh dovecot/files/dovecot.sh
    old new  
     1#!/bin/sh
     2
     3case "$1" in
     4
     5start)
     6  __PREFIX/sbin/dovecot start
     7  ;;
     8
     9restart)
     10  __PREFIX/sbin/dovecot reload
     11  ;;
     12
     13stop)
     14  __PREFIX/sbin/dovecot stop
     15  ;;
     16
     17esac