wok diff cyrus-imapd/receipt @ rev 23017

updated libcdio libcdio-dev (2.0.0 -> 2.1.0)
author Hans-G?nter Theisgen
date Tue Mar 03 13:41:23 2020 +0100 (2020-03-03)
parents aaa3fcf79cf3
children c265f9cf4b14
line diff
     1.1 --- a/cyrus-imapd/receipt	Wed May 01 16:45:54 2019 +0200
     1.2 +++ b/cyrus-imapd/receipt	Tue Mar 03 13:41:23 2020 +0100
     1.3 @@ -1,32 +1,38 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="cyrus-imapd"
     1.7 -VERSION="2.4.17"
     1.8 +VERSION="3.0.13"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="IMAP server."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="BSD"
    1.13 +WEB_SITE="https://cyrusimap.org/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="https://cyrusimap.org/"
    1.17 -WGET_URL="ftp://ftp.cyrusimap.org/$PACKAGE/$TARBALL"
    1.18 +WGET_URL="${WEB_SITE}/releases/$TARBALL"
    1.19 +
    1.20 +DEPENDS="cyrus-sasl db jansson libcomerr libwrap net-snmp openssl perl
    1.21 +	slitaz-base-files"
    1.22 +BUILD_DEPENDS="cyrus-sasl-dev db-dev icu-dev jansson-dev libcomerr-dev 
    1.23 +	openssl-dev perl util-linux-uuid-dev"
    1.24 +
    1.25  CONFIG_FILES="/etc/imapd.conf /etc/cyrus.conf"
    1.26  
    1.27 -BUILD_DEPENDS="libcomerr libcomerr-dev cyrus-sasl cyrus-sasl-dev openssl-dev \
    1.28 -db-dev perl"
    1.29 -DEPENDS="libcomerr cyrus-sasl openssl db perl libwrap slitaz-base-files \
    1.30 -net-snmp"
    1.31 -
    1.32  # Rules to configure and make the package.
    1.33  compile_rules()
    1.34  {
    1.35  	export LDFLAGS="$LDFLAGS -lpthread"
    1.36 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.37 -	--with-service-path=/usr/lib/cyrus \
    1.38 -	--with-cyrus-prefix=/usr/lib/cyrus \
    1.39 -	--with-com_err=yes \
    1.40 -	--enable-murder \
    1.41 -	--enable-replication \
    1.42 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.43 +
    1.44 +	./configure					\
    1.45 +		--prefix=/usr				\
    1.46 +		--infodir=/usr/share/info		\
    1.47 +		--with-service-path=/usr/lib/cyrus	\
    1.48 +		--with-cyrus-prefix=/usr/lib/cyrus	\
    1.49 +		--with-com_err=yes			\
    1.50 +		--enable-murder				\
    1.51 +		--enable-replication			\
    1.52 +		--mandir=/usr/share/man			\
    1.53 +		$CONFIGURE_ARGS &&
    1.54  	make &&
    1.55  	make DESTDIR=$DESTDIR install
    1.56  }
    1.57 @@ -34,42 +40,52 @@
    1.58  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.59  genpkg_rules()
    1.60  {
    1.61 -	mkdir -p $fs/usr/lib $fs/var/imap $fs/var/spool/imap/stage.
    1.62 -	cp -a $install/usr/bin $fs/usr
    1.63 -	cp -a $install/usr/lib/cyrus $fs/usr/lib
    1.64 -	cp -a $install/usr/lib/perl5 $fs/usr/lib
    1.65 -	strip -s $fs/usr/lib/cyrus/*
    1.66 -	cp $src/tools/mkimap $fs/usr/lib/cyrus
    1.67 -	cp -a $stuff/etc $fs
    1.68 -	cp $src/master/conf/small.conf $fs/etc/cyrus.conf
    1.69 -	for i in proc db socket log msg ptclient; do
    1.70 +	mkdir -p $fs/usr/lib/cyrus
    1.71 +	mkdir -p $fs/var/imap
    1.72 +	mkdir -p $fs/var/spool/imap/stage.
    1.73 +
    1.74 +	cp -a $install/usr/bin			$fs/usr
    1.75 +	cp -a $install/usr/lib/libcyrus*.so*	$fs/usr/lib
    1.76 +	cp -a $install/usr/lib/perl5		$fs/usr/lib
    1.77 +	strip -s				$fs/usr/lib/lib*
    1.78 +	cp $src/tools/mkimap			$fs/usr/lib/cyrus
    1.79 +	cp -a $stuff/etc			$fs
    1.80 +	cp $src/doc/examples/cyrus_conf/small.conf \
    1.81 +						$fs/etc/cyrus.conf
    1.82 +	for i in proc db socket log msg ptclient
    1.83 +	  do
    1.84  		mkdir -m 755 $fs/var/imap/$i
    1.85 -	done
    1.86 +	  done
    1.87  }
    1.88  
    1.89  # Pre and post install commands for Tazpkg.
    1.90  post_install()
    1.91  {
    1.92          # adduser cyrus if needed
    1.93 -	if ! grep -q cyrus "$1/etc/passwd"; then
    1.94 +	if ! grep -q cyrus "$1/etc/passwd"
    1.95 +	  then
    1.96  		echo
    1.97  		echo -n "Adding user cyrus..."
    1.98  		chroot "$1/" adduser cyrus -D -H -S -h /tmp
    1.99  		chroot "$1/" sh -c 'echo "cyrus:cyrus" | chpasswd -m > /dev/null'
   1.100  		status
   1.101  	fi
   1.102 +
   1.103  	# addgroup mail if needed
   1.104 -	if ! grep -q mail "$1/etc/group"; then
   1.105 +	if ! grep -q mail "$1/etc/group"
   1.106 +	  then
   1.107  		echo
   1.108  		echo -n "Adding group mail..."
   1.109  		chroot "$1/" sh -c 'addgroup mail && addgroup cyrus mail'
   1.110  		status
   1.111  	fi
   1.112 +
   1.113  	chroot "$1/" chown -R cyrus.mail /var/spool/imap /var/imap
   1.114 -	while read name port end; do
   1.115 +	while read name port end
   1.116 +	  do
   1.117  		grep -q $port "$1/etc/services" || \
   1.118  			echo "$name		$port	$end" >> "$1/etc/services"
   1.119 -	done <<EOF
   1.120 +	  done <<EOF
   1.121  pop3 110/tcp pop-3
   1.122  nntp 119/tcp readnews untp
   1.123  imap 143/tcp imap2 imap4
   1.124 @@ -83,29 +99,38 @@
   1.125  lmtp 2003/tcp
   1.126  fud 4201/udp
   1.127  EOF
   1.128 +
   1.129  	[ "$1" ] || /etc/init.d/$PACKAGE start
   1.130 -	if [ -f "$1/etc/init.d/postfix" ]; then
   1.131 -		if ! grep -v ^# "$1/etc/postfix/main.cf" | grep -q lmtp:unix; then
   1.132 +	if [ -f "$1/etc/init.d/postfix" ]
   1.133 +	  then
   1.134 +		if ! grep -v ^# "$1/etc/postfix/main.cf" | grep -q lmtp:unix
   1.135 +		  then
   1.136  			echo
   1.137  			echo "Append to /etc/postfix/main.cf:"
   1.138  			echo -n "    "
   1.139  			echo "mailbox_transport = lmtp:unix:/var/imap/socket/lmtp" | \
   1.140  				tee -a "$1/etc/postfix/main.cf"
   1.141 -			if [ -z "$1" ]; then
   1.142 +			if [ -z "$1" ]
   1.143 +			  then
   1.144  				/etc/init.d/postfix start || /etc/init.d/postfix reload
   1.145  			fi
   1.146  		fi
   1.147  	fi
   1.148 +
   1.149  	msg="\\nCreating mailbox for"
   1.150 -	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do
   1.151 +	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd")
   1.152 +	  do
   1.153  		echo -en "$msg $i"
   1.154  		msg=","
   1.155 -	done
   1.156 +	  done
   1.157  	echo ""
   1.158 -	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do
   1.159 +
   1.160 +	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd")
   1.161 +	  do
   1.162  		echo "createmailbox user.$i"
   1.163 -	done | chroot "$1/" cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1
   1.164 +	  done | chroot "$1/" cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1
   1.165  	chroot "$1/" su -c "/usr/lib/cyrus/bin/reconstruct" cyrus >/dev/null 2>&1
   1.166 +
   1.167  	cat <<EOF
   1.168  ----
   1.169  Users must have a password to access the mailbox.