source: trunk/dports/net/proftpd/Portfile @ 127995

Last change on this file since 127995 was 127995, checked in by mf2k@…, 4 years ago

proftpd: nomaintainer. (#45847)

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