Ticket #24750: Portfile-pure-ftpd.diff

File Portfile-pure-ftpd.diff, 3.6 KB (added by scott@…, 15 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 61831 2009-12-21 21:28:16Z ryandesign@macports.org $
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     2# $Id$
    23
    34PortSystem          1.0
    45
    56name                pure-ftpd
    67set pretty_name     Pure-FTPd
    7 version             1.0.27
     8version             1.0.29
    89
    910categories          net
    1011platforms           darwin
     
    2728
    2829use_bzip2           yes
    2930
    30 checksums           md5     7d18544384aa1649d483ba86518ed34e \
    31                     sha1    f4c3fcc68bea3b2dad9ff76624e23f072acd9c2e \
    32                     rmd160  2e6f2501e1d6da6c5caf32b802e7c2d481e2e6ee
     31checksums           md5     12a074824b509f9e7684fab333ed6915 \
     32                    sha1    9bba0d6122066098273fde6db03b54825911c012 \
     33                    rmd160  bcbff660f5ec34d39830a3ffd0594edae5745e79
    3334                   
    3435livecheck.type      regex
    3536livecheck.url       http://download.pureftpd.org/pub/${name}/releases/
     
    6566        pureftpd-ldap.conf pureftpd-mysql.conf pureftpd-pgsql.conf pureftpd.schema \
    6667        README.Authentication-Modules README.Configuration-File \
    6768        README README.Authentication-Modules README.Configuration-File README.Contrib \
    68         README.iPhone README.Donations README.LDAP README.MacOS-X README.PGSQL README.TLS \
     69        README.Donations README.LDAP README.PGSQL README.TLS \
    6970        README.MySQL README.Virtual-Users README.MySQL README.PGSQL README.TLS README.Virtual-Users \
    7071        THANKS \
    7172        ${destroot}${prefix}/share/doc/${name}
    7273   
     74    # Install in the modified README.MacOS-X file
     75    xinstall -m 644 ${filespath}/README.MacOS-X ${destroot}${prefix}/share/doc/${name}/README.MacOS-X
     76    reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/share/doc/${name}/README.MacOS-X
     77   
    7378    # Copy in the sample launchd plists item
    7479    file copy ${filespath}/org.pure-ftpd.ftpd.plist.basic.sample.in ${destroot}${prefix}/share/doc/${name}/org.pure-ftpd.ftpd.plist.basic.sample
    7580    reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/share/doc/${name}/org.pure-ftpd.ftpd.plist.basic.sample
    7681   
    7782    # Copy in the sample pure-ftpd pam file
    78     file copy ${filespath}/pure-ftpd.pam.sample ${destroot}${prefix}/share/doc/${name}/pure-ftpd.pam.sample
     83    file copy ${filespath}/pure-ftpd.pam.10.5.sample ${destroot}${prefix}/share/doc/${name}/pure-ftpd.pam.10.5.sample
     84    file copy ${filespath}/pure-ftpd.pam.10.6.sample ${destroot}${prefix}/share/doc/${name}/pure-ftpd.pam.10.6.sample
     85   
    7986}
    8087
    8188# Variants
     89variant uploadscript description "Configures ${name} to support post processing of uploaded files" {
     90    configure.args-append --with-uploadscript
     91}
    8292variant mysql5 conflicts postgresql82 postgresql83 postgresql84 description "Use MySQL 5 for privileges database" {
    8393    depends_lib-append path:bin/mysql_config5:mysql5
    8494    configure.args-append --with-mysql
     
    169179    ui_msg ""
    170180   
    171181    ui_msg "If you intend to use pure-FTPd with PAM, meaning you want to authenticate against Mac OS X"
    172     ui_msg "user accounts, please copy the pure-ftpd.pam.sample file to /etc/pam.d/pure-ftpd"
     182    ui_msg "user accounts, please copy the pure-ftpd.pam.10.x.sample file to /etc/pam.d/pure-ftpd"
    173183    ui_msg "cd ${prefix}/share/doc/${name}/"
    174     ui_msg "sudo cp pure-ftpd.pam.sample /etc/pam.d/pure-ftpd"
     184    ui_msg "sudo cp pure-ftpd.pam.10.x.sample /etc/pam.d/pure-ftpd"
    175185   
    176186    ui_msg "You can now test the server with:"
    177187    ui_msg "    ftp localhost"