Ticket #20836: Portfile-pureftpd.diff

File Portfile-pureftpd.diff, 10.5 KB (added by lwilbrandt@…, 15 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 54601 2009-07-30 06:26:57Z toby@macports.org $
     1# $Id: Portfile 30239 2007-10-23 01:55:09Z jmpp@macports.org $
    22
    3 PortSystem       1.0
    4 
    5 name             pureftpd
    6 version          1.0.21
    7 categories       net
    8 platforms        darwin
    9 maintainers      nomaintainer
    10 
    11 homepage         http://pureftpd.org/
    12 description      A fast and standard-conformant FTP server
    13 
    14 long_description "Pure-FTPd is a fast, production-quality, standard-conformant FTP server, \
    15                  based upon Troll-FTPd. \
    16                  Unlike other popular FTP servers, it's designed to be secure in default \
    17                  configuration, has no known buffer overflow, it is really trivial to set \
    18                  up and it is especially designed for modern kernels. \
    19                  Features include chroot()ed and/or virtual chroot()ed home directories, \
    20                  virtual domains, built-in 'ls', anti-warez system, bounded ports for \
    21                  passive downloads, FXP protocol, bandwidth throttling, ratios, \
    22                  LDAP / MySQL / PostgreSQL-based authentication, fortune files, Apache-like \
    23                  log files, fast standalone mode, text / HTML / XML real-time status report, \
    24                  virtual users, virtual quotas and more."
    25 
    26 master_sites     ftp://ftp.pureftpd.org/pure-ftpd/releases/ \
    27                  ftp://ftp.fr.pureftpd.org/pure-ftpd/releases/
    28 
    29 distname         pure-ftpd-${version}
    30 use_bzip2        yes
    31 
    32 checksums        md5    ca8a8dbec0cd9c8ea92fc4c37ea9c410 \
    33                  sha1   1405ff2b9b9c3616c4e390eb99779884173a3347 \
    34                  rmd160 1ad61243c1f8a8d1055ee839eec0d9117681cf20
    35 
    36 patchfiles       patch-pam_pureftpd.diff
    37 
    38 configure.args   --with-everything \
    39                  --with-virtualchroot \
    40                  --with-paranoidmsg \
    41                  --with-pam \
    42                  --with-rendezvous \
    43                  --without-capabilities \
    44                  --mandir=${prefix}/share/man \
    45                  --infodir=${prefix}/share/info
    46 
    47 destroot.destdir prefix=${destroot}${prefix} \
    48                  mandir=${destroot}${prefix}/share/man
    49 
    50 post-destroot { \
    51     file mkdir ${destroot}${prefix}/share/doc/${name}
    52     xinstall -m 644 -v -W ${worksrcpath} \
    53     AUTHORS CONTACT FAQ HISTORY NEWS README \
    54     README.Authentication-Modules README.Configuration-File \
    55     README.LDAP README.MacOS-X README.MySQL README.PGSQL \
    56     README.TLS README.Virtual-Users pureftpd-ldap.conf \
    57     pureftpd-mysql.conf pureftpd-pgsql.conf THANKS \
    58     ${destroot}${prefix}/share/doc/${name}
    59     file copy ${worksrcpath}/pam/pure-ftpd \
    60     ${destroot}${prefix}/share/doc/${name}
    61 }
     3PortSystem 1.0
     4name                    pureftpd
     5version                 1.0.22
     6categories              net
     7platforms               darwin
     8maintainers             nomaintainer
     9homepage                http://pureftpd.org/
     10description             A fast and standard-conformant FTP server
     11
     12long_description        Pure-FTPd is a fast, production-quality, standard-conformant FTP server, \
     13                        based upon Troll-FTPd. \
     14                        Unlike other popular FTP servers, it's designed to be secure in default \
     15                        configuration, has no known buffer overflow, it is really trivial to set \
     16                        up and it is especially designed for modern kernels. \
     17                        Features include chroot()ed and/or virtual chroot()ed home directories, \
     18                        virtual domains, built-in 'ls', anti-warez system, bounded ports for \
     19                        passive downloads, FXP protocol, bandwidth throttling, ratios, \
     20                        LDAP / MySQL / PostgreSQL-based authentication, fortune files, Apache-like \
     21                        log files, fast standalone mode, text / HTML / XML real-time status report, \
     22                        virtual users, virtual quotas and more.
     23
     24master_sites            ftp://ftp.pureftpd.org/pure-ftpd/releases/ \
     25                        ftp://ftp.fr.pureftpd.org/pure-ftpd/releases/
     26
     27distname                pure-ftpd-${version}
     28use_bzip2               yes
     29
     30checksums               md5 3e131e1bb5a7ae8fc63bc0068fd351be \
     31                        sha1 38b88f9645cef6c1b6f20a2f7e73ef9289e3314b \
     32                        rmd160 e7715813f66a561024911b3f8064d1f067969e7f
     33
     34patchfiles              patch-pam_pureftpd.diff
     35
     36configure.args          --with-everything \
     37                        --with-virtualchroot \
     38                        --with-paranoidmsg \
     39                        --with-pam \
     40                        --with-rendezvous \
     41                        --without-capabilities \
     42                        --mandir=${prefix}/share/man \
     43                        --infodir=${prefix}/share/info
     44
     45destroot.destdir        prefix=${destroot}${prefix} \
     46                        mandir=${destroot}${prefix}/share/man
     47
     48post-destroot {         file mkdir ${destroot}${prefix}/share/doc/${name}
     49                        xinstall -m 644 -v -W ${worksrcpath} \
     50                                AUTHORS CONTACT FAQ HISTORY NEWS README \
     51                                README.Authentication-Modules README.Configuration-File \
     52                                README.LDAP README.MacOS-X README.MySQL README.PGSQL \
     53                                README.TLS README.Virtual-Users pureftpd-ldap.conf \
     54                                pureftpd-mysql.conf pureftpd-pgsql.conf THANKS \
     55                                ${destroot}${prefix}/share/doc/${name}
     56                        file copy ${worksrcpath}/pam/pure-ftpd \
     57                                ${destroot}${prefix}/share/doc/${name}
     58                        }
    6259
    6360# Notify the user how to launch the ftpd
    64 post-install {
    65     ui_msg "\nYou can now start PureFTPd in 3 ways,"
    66     ui_msg "either via xinetd, in standalone mode, or"
    67     ui_msg "if you're using Mac OS X 10.4 / Darwin 8.x"
    68     ui_msg "via launchd(8).\n"
    69     ui_msg "If you're under Mac OS X 10.3 or Mac OS X 10.4,"
    70     ui_msg "you have to copy ${prefix}/share/doc/${name}/pure-ftpd"
    71     ui_msg "to /etc/pam.d and use the '-lpam' flag when"
    72     ui_msg "launching pure-ftpd to have PAM working.\n"
    73 }
    74 
    75 # Langugage variants, should only be able to choose one.
    76 variant brazilian description "Use Bazilian language for server messages" { configure.args-append --with-language=brazilian }
    77 variant czech description "Use Czech language for server messages" { configure.args-append --with-language=czech }
    78 variant danish description "Use Danish language for server messages" { configure.args-append --with-language=danish }
    79 variant dutch description "Use Dutch language for server messages" { configure.args-append --with-language=dutch }
    80 variant french description "Use French language for server messages" { configure.args-append --with-language=french }
    81 variant french_funny description "Use French funny language for server messages" { configure.args-append --with-language=french-funny }
    82 variant german description "Use German language for server messages" { configure.args-append --with-language=german }
    83 variant italian description "Use Italian language for server messages" { configure.args-append --with-language=italian }
    84 variant korean description "Use Korean language for server messages" { configure.args-append --with-language=korean }
    85 variant norwegian description "Use Norwegian language for server messages" { configure.args-append --with-language=norwegian }
    86 variant polish description "Use Polish language for server messages" { configure.args-append --with-language=polish }
    87 variant romanian description "Use Romanian language for server messages" { configure.args-append --with-language=romanian }
    88 variant russian description "Use Russian language for server messages" { configure.args-append --with-language=russian }
    89 variant simplified_chinese description "Use simplified Chinese for server messages" { configure.args-append --with-language=simplified-chinese }
    90 variant slovak description "Use Slovak language for server messages" { configure.args-append --with-language=slovak }
    91 variant spanish description "Use Spanish language for server messages" { configure.args-append --with-language=spanish }
    92 variant swedish description "Use Swedish language for server messages" { configure.args-append --with-language=swedish }
    93 variant traditional_chinese description "Use traditional Chinese language for server messages" { configure.args-append --with-language=traditional-chinese }
    94 
    95 variant mysql5 description "Use the native MySQL support for users database." {
    96     depends_lib-append path:bin/mysql_config5:mysql5
    97     configure.args-append --with-mysql
    98     configure.cflags-append "-I${prefix}/include/mysql5/mysql"
    99     configure.ldflags-append "-L${prefix}/lib/mysql5/mysql"
    100 }
    101 
    102 variant nobanner description "Don't display the initial banner" { configure.args-append --without-banner }
    103 
    104 variant tls description "Encryption of the control channel using SSL/TLS" {
    105     depends_lib             lib:libssl.dylib:openssl
    106     configure.args-append   --with-tls \
    107                             --with-certfile=${prefix}/etc/ssl/private/pure-ftpd.pem
    108 }
     61post-install {          ui_msg "\nYou can now start PureFTPd in 3 ways,"
     62                        ui_msg "either via xinetd, in standalone mode, or"
     63                        ui_msg "if you're using Mac OS X 10.4 / Darwin 8.x"
     64                        ui_msg "via launchd(8).\n"
     65                        ui_msg "If you're under Mac OS X 10.3 or Mac OS X 10.4,"
     66                        ui_msg "you have to copy ${prefix}/share/doc/${name}/pure-ftpd"
     67                        ui_msg "to /etc/pam.d and use the '-lpam' flag when"
     68                        ui_msg "launching pure-ftpd to have PAM working.\n"
     69                        }
     70                       
     71platform darwin 6       { configure.args-delete --with-pam }
     72
     73variant tls {           depends_lib             port:openssl
     74                        configure.args-append   --with-tls \
     75                                                --with-certfile=${prefix}/etc/pure-ftpd/ssl/pure-ftpd.pem
     76                        }
     77
     78variant mysql {         depends_lib                     port:mysql5
     79                        configure.args-append           --with-mysql
     80                        configure.ldflags-append        "-L${prefix}/lib/mysql5/mysql"
     81                        configure.cppflags-append       "-I${prefix}/include/mysql5/mysql"
     82                        }
     83
     84variant nobanner        { configure.args-append --without-banner }
     85
     86variant french          { configure.args-append --with-language=french }
     87
     88variant french_funny    { configure.args-append --with-language=french-funny }
     89
     90variant german          { configure.args-append --with-language=german }
     91
     92variant spanish         { configure.args-append --with-language=spanish }
     93
     94variant italian         { configure.args-append --with-language=italian }
     95
     96variant polish          { configure.args-append --with-language=polish }
     97
     98variant danish          { configure.args-append --with-language=danish }
     99
     100variant romanian        { configure.args-append --with-language=romanian }
     101
     102variant brazilian       { configure.args-append --with-language=brazilian }
     103
     104variant slovak          { configure.args-append --with-language=slovak }
     105
     106variant dutch           { configure.args-append --with-language=dutch }
     107
     108variant korean          { configure.args-append --with-language=korean }
     109
     110variant swedish         { configure.args-append --with-language=swedish }
     111
     112variant norwegian       { configure.args-append --with-language=norwegian }
     113
     114variant russian         { configure.args-append --with-language=russian }
     115
     116variant czech           { configure.args-append --with-language=czech }
     117
     118variant traditional_chinese     { configure.args-append --with-language=traditional-chinese }       
     119
     120variant simplified_chinese      { configure.args-append --with-language=simplified-chinese }
     121