source: trunk/dports/net/proftpd/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                proftpd
6version             1.3.3e
7revision            1
8categories          net
9maintainers         nomaintainer
10description         Highly configurable ftp-server.
11long_description    ProFTPD is a highly configurable ftp daemon for unix \
12                    and unix-like operating systems. ProFTPD is designed \
13                    to be somewhat of a "drop-in" replacement for wu-ftpd \
14                    with a configuration format like Apache.
15homepage            http://www.proftpd.org
16platforms           darwin freebsd
17master_sites        ftp://ftp.proftpd.org/distrib/source/ \
18                    ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.proftpd.net/distrib/source/ \
19                    ftp://mirror.hostfuss.com/proftpd/distrib/source/ \
20                    ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.proftpd.org/distrib/source/ \
21                    ftp://proftpd.get7.biz/proftpd/distrib/source/ \
22                    ftp://ftp.ibiblio.org/pub/mirrors/proftpd/distrib/source/ \
23                    ftp://ftp.solnet.ch/mirror/proftpd.org/distrib/source/
24checksums           rmd160 12eef0bd466cdb1dbdd342cda8e93c1cb619dd07 \
25                    sha256 f6c65fe9fea6577ac309f4e9e36c80def271fa5c91c4053fb0758824506127b6
26                   
27depends_lib         path:lib/libssl.dylib:openssl
28use_bzip2           yes
29
30configure.args      --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var/run \
31                    --mandir=${prefix}/share/man install_user=`id -u` install_group=`id -g`
32
33# only one --with-modules arg can be used, likewise --with-{includes,libraries}
34set modules mod_tls
35set includes {}
36set libs {}
37pre-configure {
38    configure.args-append --with-modules=[join $modules :]
39    if {$includes != {}} {
40        configure.args-append --with-includes=[join $includes :]
41    }
42    if {$libs != {}} {
43        configure.args-append --with-libraries=[join $libs :]
44    }
45}
46
47pre-destroot {
48    reinplace "s|nogroup|nobody|g" ${worksrcpath}/sample-configurations/basic.conf
49    xinstall -m 755 -d ${destroot}${prefix}/var/run/proftpd
50    system "touch ${destroot}${prefix}/var/run/proftpd/proftpd.scoreboard"
51}
52
53variant mysql4 conflicts mysql5 postgresql84 description {Build with mysql4 support} {
54    depends_lib-append      port:mysql4
55    lappend modules mod_sql mod_sql_mysql
56    lappend includes ${prefix}/include/mysql
57    lappend libs ${prefix}/lib/mysql
58}
59
60variant mysql5 conflicts mysql4 postgresql84 description {Build with mysql5 support} {
61    depends_lib-append   path:bin/mysql_config5:mysql5
62    lappend modules mod_sql mod_sql_mysql
63    lappend includes ${prefix}/include/mysql5/mysql
64    lappend libs ${prefix}/lib/mysql5/mysql
65}
66
67variant postgresql84 conflicts mysql5 mysql4 description {Build with PostgreSQL 8.4 support} {
68    depends_lib-append      port:postgresql84
69    lappend modules mod_sql mod_sql_postgres
70    lappend includes ${prefix}/include/postgresql84
71    lappend libs ${prefix}/lib/postgresql84
72}
73
74variant quotatab description {Build with SQL quota support} {
75    lappend modules mod_quotatab mod_quotatab_sql
76}
77
78startupitem.create  yes
79startupitem.start   "${prefix}/sbin/proftpd"
80startupitem.restart "/bin/kill -HUP \$(/bin/cat ${prefix}/var/run/proftpd.pid)"
81startupitem.stop    "/bin/kill -15 \$(/bin/cat ${prefix}/var/run/proftpd.pid)"
Note: See TracBrowser for help on using the repository browser.