1 | # $Id: Portfile 33441 2008-01-27 11:46:26Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name proftpd |
---|
5 | version 1.3.2 |
---|
6 | categories net |
---|
7 | maintainers jenix@jinhyung.org |
---|
8 | description Highly configurable ftp-server. |
---|
9 | long_description ProFTPD is a highly configurable ftp daemon for unix \ |
---|
10 | and unix-like operating systems. ProFTPD is designed \ |
---|
11 | to be somewhat of a "drop-in" replacement for wu-ftpd \ |
---|
12 | with a configuration format like Apache. |
---|
13 | homepage http://proftpd.linux.co.uk/ |
---|
14 | platforms darwin freebsd |
---|
15 | master_sites ftp://ftp.proftpd.org/distrib/source/ |
---|
16 | checksums md5 89f5e31fc3d3e02b66424dfc6cc5892d |
---|
17 | use_bzip2 yes |
---|
18 | |
---|
19 | configure.args --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var/run \ |
---|
20 | --mandir=${prefix}/share/man install_user=`id -u` install_group=`id -g` |
---|
21 | |
---|
22 | pre-destroot { |
---|
23 | reinplace "s|nogroup|nobody|g" ${worksrcpath}/sample-configurations/basic.conf |
---|
24 | xinstall -m 755 -d ${destroot}${prefix}/var/run/proftpd |
---|
25 | system "touch ${destroot}${prefix}/var/run/proftpd/proftpd.scoreboard" |
---|
26 | } |
---|
27 | |
---|
28 | variant mysql4 { |
---|
29 | depends_lib-append port:mysql4 |
---|
30 | configure.args-append --with-modules=mod_sql:mod_sql_mysql \ |
---|
31 | --with-includes=${prefix}/include/mysql \ |
---|
32 | --with-libraries=${prefix}/lib/mysql |
---|
33 | } |
---|
34 | |
---|
35 | variant mysql5 { |
---|
36 | depends_lib-append port:mysql5 |
---|
37 | configure.args-append --with-modules=mod_sql:mod_sql_mysql \ |
---|
38 | --with-includes=${prefix}/include/mysql5/mysql \ |
---|
39 | --with-libraries=${prefix}/lib/mysql5/mysql |
---|
40 | } |
---|
41 | |
---|
42 | startupitem.create yes |
---|
43 | startupitem.start "${prefix}/sbin/proftpd" |
---|
44 | startupitem.restart "/bin/kill -HUP \$(/bin/cat ${prefix}/var/run/proftpd.pid)" |
---|
45 | startupitem.stop "/bin/kill -15 \$(/bin/cat ${prefix}/var/run/proftpd.pid)" |
---|