Tiny Core Linux
Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: remus on March 11, 2012, 01:41:35 AM
-
bmarkus any chance of getting mutt updated to latest version ?
I need the support for smpt.
current microcore 3.8.4 version does not support smtp, if your busy, I can do it.
Thanks.
-
You can take over mutt maintenance. I'm not using it now, better if an activ user is doing it :-)
Do it for 4.x not only for 3.8
-
Thanks bmkarkus, i'll do my best.
-
I've achieved my goal to be able to send email from a shell script using mutt-1.5.21 with smtp enabled during compile.
Here are the configure options I used.
./configure --prefix=/usr/local --enable-imap --enable-pop --enable-smtp --with-homespool=/var/spool/
While I have satisfied my own needs, I feel I need the input of a seasoned linux user to ensure that I include the best all round compile options for greater usability. I'm very inexperienced with mutt
I will keep the compile options for future releases, as long as I am the maintainer.
-
I'm going with the following cimpile options for now.
./configure --prefix=/usr/local --enable-imap --enable-pop --enable-smtp --with-homespool=/var/spool/
I've had a look through the mutt files after installing, and see that I have 3 extensions to release
mutt.tcz
mutt-doc.tcz
mutt-locale.tcz
I've been preparing lean extensions in what i think is the hard way, I install the package to /tmp/package and then remove what i don't need. If I'm releasing a core package, mutt for example, i'll remove the dir's that contain the doc and locale info. Then I run the relevant commands to make it into mutt.tcz
then I clean up the /tmp/package folder, and run the mutt installer again, to get the doc and locale files back. Then I'll remove everything except the docs, so i can make that into mutt-doc.tcz
Like i said its slow and dumb. Can someone tell me the smart way to do it ?
thanks.
-
I'm not saying it is the samrt way, just the build script from 2010 to make previous version:
#!/bin/sh
#
######################################################
# Build script for TinyCore 3.x #
# #
# See .info for details #
# #
# May 11, 2010 #
######################################################
######################################################
# Configure extension creation parameters #
######################################################
SRCNAM=mutt-1.4.2.3.tar.gz
WRKDIR=mutt-1.4.2.3
EXTNAM=mutt
TMPDIR=/tmp/mutt
######################################################
# Prepare extension creation #
######################################################
# Remove dirs and files left from previous creation
rm -r -f $WRKDIR
rm -r -f $TMPDIR
rm -r -f $TMPDIR-doc
rm -r -f $TMPDIR-locale
# Crete temporary directory
mkdir -p $TMPDIR
######################################################
# Compile extension #
######################################################
# Export variables needed for compilation
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
# Unpack source in current directory
tar -xf $SRCNAM
# Configure it
cd $WRKDIR
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl
# Compile
make
# Install in base temp dir
make install DESTDIR=$TMPDIR
# Delete compilation work directory
cd ..
rm -r -f $WRKDIR
# Remove unneded dirs and files
# Adjust directory access rigths
find $TMPDIR/ -type d | xargs chmod -v 755;
# Strip executables
find $TMPDIR | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded
# Move files to doc extension
mkdir -p $TMPDIR-doc/usr/local/share
mv $TMPDIR/usr/local/share/man $TMPDIR-doc/usr/local/share
mv $TMPDIR/usr/local/doc $TMPDIR-doc/usr/local
# Move files to locale extension
mkdir -p $TMPDIR-locale/usr/local/share/mc
mv $TMPDIR/usr/local/share/locale $TMPDIR-locale/usr/local/share
mv $TMPDIR/usr/local/share/mc/mc.hlp* $TMPDIR-locale/usr/local/share/mc
mv $TMPDIR-locale/usr/local/share/mc/mc.hlp $TMPDIR/usr/local/share/mc
###################################################
# Create base extension in temp dir #
###################################################
cd $TMPDIR
cd ..
mksquashfs $TMPDIR $EXTNAM.tcz
cd $TMPDIR
find usr -not -type d > $EXTNAM.tcz.list
mv ../$EXTNAM.tcz .
# Create md5 file
md5sum $EXTNAM.tcz > $EXTNAM.tcz.md5.txt
# Cleanup temp directory
rm -r -f usr
###################################################
# Create doc extension in temp dir #
###################################################
cd $TMPDIR-doc
cd ..
mksquashfs $TMPDIR-doc $EXTNAM-doc.tcz
cd $TMPDIR-doc
find usr -not -type d > $EXTNAM-doc.tcz.list
mv ../$EXTNAM-doc.tcz .
# Create md5 file
md5sum $EXTNAM-doc.tcz > $EXTNAM-doc.tcz.md5.txt
# Cleanup temp directory
rm -r -f usr
###################################################
# Create locale extension in temp dir #
###################################################
cd $TMPDIR-locale
cd ..
mksquashfs $TMPDIR-locale $EXTNAM-locale.tcz
cd $TMPDIR-locale
find usr -not -type d > $EXTNAM-locale.tcz.list
mv ../$EXTNAM-locale.tcz .
# Create md5 file
md5sum $EXTNAM-locale.tcz > $EXTNAM-locale.tcz.md5.txt
# Cleanup temp directory
rm -r -f usr
-
Thanks for your script bmarkus, I will study it.
I see you have a few different compile options which I will copy.
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl
I only just saw this post, as I was reading back over it, I never received an update when you posted on March 13, 2012
-
./configure options updated
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl --enable-smtp
-
Sorry about the delay finishing this, I ran out of time getting ready to travel overseas, and I've got some time to finish it now :)
I ran into a problem when running
$ make install DESTDIR=/tmp/package
With the following compile options.
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl --enable
-smpt
make[4]: Entering directory `/mnt/hdb1/mutt/mutt-1.5.21'
if test -f /tmp/package/usr/local/bin/mutt.dotlock && test -f /tmp/package/usr/local/bin/mutt_dotlock ; then \
rm -f /tmp/package/usr/local/bin/mutt.dotlock ; \
ln -sf /tmp/package/usr/local/bin/mutt_dotlock /tmp/package/usr/local/bin/mutt.dotlock ; \
fi
if test -f /tmp/package/usr/local/bin/mutt_dotlock && test xmail != x ; then \
chgrp mail /tmp/package/usr/local/bin/mutt_dotlock && \
chmod 2755 /tmp/package/usr/local/bin/mutt_dotlock || \
{ echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
fi
chgrp: invalid group: `mail'
Can't fix mutt_dotlock's permissions!
make[4]: *** [install-exec-hook] Error 1
make[4]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make[3]: *** [install-exec-am] Error 2
make[3]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make: *** [install] Error 2
-
chgrp: invalid group: `mail'
Mail group doesn't exist.
-
..so either you need to create this group or modify mutt so that it accepts the tc default group "staff"
-
thx bmarkus and Juanito
Runing "sudo addgroup mail" before ./configure does the trick.
I'll package the extension and do some testing
-
thx bmarkus and Juanito
Runing "sudo addgroup mail" before ./configure does the trick.
I'll package the extension and do some testing
Well, it is for compile time. What is about running mutt, is it necessary to have group mail and add tc to mail group? Just asking.
-
This is why I was suggesting to modify - if possible - mutt to work with group "staff" rather than group "mail".
I don't know if this is as simple as a ./configure switch or is more difficult than that..
-
I'm looking into making the default group staff, other general testing is going well.