wok-next diff cyrus-imapd/receipt @ rev 20814
palemoon: fatal error: sys/int_types.h
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 19:28:54 2018 +0000 (2018-06-13) |
parents | 2985612f2b3f |
children | d958fec46c9f |
line diff
1.1 --- a/cyrus-imapd/receipt Sun Oct 29 01:19:50 2017 +0300 1.2 +++ b/cyrus-imapd/receipt Wed Jun 13 19:28:54 2018 +0000 1.3 @@ -1,56 +1,64 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="cyrus-imapd" 1.8 VERSION="2.4.17" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="IMAP server." 1.11 +SHORT_DESC="IMAP server" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="BSD" 1.14 +WEB_SITE="http://cyrusimap.web.cmu.edu/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://cyrusimap.web.cmu.edu/" 1.18 WGET_URL="ftp://ftp.cyrusimap.org/$PACKAGE/$TARBALL" 1.19 -CONFIG_FILES="/etc/imapd.conf /etc/cyrus.conf" 1.20 1.21 BUILD_DEPENDS="libcomerr libcomerr-dev cyrus-sasl cyrus-sasl-dev openssl-dev \ 1.22 db-dev perl-dev zlib-dev" 1.23 -DEPENDS="libcomerr cyrus-sasl openssl db perl libwrap slitaz-base-files \ 1.24 -net-snmp" 1.25 +SPLIT="cyrus-imapd-dev" 1.26 1.27 -# Rules to configure and make the package. 1.28 -compile_rules() 1.29 -{ 1.30 +compile_rules() { 1.31 export LDFLAGS="$LDFLAGS -lpthread" 1.32 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.33 - --with-service-path=/usr/lib/cyrus \ 1.34 - --with-cyrus-prefix=/usr/lib/cyrus \ 1.35 - --with-com_err=yes \ 1.36 - --enable-murder \ 1.37 - --enable-replication \ 1.38 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.39 + ./configure \ 1.40 + --prefix=/usr \ 1.41 + --infodir=/usr/share/info \ 1.42 + --with-service-path=/usr/lib/cyrus \ 1.43 + --with-cyrus-prefix=/usr/lib/cyrus \ 1.44 + --with-com_err=yes \ 1.45 + --enable-murder \ 1.46 + --enable-replication \ 1.47 + --mandir=/usr/share/man \ 1.48 + $CONFIGURE_ARGS && 1.49 make && 1.50 make DESTDIR=$DESTDIR install 1.51 } 1.52 1.53 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.54 -genpkg_rules() 1.55 -{ 1.56 - mkdir -p $fs/usr/lib $fs/var/imap $fs/var/spool/imap/stage. 1.57 - cp -a $install/usr/bin $fs/usr 1.58 - cp -a $install/usr/lib/cyrus $fs/usr/lib 1.59 - cp -a $install/usr/lib/perl5 $fs/usr/lib 1.60 - strip -s $fs/usr/lib/cyrus/* 1.61 - cp $src/tools/mkimap $fs/usr/lib/cyrus 1.62 - cp -a $stuff/etc $fs 1.63 - cp $src/master/conf/small.conf $fs/etc/cyrus.conf 1.64 - for i in proc db socket log msg ptclient; do 1.65 - mkdir -m 755 $fs/var/imap/$i 1.66 - done 1.67 +genpkg_rules() { 1.68 + case $PACKAGE in 1.69 + cyrus-imapd) 1.70 + mkdir -p $fs/usr/lib $fs/var/imap $fs/var/spool/imap/stage. 1.71 + cp -a $install/usr/bin $fs/usr 1.72 + cp -a $install/usr/lib/cyrus $fs/usr/lib 1.73 + cp -a $install/usr/lib/perl5 $fs/usr/lib 1.74 + strip -s $fs/usr/lib/cyrus/* 1.75 + cp $src/tools/mkimap $fs/usr/lib/cyrus 1.76 + cp -a $stuff/etc $fs 1.77 + cp $src/master/conf/small.conf $fs/etc/cyrus.conf 1.78 + for i in proc db socket log msg ptclient; do 1.79 + mkdir -m 755 $fs/var/imap/$i 1.80 + done 1.81 + CONFIG_FILES="/etc/imapd.conf /etc/cyrus.conf" 1.82 + DEPENDS="libcomerr cyrus-sasl openssl db perl libwrap \ 1.83 + slitaz-base-files net-snmp" 1.84 + ;; 1.85 + *-dev) 1.86 + mkdir -p $fs/usr/lib 1.87 + cp -a $install/usr/lib/lib* $fs/usr/lib 1.88 + cp -a $install/usr/include $fs/usr 1.89 + ;; 1.90 + esac 1.91 } 1.92 1.93 -# Pre and post install commands for Tazpkg. 1.94 -post_install() 1.95 -{ 1.96 - # adduser cyrus if needed 1.97 +post_install_cyrus_imapd() { 1.98 + # adduser cyrus if needed 1.99 if ! grep -q cyrus "$1/etc/passwd"; then 1.100 echo -n "Adding user cyrus..." 1.101 chroot "$1/" adduser cyrus -D -H -S -h /tmp 1.102 @@ -104,14 +112,16 @@ 1.103 done | chroot "$1/" cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1 1.104 chroot "$1/" su -c "/usr/lib/cyrus/bin/reconstruct" cyrus >/dev/null 2>&1 1.105 cat <<EOF 1.106 ----- 1.107 -Users must have a password to access the mailbox. 1.108 -To start $PACKAGE server you can run : 1.109 1.110 - /etc/init.d/$PACKAGE start 1.111 - 1.112 -Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 1.113 ----- 1.114 + .---------------------------------------------------. 1.115 + | Users must have a password to access the mailbox. | 1.116 + |---------------------------------------------------| 1.117 + | To start $PACKAGE server you can run: | 1.118 + | | 1.119 + | /etc/init.d/$PACKAGE start | 1.120 + | | 1.121 + | Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf | 1.122 + '---------------------------------------------------' 1.123 EOF 1.124 1.125 # A security hole with ssh... 1.126 @@ -120,8 +130,7 @@ 1.127 echo "DenyUsers cyrus" >> "$1/etc/ssh/sshd_config" 1.128 } 1.129 1.130 -post_remove() 1.131 -{ 1.132 +post_remove_cyrus_imapd() { 1.133 deluser cyrus 1.134 delgroup mail 1.135 }