Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pure-ftpd: version bumped to 1.0.42.
- Loading branch information
Showing
10 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
( | ||
OPTS+=" --with-everything \ | ||
--bindir=/usr/bin \ | ||
--sbindir=/usr/bin" && | ||
|
||
if module_installed Linux-PAM; then | ||
OPTS+=" --with-pam" | ||
fi | ||
default_build && | ||
|
||
./configure --sysconfdir=/etc \ | ||
--prefix=/usr \ | ||
--mandir=/usr/share/man \ | ||
--localstatedir=/var \ | ||
--with-everything \ | ||
$OPTS && | ||
default_make && | ||
gather_docs *.conf && | ||
if [ ! -f /etc/ftpusers ]; then | ||
cp pam/ftpusers /etc | ||
fi | ||
gather_docs *.conf && | ||
|
||
) > $C_FIFO 2>&1 | ||
if [ ! -f /etc/ftpusers ]; then | ||
cp pam/ftpusers /etc | ||
fi | ||
|
||
install -Dm755 configuration-file/pure-config.pl /usr/bin/pure-config.pl | ||
install -Dm644 -t /etc/pure-ftpd/ configuration-file/pure-ftpd.conf $SCRIPT_DIRECTORY/welcome.msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
if ! grep -q CONFIGURED $MODULE_CONFIG; then | ||
if ! grep -q CONFIGURED $MODULE_CONFIG; then | ||
|
||
if query "Do you want to disable banner? " y | ||
then OPTS=$OPTS" --without-banner" | ||
if query "Do you want to disable banner? " y | ||
then OPTS=$OPTS" --without-banner" | ||
fi | ||
|
||
if query "Do you want to enable large file support? " y | ||
then OPTS=$OPTS" --with-largefile" | ||
if query "Do you want to enable large file support? " y | ||
then OPTS=$OPTS" --with-largefile" | ||
fi | ||
|
||
echo 'CONFIGURED="y"' >> $MODULE_CONFIG | ||
echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG | ||
echo 'CONFIGURED="y"' >> $MODULE_CONFIG | ||
echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
conflicts wu-ftpd | ||
conflicts vsftpd | ||
conflicts proftpd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
optional_depends "mysql" "--with-mysql" "--without-mysql" "for MySQL user auth" | ||
optional_depends "openssl" "--with-tls" "" "for SSL/TLS support" | ||
optional_depends Linux-PAM "--with-pam" "" "for PAM support" | ||
optional_depends openssl "--with-tls" "" "for SSL/TLS support" | ||
|
||
optional_depends %MYSQL \ | ||
"--with-mysql" \ | ||
"--without-mysql" \ | ||
"for MySQL user auth" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
if [ -x /etc/init.d/pure-ftpd.sh ]; then | ||
rm /etc/init.d/pure-ftpd.sh | ||
if [ -x /etc/init.d/pure-ftpd.sh ]; then | ||
rm /etc/init.d/pure-ftpd.sh | ||
fi | ||
|
||
sedit 's|NoAnonymous\s.*no|NoAnonymous yes|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit 's|# /usr/sbin/pure-config.pl /usr/etc/pure-ftpd.conf|# /usr/bin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit 's|#PIDFile\s.*/var/run/pure-ftpd.pid|PIDFile /run/pure-ftpd.pid|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit 's|# AltLog\s.*clf:/var/log/pureftpd.log|AltLog clf:/var/log/pureftpd.log|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit 's|# TLS\s.*1|TLS 1|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit 's|# TLSCipherSuite\s.*HIGH|TLSCipherSuite HIGH:MEDIUM:+TLSv1|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit 's|# CertFile\s.*/etc/ssl/private/pure-ftpd.pem|CertFile /etc/ssl/private/pure-ftpd.pem|' /etc/pure-ftpd/pure-ftpd.conf | ||
sedit "/# FortunesFile/a FortunesFile \/etc\/pure-ftpd\/welcome.msg" /etc/pure-ftpd/pure-ftpd.conf | ||
|
||
#sedit 's|SyslogFacility\s.*ftp|SyslogFacility none|' /etc/pure-ftpd/pure-ftpd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/var/log/pureftpd.log | ||
{ | ||
monthly | ||
missingok | ||
notifempty | ||
compress | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Pure-FTPd server | ||
After=network.target | ||
|
||
[Service] | ||
Type=forking | ||
PIDFile=/run/pure-ftpd.pid | ||
ExecStart=/usr/bin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Welcome to the FTP server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters