From: Ivan Rako Date: Sat, 14 Jul 2018 22:06:04 +0000 (+0200) Subject: prva verzija za stretch X-Git-Tag: debian/2%1.3.5_cn0^0 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=proftpd-cn.git;a=commitdiff_plain;h=2b68c779de205d3c4e0b6aaafd6445c2b7b1a7c5 prva verzija za stretch --- diff --git a/debian/changelog b/debian/changelog index 6571596..0f1b8f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +proftpd-cn (2:1.3.5~cn0) stable; urgency=low + + * prva verzija za stretch + + -- Ivan Rako Sat, 14 Jul 2018 23:41:39 +0200 + proftpd-cn (2:1.3.5) stable; urgency=low * prva verzija za jessie diff --git a/debian/control b/debian/control index b9fb734..6ef0780 100644 --- a/debian/control +++ b/debian/control @@ -2,12 +2,12 @@ Source: proftpd-cn Section: net Priority: optional Maintainer: Ivan Rako -Build-Depends: debhelper (>= 9.20120909) -Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.8 Package: proftpd-cn Architecture: all -Depends: proftpd-basic (>= 1.3.5), openssl (>= 1.0.1e-2), carnet-tools-cn (>= 3.0.4), debconf (>= 1.5.49) | debconf-2.0, ${misc:Depends} +Depends: proftpd-basic (>= 1.3.5), openssl (>= 1.0.1f-3), update-inetd, carnet-tools-cn (>= 3.2.1), debconf (>= 1.5.49) | debconf-2.0, ${misc:Depends} 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 diff --git a/debian/postinst b/debian/postinst index ffcbf7f..9d8f3ce 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,42 +1,20 @@ #!/bin/sh -# postinst script for proftpd-cn -# -# see: dh_installdeb(1) set -e -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# - -case "$1" in - configure|reconfigure) - # continue below - ;; - - *) - exit 0 - ;; -esac +[ "$1" = "configure" ] || exit 0 +[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx # created: 2002-11-15 Bozo Juretic # last update: 2007-05-14 Zoran Dzelajlija # last update: 2011-04-24 Dinko Korunic -# Source debconf library. -. /usr/share/debconf/confmodule - -# Import CN toolsa +# Load CARNet Tools . /usr/share/carnet-tools/functions.sh +# Load Debconf +#. /usr/share/debconf/confmodule + FTP_CONF=/etc/proftpd/proftpd.conf FTP_TMP=`mktemp /etc/proftpd/proftpd.conf.XXXXXX` FTP_OLD=/var/backups/proftpd.conf.bak @@ -48,51 +26,48 @@ cp_backup_conffile $FTP_CONF cp -p $FTP_CONF $FTP_TMP # Onemogucavanje Anonymous ftp pristupa -disable_anonymous() -{ - if grep -qi "^ TLSEngine on TLSLog /var/log/proftpd/tls.log @@ -119,30 +94,28 @@ add_tls() TLSRenegotiate required off EOF - fi + fi } # include za slucaj da sistemac nije prihvatio izmjene od Debiana -include_modules() -{ - if [ -f $FTP_TMP ] ; then - 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.$$ - cp_mv $FTP_TMP.tmp.$$ $FTP_TMP - fi +include_modules() { + if [ -f $FTP_TMP ] ; then + 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.$$ + cp_mv $FTP_TMP.tmp.$$ $FTP_TMP fi + fi } # Generiranje SSL certifikata -make_ssl_cert() -{ - 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 $SSL_CERT -keyout $SSL_KEY >/dev/null 2>&1 < /dev/null || hostname -f` + (openssl req -new -x509 -days 365 -nodes -out $SSL_CERT -keyout $SSL_KEY >/dev/null 2>&1 <