wok-undigest annotate dovecot/receipt @ rev 343

brasero: fix genpkg_rules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 15 16:18:23 2011 +0200 (2011-06-15)
parents 672a10ac13c8
children
rev   line source
erjo@2 1 # SliTaz package receipt.
erjo@2 2
erjo@2 3 PACKAGE="dovecot"
erjo@290 4 VERSION="1.2.17"
erjo@24 5 CATEGORY="network"
erjo@24 6 SHORT_DESC="Dovecot IMAP and POP3 Server."
erjo@24 7 MAINTAINER="l.lemarinel@gmail.com"
erjo@2 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@24 9 WEB_SITE="www.dovecot.org"
erjo@24 10 WGET_URL="http://www.dovecot.org/releases/1.2/$TARBALL"
erjo@290 11 BUILD_DEPENDS="openssl-dev libcap-dev openldap-dev \
erjo@290 12 mysql-dev sqlite-dev pam-dev postgresql-dev"
erjo@290 13 DEPENDS="libssl libcap"
erjo@24 14
erjo@2 15
erjo@2 16 # Rules to configure and make the package.
erjo@2 17 compile_rules()
erjo@2 18 {
erjo@2 19 cd $src
erjo@24 20 ./configure --prefix=/usr \
erjo@24 21 --sysconfdir=/etc/dovecot \
erjo@24 22 --libexecdir=/usr/lib/$PACKAGE \
erjo@290 23 --with-ssl=openssl \
erjo@290 24 --with-ldap=plugin \
erjo@290 25 --with-sql=plugin \
erjo@290 26 --with-mysql \
erjo@290 27 --with-pgsql \
erjo@290 28 --with-sqlite &&
erjo@290 29 make &&
erjo@290 30 make DESTDIR=$DESTDIR install
erjo@290 31
erjo@2 32 }
erjo@2 33
erjo@2 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@2 35 genpkg_rules()
erjo@2 36 {
erjo@290 37 mkdir -p $fs/usr/lib
erjo@290 38
erjo@290 39 cp -a $install/usr/sbin $fs/usr
erjo@290 40 cp -a $install/usr/lib $fs/usr
erjo@290 41 cp -a $install/etc $fs/
erjo@290 42
erjo@290 43 # Remove archive file *.*a
erjo@290 44 find $fs -name "*.*a" -exec rm -f {} \;
erjo@290 45
erjo@2 46 }