wok view mutt/receipt @ rev 12088
busybox: su should not chdir (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 10 09:31:50 2012 +0100 (2012-03-10) |
parents | 5c7155cf394a |
children | cb030285c0ed |
line source
2 # SliTaz package receipt
4 PACKAGE="mutt"
5 VERSION="1.5.21"
6 CATEGORY="network"
7 SHORT_DESC="Small and powerful text-based mail client"
8 MAINTAINER="paul@slitaz.org"
9 DEPENDS="openssl ncurses zlib libidn"
10 BUILD_DEPENDS="libidn-dev ncurses-dev openssl-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.mutt.org"
13 WGET_URL="ftp://ftp.mutt.org/mutt/devel/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 addgroup mail
20 sed -i 's/STACK \*/STACK_OF(X509) */' mutt_ssl.c
21 ./configure \
22 --prefix=/usr \
23 --enable-imap \
24 --with-ssl=/usr \
25 --with-mailpath=/var/mail \
26 --sysconfdir=/etc \
27 --enable-pop \
28 --enable-smtp \
29 $CONFIGURE_ARGS &&
30 make && make install &&
31 delgroup mail
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/etc
38 cp -a $_pkg/usr/bin/mutt $fs/usr/bin/
39 cp -a $_pkg/etc/* $fs/etc/
40 cp -a $_pkg/usr/share $fs/usr/
41 rm -r $fs/usr/share/doc
42 rm -r $fs/usr/share/man
43 }
45 post_install()
46 {
47 addgroup mail
48 }
50 post_remove()
51 {
52 delgroup mail
53 }