# HG changeset patch # User Hans-G?nter Theisgen # Date 1579193910 -3600 # Node ID ce368efd05fefc6df6d2fa12015f7bb111fdfc4a # Parent 136c30321469a706f5c26d048c54ba78419dc840 updated dovecot (2.1.6 -> 2.3.9.2) diff -r 136c30321469 -r ce368efd05fe dovecot/receipt --- a/dovecot/receipt Thu Jan 16 17:18:23 2020 +0100 +++ b/dovecot/receipt Thu Jan 16 17:58:30 2020 +0100 @@ -1,33 +1,34 @@ # SliTaz package receipt. PACKAGE="dovecot" -VERSION="2.1.6" +VERSION="2.3.9.2" CATEGORY="network" SHORT_DESC="Dovecot IMAP and POP3 Server." MAINTAINER="l.lemarinel@gmail.com" LICENSE="LGPL2.1" +WEB_SITE="https://dovecot.org/" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="https://dovecot.org/" -WGET_URL="http://www.dovecot.org/releases/${VERSION:0:3}/$TARBALL" +WGET_URL="https://www.dovecot.org/releases/${VERSION:0:3}/$TARBALL" -DEPENDS="libssl libcap openldap pam postgresql libmysqlclient" -BUILD_DEPENDS="openssl-dev libcap-dev openldap-dev \ - libmysqlclient mysql-dev sqlite-dev pam-dev postgresql-dev" +DEPENDS="libcap libmysqlclient libssl openldap pam postgresql" +BUILD_DEPENDS="libcap-dev libmysqlclient mysql-dev openldap-dev + openssl-dev pam-dev postgresql-dev sqlite-dev" # Rules to configure and make the package. compile_rules() { - cd $src - ./configure --prefix=/usr \ - --sysconfdir=/etc/dovecot \ - --localstatedir=/var \ - --libexecdir=/usr/lib/$PACKAGE \ - --with-ssl=openssl \ - --with-ldap=plugin \ - --with-sql=plugin \ - --with-mysql \ - --with-pgsql \ - --with-sqlite \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc/dovecot \ + --localstatedir=/var \ + --libexecdir=/usr/lib/$PACKAGE \ + --with-ldap=plugin \ + --with-mysql \ + --with-pgsql \ + --with-sql=plugin \ + --with-sqlite \ + --with-ssl=openssl \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install @@ -37,32 +38,33 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib \ - $fs/var/log/dovecot \ - $fs/etc/ssl/misc - + mkdir -p $fs/usr/lib + mkdir -p $fs/var/log/dovecot + mkdir -p $fs/etc/ssl/misc + + cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib $fs/usr + cp -a $install/etc $fs - cp -a $install/usr/sbin $fs/usr - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib $fs/usr - cp -a $install/etc $fs/ - - cp -pa $stuff/init.d $fs/etc + cp -pa $stuff/init.d $fs/etc #cp -pa $fs/etc/dovecot/dovecot-example.conf $fs/etc/dovecot/dovecot.conf - cp -pa $install/usr/share/doc/dovecot/example-config/* $fs/etc/dovecot/ + cp -pa $install/usr/share/doc/dovecot/example-config/* \ + $fs/etc/dovecot/ #cp -pa $src/doc/example-config/conf.d/*.conf $fs/etc/dovecot/conf.d #cp -pa $src/doc/example-config/conf.d/*.ext $fs/etc/dovecot/conf.d - cp -pa $src/doc/*.cnf $fs/etc/ssl - cp -pa $src/doc/mkcert.sh $fs/etc/ssl/misc/dovmkcert.sh - - # Remove archive file *.*a + cp -pa $src/doc/*.cnf $fs/etc/ssl + cp -pa $src/doc/mkcert.sh \ + $fs/etc/ssl/misc/dovmkcert.sh + + # Remove archive files *.*a find $fs -name "*.*a" -exec rm -f {} \; - # Fix perms - chmod 755 $fs/etc/ssl/misc/* - - # Customising config. + # Fix permissions + chmod 755 $fs/etc/ssl/misc/* + + # Customising configuration. sed -i -e "s/^#default_vsz_limit.*/default_vsz_limit = 50M/" \ $fs/etc/dovecot/conf.d/10-master.conf @@ -82,11 +84,12 @@ { local user local group - + user=dovecot group=dovecot - - if ! grep -q $user "$1/etc/passwd"; then + + if ! grep -q $user "$1/etc/passwd" + then echo echo -n "Adding user/group $user..." chroot "$1/" addgroup -g 76 -S $group @@ -94,9 +97,8 @@ chroot "$1/" adduser -u 74 -S -D -H -G nogroup dovenull status fi - - # Set perms for files and directories + # Set permissions for files and directories chroot "$1/" chown -R ${user}.${group} /var/log/${user} \ cat <