wok-current rev 22625

updated cyrus-imapd and cyrus-impad-dev (2.4.17 -> 3.0.13)
author Hans-G?nter Theisgen
date Sun Jan 12 16:58:49 2020 +0100 (2020-01-12)
parents c59529fd7643
children 751f57d78a3d
files cyrus-imapd-dev/receipt cyrus-imapd/receipt
line diff
     1.1 --- a/cyrus-imapd-dev/receipt	Sun Jan 12 16:09:01 2020 +0100
     1.2 +++ b/cyrus-imapd-dev/receipt	Sun Jan 12 16:58:49 2020 +0100
     1.3 @@ -1,18 +1,20 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="cyrus-imapd-dev"
     1.7 -VERSION="2.4.17"
     1.8 +VERSION="3.0.13"
     1.9  CATEGORY="development"
    1.10 -SHORT_DESC="IMAP server development files."
    1.11 +SHORT_DESC="IMAP server - development files."
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="BSD"
    1.14  WEB_SITE="https://cyrusimap.org/"
    1.15 +
    1.16  WANTED="cyrus-imapd"
    1.17  
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.19  genpkg_rules()
    1.20  {
    1.21  	mkdir -p $fs/usr/lib
    1.22 -	cp -a $install/usr/lib/lib* $fs/usr/lib
    1.23 -	cp -a $install/usr/include $fs/usr
    1.24 +
    1.25 +	cp -a $install/usr/lib/lib*.*a	$fs/usr/lib
    1.26 +	cp -a $install/usr/include	$fs/usr
    1.27  }
     2.1 --- a/cyrus-imapd/receipt	Sun Jan 12 16:09:01 2020 +0100
     2.2 +++ b/cyrus-imapd/receipt	Sun Jan 12 16:58:49 2020 +0100
     2.3 @@ -1,32 +1,38 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="cyrus-imapd"
     2.7 -VERSION="2.4.17"
     2.8 +VERSION="3.0.13"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="IMAP server."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12  LICENSE="BSD"
    2.13 +WEB_SITE="https://cyrusimap.org/"
    2.14 +
    2.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 -WEB_SITE="https://cyrusimap.org/"
    2.17 -WGET_URL="ftp://ftp.cyrusimap.org/$PACKAGE/$TARBALL"
    2.18 +WGET_URL="${WEB_SITE}/releases/$TARBALL"
    2.19 +
    2.20 +DEPENDS="cyrus-sasl db jansson libcomerr libwrap net-snmp openssl perl
    2.21 +	slitaz-base-files"
    2.22 +BUILD_DEPENDS="cyrus-sasl-dev db-dev icu-dev jansson-dev libcomerr-dev 
    2.23 +	openssl-dev perl util-linux-uuid-dev"
    2.24 +
    2.25  CONFIG_FILES="/etc/imapd.conf /etc/cyrus.conf"
    2.26  
    2.27 -BUILD_DEPENDS="libcomerr libcomerr-dev cyrus-sasl cyrus-sasl-dev openssl-dev \
    2.28 -db-dev perl"
    2.29 -DEPENDS="libcomerr cyrus-sasl openssl db perl libwrap slitaz-base-files \
    2.30 -net-snmp"
    2.31 -
    2.32  # Rules to configure and make the package.
    2.33  compile_rules()
    2.34  {
    2.35  	export LDFLAGS="$LDFLAGS -lpthread"
    2.36 -	./configure --prefix=/usr --infodir=/usr/share/info \
    2.37 -	--with-service-path=/usr/lib/cyrus \
    2.38 -	--with-cyrus-prefix=/usr/lib/cyrus \
    2.39 -	--with-com_err=yes \
    2.40 -	--enable-murder \
    2.41 -	--enable-replication \
    2.42 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    2.43 +
    2.44 +	./configure					\
    2.45 +		--prefix=/usr				\
    2.46 +		--infodir=/usr/share/info		\
    2.47 +		--with-service-path=/usr/lib/cyrus	\
    2.48 +		--with-cyrus-prefix=/usr/lib/cyrus	\
    2.49 +		--with-com_err=yes			\
    2.50 +		--enable-murder				\
    2.51 +		--enable-replication			\
    2.52 +		--mandir=/usr/share/man			\
    2.53 +		$CONFIGURE_ARGS &&
    2.54  	make &&
    2.55  	make DESTDIR=$DESTDIR install
    2.56  }
    2.57 @@ -34,42 +40,52 @@
    2.58  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.59  genpkg_rules()
    2.60  {
    2.61 -	mkdir -p $fs/usr/lib $fs/var/imap $fs/var/spool/imap/stage.
    2.62 -	cp -a $install/usr/bin $fs/usr
    2.63 -	cp -a $install/usr/lib/cyrus $fs/usr/lib
    2.64 -	cp -a $install/usr/lib/perl5 $fs/usr/lib
    2.65 -	strip -s $fs/usr/lib/cyrus/*
    2.66 -	cp $src/tools/mkimap $fs/usr/lib/cyrus
    2.67 -	cp -a $stuff/etc $fs
    2.68 -	cp $src/master/conf/small.conf $fs/etc/cyrus.conf
    2.69 -	for i in proc db socket log msg ptclient; do
    2.70 +	mkdir -p $fs/usr/lib/cyrus
    2.71 +	mkdir -p $fs/var/imap
    2.72 +	mkdir -p $fs/var/spool/imap/stage.
    2.73 +
    2.74 +	cp -a $install/usr/bin			$fs/usr
    2.75 +	cp -a $install/usr/lib/libcyrus*.so*	$fs/usr/lib
    2.76 +	cp -a $install/usr/lib/perl5		$fs/usr/lib
    2.77 +	strip -s				$fs/usr/lib/lib*
    2.78 +	cp $src/tools/mkimap			$fs/usr/lib/cyrus
    2.79 +	cp -a $stuff/etc			$fs
    2.80 +	cp $src/doc/examples/cyrus_conf/small.conf \
    2.81 +						$fs/etc/cyrus.conf
    2.82 +	for i in proc db socket log msg ptclient
    2.83 +	  do
    2.84  		mkdir -m 755 $fs/var/imap/$i
    2.85 -	done
    2.86 +	  done
    2.87  }
    2.88  
    2.89  # Pre and post install commands for Tazpkg.
    2.90  post_install()
    2.91  {
    2.92          # adduser cyrus if needed
    2.93 -	if ! grep -q cyrus "$1/etc/passwd"; then
    2.94 +	if ! grep -q cyrus "$1/etc/passwd"
    2.95 +	  then
    2.96  		echo
    2.97  		echo -n "Adding user cyrus..."
    2.98  		chroot "$1/" adduser cyrus -D -H -S -h /tmp
    2.99  		chroot "$1/" sh -c 'echo "cyrus:cyrus" | chpasswd -m > /dev/null'
   2.100  		status
   2.101  	fi
   2.102 +
   2.103  	# addgroup mail if needed
   2.104 -	if ! grep -q mail "$1/etc/group"; then
   2.105 +	if ! grep -q mail "$1/etc/group"
   2.106 +	  then
   2.107  		echo
   2.108  		echo -n "Adding group mail..."
   2.109  		chroot "$1/" sh -c 'addgroup mail && addgroup cyrus mail'
   2.110  		status
   2.111  	fi
   2.112 +
   2.113  	chroot "$1/" chown -R cyrus.mail /var/spool/imap /var/imap
   2.114 -	while read name port end; do
   2.115 +	while read name port end
   2.116 +	  do
   2.117  		grep -q $port "$1/etc/services" || \
   2.118  			echo "$name		$port	$end" >> "$1/etc/services"
   2.119 -	done <<EOF
   2.120 +	  done <<EOF
   2.121  pop3 110/tcp pop-3
   2.122  nntp 119/tcp readnews untp
   2.123  imap 143/tcp imap2 imap4
   2.124 @@ -83,29 +99,38 @@
   2.125  lmtp 2003/tcp
   2.126  fud 4201/udp
   2.127  EOF
   2.128 +
   2.129  	[ "$1" ] || /etc/init.d/$PACKAGE start
   2.130 -	if [ -f "$1/etc/init.d/postfix" ]; then
   2.131 -		if ! grep -v ^# "$1/etc/postfix/main.cf" | grep -q lmtp:unix; then
   2.132 +	if [ -f "$1/etc/init.d/postfix" ]
   2.133 +	  then
   2.134 +		if ! grep -v ^# "$1/etc/postfix/main.cf" | grep -q lmtp:unix
   2.135 +		  then
   2.136  			echo
   2.137  			echo "Append to /etc/postfix/main.cf:"
   2.138  			echo -n "    "
   2.139  			echo "mailbox_transport = lmtp:unix:/var/imap/socket/lmtp" | \
   2.140  				tee -a "$1/etc/postfix/main.cf"
   2.141 -			if [ -z "$1" ]; then
   2.142 +			if [ -z "$1" ]
   2.143 +			  then
   2.144  				/etc/init.d/postfix start || /etc/init.d/postfix reload
   2.145  			fi
   2.146  		fi
   2.147  	fi
   2.148 +
   2.149  	msg="\\nCreating mailbox for"
   2.150 -	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do
   2.151 +	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd")
   2.152 +	  do
   2.153  		echo -en "$msg $i"
   2.154  		msg=","
   2.155 -	done
   2.156 +	  done
   2.157  	echo ""
   2.158 -	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do
   2.159 +
   2.160 +	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd")
   2.161 +	  do
   2.162  		echo "createmailbox user.$i"
   2.163 -	done | chroot "$1/" cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1
   2.164 +	  done | chroot "$1/" cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1
   2.165  	chroot "$1/" su -c "/usr/lib/cyrus/bin/reconstruct" cyrus >/dev/null 2>&1
   2.166 +
   2.167  	cat <<EOF
   2.168  ----
   2.169  Users must have a password to access the mailbox.