@@ -7,11 +7,11 @@ PortGroup legacysupport 1.1
7
7
legacysupport.newest_darwin_requires_legacy 10
8
8
9
9
name proftpd
10
- version 1.3.8b
10
+ version 1.3.8c
11
11
revision 0
12
- checksums rmd160 c5b29f1198beaec2a1191059b56f765b417ab904 \
13
- sha256 183ab7c6107de271a2959ff268f55c9b6c76b2cf0029e6584fccc019686601e0 \
14
- size 19752808
12
+ checksums rmd160 133e55d2d58f6478aa6e4079b656be81caf63e1c \
13
+ sha256 2a48f2ca338456e750d2373bf671025ed799e04e0baa16c7bb8dbfd67d8734d2 \
14
+ size 19751847
15
15
16
16
categories net
17
17
license GPL-2+
@@ -41,8 +41,8 @@ depends_lib port:libidn \
41
41
42
42
patchfiles dynamic_lookup-11.patch
43
43
44
- configure.args --sysconfdir=${prefix} /etc \
45
- --localstatedir=${prefix} /var/run \
44
+ configure.args --sysconfdir=${prefix} /etc/ ${name} \
45
+ --localstatedir=${prefix} /var/run/ ${name} \
46
46
--mandir=${prefix} /share/man \
47
47
--enable-ctrls \
48
48
--enable-dso \
@@ -57,6 +57,10 @@ set modules [list mod_tls mod_sftp mod_sftp_pam mod_ban mod_ctrls_admin \
57
57
set includes {}
58
58
set libs {}
59
59
pre-configure {
60
+ if {[lsearch -glob ${modules} mod_sql_*] != -1} {
61
+ lappend modules mod_sql mod_sql_passwd
62
+ configure.args-append --enable-openssl
63
+ }
60
64
configure.args-append --with-modules=[join $modules :]
61
65
configure.args-append --with-shared=[join $modules :]
62
66
if {$includes != {}} {
@@ -69,45 +73,67 @@ pre-configure {
69
73
70
74
pre-destroot {
71
75
reinplace " s|nogroup|nobody|g" ${worksrcpath} /sample-configurations/basic.conf
72
- xinstall -m 755 -d ${destroot}${prefix} /var/run/proftpd
73
- touch ${destroot}${prefix} /var/run/proftpd/proftpd .scoreboard
76
+ xinstall -m 755 -d ${destroot}${prefix} /var/run/${name}
77
+ touch ${destroot}${prefix} /var/run/${name} / ${name} .scoreboard
74
78
}
75
79
76
80
post-destroot {
77
- move ${destroot}${prefix} /etc/proftpd .conf ${destroot}${prefix} /etc/proftpd .conf.dist
78
- move ${destroot}${prefix} /var/run/proftpd/proftpd .scoreboard ${destroot}${prefix} /var/run/proftpd/proftpd .scoreboard.dist
81
+ move ${destroot}${prefix} /etc/${name} / ${name} .conf ${destroot}${prefix} /etc/${name} / ${name} .conf.dist
82
+ move ${destroot}${prefix} /var/run/${name} / ${name} .scoreboard ${destroot}${prefix} /var/run/${name} / ${name} .scoreboard.dist
79
83
}
80
84
81
85
post-activate {
82
- if {![file exists ${prefix} /etc/proftpd.conf]} {
83
- copy ${prefix} /etc/proftpd.conf.dist ${prefix} /etc/proftpd.conf
86
+ # move the .conf from an old install
87
+ if {[file exists ${prefix} /etc/${name} .conf]} {
88
+ move ${prefix} /etc/${name} .conf ${prefix} /etc/${name} /${name} .conf
89
+ }
90
+ if {![file exists ${prefix} /etc/${name} /${name} .conf]} {
91
+ copy ${prefix} /etc/${name} /${name} .conf.dist ${prefix} /etc/${name} /${name} .conf
84
92
}
85
93
}
86
94
87
- variant mysql57 conflicts postgresql11 sqlite3 description {Build with mysql 5.7 support} {
88
- depends_lib-append port:mysql57
89
- lappend modules mod_sql mod_sql_mysql
90
- lappend includes ${prefix} /include/mysql57/mysql
91
- lappend libs ${prefix} /lib/mysql57/mysql
95
+ variant mysql57 conflicts mysql8 postgresql11 postgresql17 sqlite3 description {Build with mysql 5.7 support} {
96
+ set my_db mysql57
97
+ depends_lib-append port:${my_db}
98
+ lappend modules mod_sql_mysql
99
+ lappend includes ${prefix} /include/${my_db} /mysql
100
+ lappend libs ${prefix} /lib/${my_db} /mysql
101
+ }
102
+
103
+ variant mysql8 conflicts mysql57 postgresql11 postgresql17 sqlite3 description {Build with mysql 8 support} {
104
+ set my_db mysql8
105
+ depends_lib-append port:${my_db}
106
+ lappend modules mod_sql_mysql
107
+ lappend includes ${prefix} /include/${my_db} /mysql
108
+ lappend libs ${prefix} /lib/${my_db} /mysql
109
+ }
110
+
111
+ variant postgresql11 conflicts mysql57 mysql8 sqlite3 postgresql17 description {Build with PostgreSQL 11 support} {
112
+ set my_db postgresql11
113
+ depends_lib-append port:${my_db}
114
+ lappend modules mod_sql_postgres
115
+ lappend includes ${prefix} /include/${my_db}
116
+ lappend libs ${prefix} /lib/${my_db}
92
117
}
93
118
94
- variant postgresql11 conflicts mysql57 sqlite3 description {Build with PostgreSQL 11 support} {
95
- depends_lib-append port:postgresql11
96
- lappend modules mod_sql mod_sql_postgres
97
- lappend includes ${prefix} /include/postgresql11
98
- lappend libs ${prefix} /lib/postgresql11
119
+ variant postgresql17 conflicts mysql57 mysql8 postgresql11 sqlite3 description {Build with PostgreSQL 17 support} {
120
+ set my_db postgresql17
121
+ depends_lib-append port:${my_db}
122
+ lappend modules mod_sql_postgres
123
+ lappend includes ${prefix} /include/${my_db}
124
+ lappend libs ${prefix} /lib/${my_db}
99
125
}
100
126
101
- variant sqlite3 conflicts mysql57 postgresql11 description {Build with sqlite3 support} {
127
+ variant sqlite3 conflicts mysql57 mysql8 postgresql11 postgresql17 description {Build with sqlite3 support} {
102
128
depends_lib-append port:sqlite3
103
- lappend modules mod_sql mod_sql_sqlite
129
+ lappend modules mod_sql_sqlite
104
130
}
105
131
106
- variant quotatab description {Build with SQL quota support} {
107
- lappend modules mod_quotatab mod_quotatab_sql
132
+ variant quotasql description {Build with SQL quota support} {
133
+ lappend modules mod_quotatab_sql
108
134
}
109
135
110
136
startupitem.create yes
111
- startupitem.start " ${prefix} /sbin/proftpd "
112
- startupitem.restart " /bin/kill -HUP \$ (/bin/cat ${prefix} /var/run/proftpd .pid)"
113
- startupitem.stop " /bin/kill -15 \$ (/bin/cat ${prefix} /var/run/proftpd .pid)"
137
+ startupitem.start " ${prefix} /sbin/${name} "
138
+ startupitem.restart " /bin/kill -HUP \$ (/bin/cat ${prefix} /var/run/${name} / ${name} .pid)"
139
+ startupitem.stop " /bin/kill -15 \$ (/bin/cat ${prefix} /var/run/${name} / ${name} .pid)"
0 commit comments