wok-next rev 21249
updated dovecot (2.1.6 -> 2.3.9)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 17:48:07 2019 +0100 (2019-12-05) |
parents | 8f84e001fe1d |
children | 9045b265b7b1 |
files | dovecot/receipt |
line diff
1.1 --- a/dovecot/receipt Thu Dec 05 16:43:27 2019 +0100 1.2 +++ b/dovecot/receipt Thu Dec 05 17:48:07 2019 +0100 1.3 @@ -1,29 +1,30 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="dovecot" 1.7 -VERSION="2.1.6" 1.8 +VERSION="2.3.9" 1.9 CATEGORY="network" 1.10 SHORT_DESC="Dovecot IMAP and POP3 Server" 1.11 -MAINTAINER="devel@slitaz.org" 1.12 +MAINTAINER="maintainer@slitaz.org" 1.13 LICENSE="LGPL2.1" 1.14 WEB_SITE="https://dovecot.org/" 1.15 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WGET_URL="http://www.dovecot.org/releases/${VERSION:0:3}/$TARBALL" 1.18 +WGET_URL="http://www.dovecot.org/releases/${VERSION%.*}/$TARBALL" 1.19 1.20 -BUILD_DEPENDS="openssl-dev libcap-dev openldap-dev \ 1.21 -libmysqlclient mysql-dev sqlite3-dev pam-dev postgresql-dev" 1.22 +BUILD_DEPENDS="libcap-dev libmysqlclient mysql-dev openldap-dev 1.23 + openssl-dev pam-dev postgresql-dev sqlite3-dev" 1.24 1.25 -compile_rules() { 1.26 - ./configure \ 1.27 - --sysconfdir=/etc/dovecot \ 1.28 - --libexecdir=/usr/lib/$PACKAGE \ 1.29 - --with-ssl=openssl \ 1.30 - --with-ldap=plugin \ 1.31 - --with-sql=plugin \ 1.32 - --with-mysql \ 1.33 - --with-pgsql \ 1.34 - --with-sqlite \ 1.35 +compile_rules() 1.36 +{ 1.37 + ./configure \ 1.38 + --sysconfdir=/etc/dovecot \ 1.39 + --libexecdir=/usr/lib/$PACKAGE \ 1.40 + --with-ssl=openssl \ 1.41 + --with-ldap=plugin \ 1.42 + --with-sql=plugin \ 1.43 + --with-mysql \ 1.44 + --with-pgsql \ 1.45 + --with-sqlite \ 1.46 $CONFIGURE_ARGS && 1.47 fix libtool && 1.48 make && 1.49 @@ -32,30 +33,31 @@ 1.50 install -Dm755 $stuff/init.d/dovecot $install/etc/init.d/dovecot 1.51 } 1.52 1.53 -genpkg_rules() { 1.54 +genpkg_rules() 1.55 +{ 1.56 mkdir -p $fs/usr/lib \ 1.57 $fs/var/log/dovecot \ 1.58 $fs/etc/ssl/misc 1.59 1.60 - cp -a $install/usr/sbin $fs/usr 1.61 - cp -a $install/usr/bin $fs/usr 1.62 - cp -a $install/usr/lib $fs/usr 1.63 - cp -a $install/etc $fs/ 1.64 + cp -a $install/usr/sbin $fs/usr 1.65 + cp -a $install/usr/bin $fs/usr 1.66 + cp -a $install/usr/lib $fs/usr 1.67 + cp -a $install/etc $fs/ 1.68 1.69 - #cp -pa $fs/etc/dovecot/dovecot-example.conf $fs/etc/dovecot/dovecot.conf 1.70 + #cp -pa $fs/etc/dovecot/dovecot-example.conf $fs/etc/dovecot/dovecot.conf 1.71 cp -pa $install/usr/share/doc/dovecot/example-config/* $fs/etc/dovecot/ 1.72 - #cp -pa $src/doc/example-config/conf.d/*.conf $fs/etc/dovecot/conf.d 1.73 - #cp -pa $src/doc/example-config/conf.d/*.ext $fs/etc/dovecot/conf.d 1.74 - cp -pa $src/doc/*.cnf $fs/etc/ssl 1.75 - cp -pa $src/doc/mkcert.sh $fs/etc/ssl/misc/dovmkcert.sh 1.76 + #cp -pa $src/doc/example-config/conf.d/*.conf $fs/etc/dovecot/conf.d 1.77 + #cp -pa $src/doc/example-config/conf.d/*.ext $fs/etc/dovecot/conf.d 1.78 + cp -pa $src/doc/*.cnf $fs/etc/ssl 1.79 + cp -pa $src/doc/mkcert.sh $fs/etc/ssl/misc/dovmkcert.sh 1.80 1.81 # Remove archive file *.*a 1.82 find $fs -name "*.*a" -exec rm -f {} \; 1.83 1.84 - # Fix perms 1.85 + # Fix permissions 1.86 chmod 755 $fs/etc/ssl/misc/* 1.87 1.88 - # Customising config. 1.89 + # Customising configuration 1.90 sed -i -e "s/^#default_vsz_limit.*/default_vsz_limit = 50M/" \ 1.91 $fs/etc/dovecot/conf.d/10-master.conf 1.92 1.93 @@ -71,16 +73,18 @@ 1.94 DEPENDS="openssl libcap openldap pam postgresql libmysqlclient" 1.95 } 1.96 1.97 -post_install() { 1.98 +post_install() 1.99 +{ 1.100 local user=dovecot group=dovecot 1.101 1.102 - if ! grep -q $user "$1/etc/passwd"; then 1.103 + if ! grep -q $user "$1/etc/passwd" 1.104 + then 1.105 chroot "$1/" addgroup -g 76 -S $group 1.106 chroot "$1/" adduser -u 76 -S -D -H -G $group $user 1.107 chroot "$1/" adduser -u 74 -S -D -H -G nogroup dovenull 1.108 fi 1.109 1.110 - # Set perms for files and directories 1.111 + # Set permissions for files and directories 1.112 chroot "$1/" chown -R $user:$group /var/log/dovecot 1.113 1.114 [ -n "$quiet" } || cat <<EOF 1.115 @@ -95,7 +99,8 @@ 1.116 } 1.117 1.118 1.119 -post_remove() { 1.120 +post_remove() 1.121 +{ 1.122 [ -d "$1/var/log/dovecot" ] && rm -rf "$1/var/log/dovecot" 1.123 [ -d "$1/var/run/dovecot" ] && rm -rf "$1/var/run/dovecot" 1.124