diff --git a/conf/roundcube-deps.control b/conf/roundcube-deps.control new file mode 100644 index 0000000..c65a598 --- /dev/null +++ b/conf/roundcube-deps.control @@ -0,0 +1,20 @@ +Section: misc +Priority: optional +Homepage: https://roundcube.net/ +Standards-Version: 3.9.2 + +Package: roundcube-deps +Version: 1.2-1 +Depends: php5-cli, php5-common, php5-intl, php5-json, php5-mcrypt + , php-pear, php-auth-sasl, php-mail-mime, php-patchwork-utf8 + , php-net-smtp, php-net-socket, php-crypt-gpg + , php-net-ldap2, php-net-ldap3 +Architecture: all +Description: meta package for roundcube dependencies + RoundCube Webmail is a browser-based multilingual IMAP client with an + application-like user interface. It provides full functionality expected + from an e-mail client, including MIME support, address book, folder + manipulation and message filters. + . + . + This meta-package is only responsible of installing its dependencies. \ No newline at end of file diff --git a/scripts/_common.sh b/scripts/_common.sh index b88d857..c3bcfb4 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -2,6 +2,9 @@ # Common variables # +# Package dependencies +PKG_DEPENDENCIES="php5-cli php5-common php5-intl php5-json php5-mcrypt php-pear php-auth-sasl php-mail-mime php-patchwork-utf8 php-net-smtp php-net-socket php-crypt-gpg php-net-ldap2 php-net-ldap3" + # App package root directory should be the parent folder PKGDIR=$(cd ../; pwd) diff --git a/scripts/install b/scripts/install index a0ef92e..8eb23af 100644 --- a/scripts/install +++ b/scripts/install @@ -42,10 +42,7 @@ grep -q -R 'jessie-backports' /etc/apt/sources.list{,.d} || { } # Install dependencies -ynh_install_app_dependencies php5-cli php5-common php5-intl php5-json php5-mcrypt \ - php-pear php-auth-sasl php-mail-mime php-patchwork-utf8 \ - php-net-smtp php-net-socket php-crypt-gpg \ - php-net-ldap2 php-net-ldap3 +ynh_install_app_dependencies "$PKG_DEPENDENCIES" # Create system user dedicace for this app ynh_system_user_create $app diff --git a/scripts/remove b/scripts/remove index 62408cd..a328ead 100644 --- a/scripts/remove +++ b/scripts/remove @@ -36,4 +36,4 @@ sudo systemctl reload nginx ynh_remove_app_dependencies # The following command is kept as a matter of transition with the previous way # of managing dependencies -ynh_package_autoremove "php-net-ldap3" || true \ No newline at end of file +ynh_package_autoremove "roundcube-deps" || true \ No newline at end of file diff --git a/scripts/upgrade b/scripts/upgrade index 9c565a0..c8fc8c7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,10 +41,7 @@ grep -q -R 'jessie-backports' /etc/apt/sources.list{,.d} || { } # Install dependencies -ynh_install_app_dependencies php5-cli php5-common php5-intl php5-json php5-mcrypt \ - php-pear php-auth-sasl php-mail-mime php-patchwork-utf8 \ - php-net-smtp php-net-socket php-crypt-gpg \ - php-net-ldap2 php-net-ldap3 +ynh_install_app_dependencies "$PKG_DEPENDENCIES" # Create system user dedicace for this app ynh_system_user_create $app