wok-current annotate mutt/receipt @ rev 14754

linux: add default initrd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 16 20:18:01 2013 +0200 (2013-06-16)
parents 63d0d3c6b670
children bb009a6ef036
rev   line source
taziden@1973 1
taziden@1973 2 # SliTaz package receipt
taziden@1973 3
taziden@1973 4 PACKAGE="mutt"
taziden@6436 5 VERSION="1.5.21"
taziden@1973 6 CATEGORY="network"
taziden@1973 7 SHORT_DESC="Small and powerful text-based mail client"
pankso@10601 8 MAINTAINER="paul@slitaz.org"
pascal@2519 9 DEPENDS="openssl ncurses zlib libidn"
taziden@3450 10 BUILD_DEPENDS="libidn-dev ncurses-dev openssl-dev"
taziden@1973 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
taziden@1973 12 WEB_SITE="http://www.mutt.org"
taziden@1973 13 WGET_URL="ftp://ftp.mutt.org/mutt/devel/$TARBALL"
taziden@1973 14
taziden@1973 15 # Rules to configure and make the package.
taziden@1973 16 compile_rules()
taziden@1973 17 {
taziden@1973 18 cd $src
pankso@10601 19 addgroup mail
pascal@5542 20 sed -i 's/STACK \*/STACK_OF(X509) */' mutt_ssl.c
pankso@10601 21 ./configure \
pankso@10601 22 --prefix=/usr \
pankso@10601 23 --enable-imap \
pankso@10601 24 --with-ssl=/usr \
pankso@10601 25 --with-mailpath=/var/mail \
pankso@10601 26 --sysconfdir=/etc \
pankso@10601 27 --enable-pop \
pankso@10601 28 --enable-smtp \
pankso@10601 29 $CONFIGURE_ARGS &&
pankso@10601 30 make && make install &&
pankso@10601 31 delgroup mail
taziden@1973 32 }
taziden@1973 33
taziden@1973 34 # Rules to gen a SliTaz package suitable for Tazpkg.
taziden@1973 35 genpkg_rules()
taziden@1973 36 {
paul@13741 37 mkdir -p $fs/usr $fs/etc
paul@13741 38 cp -a $_pkg/usr/bin $fs/usr
paul@13741 39 cp -a $_pkg/etc/* $fs/etc
paul@13741 40 cp -a $_pkg/usr/share $fs/usr
taziden@1973 41 rm -r $fs/usr/share/doc
taziden@1973 42 rm -r $fs/usr/share/man
taziden@1973 43 }
taziden@1973 44
pankso@10601 45 post_install()
pankso@10601 46 {
pankso@10601 47 addgroup mail
pankso@10601 48 }
pankso@10601 49
pankso@10601 50 post_remove()
pankso@10601 51 {
pankso@10601 52 delgroup mail
pankso@10601 53 }