proftpd-cn
~~~~~~~~~~
-Zabranjen je anonimni FTP pristup.
+Zabranjen je anonimni FTP pristup. Proftp-cn generira SSL certifikat ftpd,
+ukoliko certifikat vec ne postoji; a tipicno se omogucava i FTP-TLS
+pristup.
-Proftp-cn generira SSL certifikat proftpd, ukoliko certifikat vec ne
-postoji.
-
- -- Zoran Dzelajlija <zoran.dzelajlija@carnet.hr> Fri, 26 Oct 2007 19:30:16 +0200
+ -- Dinko Korunic <kreator@CARNet.hr> Mon, 13 Apr 2009 17:49:05 +0200
+proftpd-cn (2:1.3.1-1) stable; urgency=low
+
+ * Upgrade za Lenny
+ * SSL certifikat i kljuc su sad ispravno razdvojeni u certs i private
+ direktorije
+
+ -- Dinko Korunic <kreator@carnet.hr> Mon, 13 Apr 2009 17:12:49 +0200
+
proftpd-cn (2:1.3.0-3) stable; urgency=low
* popravljen debconf problem sa interaktivnom skriptom (openssl)
Source: proftpd-cn
Section: net
Priority: optional
-Maintainer: Zoran Dzelajlija <zoran.dzelajlija@carnet.hr>
+Maintainer: Dinko Korunic <kreator@CARNet.hr>
Build-Depends: debhelper (>= 4)
Standards-Version: 3.7.2
Package: proftpd-cn
Architecture: all
-Depends: proftpd (>= 1.3.0-18cn1), openssl, carnet-tools-cn (>= 2.4), debconf (>= 0.5) | debconf-2.0
+Depends: proftpd (>= 1.3.1-17lenny2), openssl (>= 0.9.8g-15+lenny1), carnet-tools-cn (>= 2.8.1), debconf (>= 0.5) | debconf-2.0
Description: Versatile, virtual-hosting FTP daemon
A powerful replacement for wu-ftpd, this File Transfer Protocol
daemon supports hidden directories, virtual hosts, and per-directory
FTP_CONF=/etc/proftpd/proftpd.conf
FTP_TMP=`mktemp /etc/proftpd/proftpd.conf.XXXXXX`
FTP_OLD=/var/backups/proftpd.conf.bak
-SSL_CERT=/etc/ssl/certs/ftpd-rsa.pem
-SSL_KEY=/etc/ssl/certs/ftpd-rsa-key.pem
+SSL_CERT=/etc/ssl/certs/ftpd.pem
+SSL_KEY=/etc/ssl/private/ftpd.pem
# Backup stare konfiguracije
cp_backup_conffile $FTP_CONF
if ! egrep -qi "^[[:space:]]*Include.*/etc/proftpd/modules.conf" $FTP_TMP ; then
printf "#\n# Includes required DSO modules. This is mandatory in proftpd 1.3\n#\nInclude\t/etc/proftpd/modules.conf\n\n" >$FTP_TMP.tmp.$$
cat $FTP_TMP >>$FTP_TMP.tmp.$$
- mv -f $FTP_TMP.tmp.$$ $FTP_TMP
+ cp_mv $FTP_TMP.tmp.$$ $FTP_TMP
fi
fi
}
# Generiranje SSL certifikata
make_ssl_cert()
{
- if [ ! -f $SSL_CERT ] ; then
- cd $(dirname $SSL_CERT)
- echo "CN: Generating SSL certificate ... "
+ if [ \( ! -f $SSL_CERT \) -o \( ! -f $SSL_KEY \) ] ; then
+ echo "CN: Generating SSL certificate... "
HOSTNAME=`hostname -s`
FQDN=`hostname -f`
MAILNAME=`cat /etc/mailname 2> /dev/null || hostname -f`
- (openssl req -new -x509 -days 365 -nodes -out $(basename $SSL_CERT) -keyout $(basename $SSL_KEY) >/dev/null 2>&1 <<EOF
+ (openssl req -new -x509 -days 365 -nodes -out $SSL_CERT -keyout $SSL_KEY >/dev/null 2>&1 <<EOF
.
.
.
rm -f $FTP_TMP
fi
-echo "CN: Restarting proftpd ..."
+echo "CN: Restarting proftpd..."
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d proftpd restart