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$ 2 3 3 4 PortSystem 1.0 4 5 5 6 name pure-ftpd 6 7 set pretty_name Pure-FTPd 7 version 1.0.2 78 version 1.0.29 8 9 9 10 categories net 10 11 platforms darwin … … 27 28 28 29 use_bzip2 yes 29 30 30 checksums md5 7d18544384aa1649d483ba86518ed34e\31 sha1 f4c3fcc68bea3b2dad9ff76624e23f072acd9c2e\32 rmd160 2e6f2501e1d6da6c5caf32b802e7c2d481e2e6ee31 checksums md5 12a074824b509f9e7684fab333ed6915 \ 32 sha1 9bba0d6122066098273fde6db03b54825911c012 \ 33 rmd160 bcbff660f5ec34d39830a3ffd0594edae5745e79 33 34 34 35 livecheck.type regex 35 36 livecheck.url http://download.pureftpd.org/pub/${name}/releases/ … … 65 66 pureftpd-ldap.conf pureftpd-mysql.conf pureftpd-pgsql.conf pureftpd.schema \ 66 67 README.Authentication-Modules README.Configuration-File \ 67 68 README README.Authentication-Modules README.Configuration-File README.Contrib \ 68 README. iPhone README.Donations README.LDAP README.MacOS-XREADME.PGSQL README.TLS \69 README.Donations README.LDAP README.PGSQL README.TLS \ 69 70 README.MySQL README.Virtual-Users README.MySQL README.PGSQL README.TLS README.Virtual-Users \ 70 71 THANKS \ 71 72 ${destroot}${prefix}/share/doc/${name} 72 73 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 73 78 # Copy in the sample launchd plists item 74 79 file copy ${filespath}/org.pure-ftpd.ftpd.plist.basic.sample.in ${destroot}${prefix}/share/doc/${name}/org.pure-ftpd.ftpd.plist.basic.sample 75 80 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/share/doc/${name}/org.pure-ftpd.ftpd.plist.basic.sample 76 81 77 82 # 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 79 86 } 80 87 81 88 # Variants 89 variant uploadscript description "Configures ${name} to support post processing of uploaded files" { 90 configure.args-append --with-uploadscript 91 } 82 92 variant mysql5 conflicts postgresql82 postgresql83 postgresql84 description "Use MySQL 5 for privileges database" { 83 93 depends_lib-append path:bin/mysql_config5:mysql5 84 94 configure.args-append --with-mysql … … 169 179 ui_msg "" 170 180 171 181 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" 173 183 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" 175 185 176 186 ui_msg "You can now test the server with:" 177 187 ui_msg " ftp localhost"