Ticket #15046: Portfile

File Portfile, 1.6 KB (added by jenix@…, 15 years ago)

Proftpd 1.3.2 +mysql5 update

Line 
1# $Id: Portfile 33441 2008-01-27 11:46:26Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            proftpd
5version         1.3.2
6categories      net
7maintainers     jenix@jinhyung.org
8description     Highly configurable ftp-server.
9long_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.       
13homepage        http://proftpd.linux.co.uk/     
14platforms       darwin freebsd
15master_sites    ftp://ftp.proftpd.org/distrib/source/
16checksums       md5 89f5e31fc3d3e02b66424dfc6cc5892d
17use_bzip2       yes
18
19configure.args  --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var/run \
20                --mandir=${prefix}/share/man install_user=`id -u` install_group=`id -g`
21
22pre-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
28variant 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
35variant 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
42startupitem.create      yes
43startupitem.start       "${prefix}/sbin/proftpd"
44startupitem.restart     "/bin/kill -HUP \$(/bin/cat ${prefix}/var/run/proftpd.pid)"
45startupitem.stop        "/bin/kill -15 \$(/bin/cat ${prefix}/var/run/proftpd.pid)"