Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77425 - New ebuild for amavisd-new 2.2.1
Summary: New ebuild for amavisd-new 2.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 15:03 UTC by Christian Zoffoli (RETIRED)
Modified: 2005-01-19 15:18 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
amavisd-new-2.2.1.ebuild (amavisd-new-2.2.1.ebuild,4.95 KB, text/plain)
2005-01-10 15:04 UTC, Christian Zoffoli (RETIRED)
Details
some gentoo defaults converted from a static conf file to a patch (amavisd-new-2.2.1-amavisd.conf-gentoo.patch,6.69 KB, patch)
2005-01-10 15:06 UTC, Christian Zoffoli (RETIRED)
Details | Diff
qmail-lf-workaround.patch (amavisd-new-2.2.1-qmail-lf-workaround.patch,688 bytes, patch)
2005-01-10 15:06 UTC, Christian Zoffoli (RETIRED)
Details | Diff
amavisd-new-2.2.1.ebuild (amavisd-new-2.2.1.ebuild,4.58 KB, text/plain)
2005-01-19 14:11 UTC, Sune Kloppenborg Jeppesen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Zoffoli (RETIRED) gentoo-dev 2005-01-10 15:03:22 UTC
based on the current ebuild and Sune's one http://bugs.gentoo.org/attachment.cgi?id=46081&action=view

I've added qmail qmqp support, moved the schema files to the openldap schema dir, created an additional qmail-lf-workaround-patch, converted the actual config to a patch to apply on amavisd.conf-sample, added amavisd-nanny amavisd-agent binaries (amavisd-nanny is useful).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-uml-xm1 i686)
=================================================================
System uname: 2.6.9-uml-xm1 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/mail/dspam /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ http://194.117.143.70"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages/x86/desktop"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.0.4.11/gentoo-portage"
USE="x86 X aac aalib acl acpi acpi4linux aliaschain altcolors amd apache2 apm
aredmem arts artswrappersuid atlas atm audiofile avi ba-completion
berkdbbitmap-fonts blas bonobo cdb cddb cdparanoia cdr cdrom cjk clamav codecs
crypt cups devfs26 dga divx4linux djbfft dlz dv dvd dvdr dvdread edl encode esd
ethereal evo extensions faac faad fam fbcon festival ffmpeg fftw flac flood
font-server foomaticdb fortran freetts freetype frlargefiles gd gdbm gif gimp
gimpprint glut gnokii gnome gphoto2 gpm gps gs gsm gtk gtk2 gtkhtml guild
ieee1394 imagemagick imlib imlib2 innodb ipv6 irda irmc jabber2 java jce jp2
jpeg jpeg2k junit kadu-modules kadu-voice kde kerberos large-domain lcms ldap
ldirectord libwww lirc live lzo lzw lzw-tiff mad maildir maildrop mailwrapper
matroska mbrola mdb mew mha mikmod mime mimencode mmap mmx mng motif mozcalendar
mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer msdav mysql mythtv
ncursees ncurses network neural nls nntp ntlm nvidia oav odbc oggvorbis openal
opengl opens opie oss pam pcmcia pcre pda pdf pdfkit pdflib perl php png pnp
postgres ppds procmail pthreads pwdb python qmail qt quicktime quotes radeon
readline remote roundrobin samba sasl sdl silentdrop slang slp sms speex spel
spell sqlite ssl svg svga szip tcltk tcpd tetex tga tiff tinydyndns transcode
truetype type1 type1-fonts unicode usb v4l v4l2 vda vhosts vim vim-with-x
virus-scan wmf wsconvert xine xinerama xinetd xml xml2 xmms xosd xpm xv xvid
yv12 zaptel zlib"
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-10 15:04:54 UTC
Created attachment 48137 [details]
amavisd-new-2.2.1.ebuild
Comment 2 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-10 15:06:27 UTC
Created attachment 48138 [details, diff]
some gentoo defaults converted from a static conf file to a patch
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-10 15:06:53 UTC
Created attachment 48139 [details, diff]
qmail-lf-workaround.patch
Comment 4 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-10 17:35:36 UTC
FYI: I've just added Mail::ClamAV to the portage, so amavisd-new can use it
Comment 5 Joakim 2005-01-15 06:18:27 UTC
Will this ebuild go into the official portage tree any time soon, the current one start to be a bit old...
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2005-01-16 11:56:34 UTC
Does amavisd-new really use Mail::ClamAV module? I have the ebuild ready, but can't decide on how to handle this - hard dependency? "clamav" USE flag?
Comment 7 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-16 15:14:56 UTC
reply to #6
amavisd-new-2.2.1 can use clamd or directly access clam core using the CPAN interface. 
Actually clamd use less memory than Mail::ClamAV

Comment 8 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-18 10:31:33 UTC
Is the ROOT warning really still needed? AFAIR it was changed in the 2004 series. 

Also I don't think all the DEPENDs are needed but that is nothing major.

And let's get this ebuild in Portage:-)
Comment 9 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-18 10:52:48 UTC
reply to #8

IMO, the root warning is not needed.

Regarding the dependencies we can follow three ways:
1- relax dependencies and make the user choose what to add
2- add a large amount of use flags (BAD, IMHO)
3- emerge a standard full featured amavisd-new

actually I prefer the third one for this kind of ebuild, but we can also think to an amavisd-new in two versions: lite and full featured (1 or 2 use flags to control all)
Comment 10 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-18 11:29:59 UTC
I like 1 the most but am perfectly happy with any of the other proposed solutions(3 and 3a) except 2.
Comment 11 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-19 14:11:50 UTC
Created attachment 48995 [details]
amavisd-new-2.2.1.ebuild

Changes:
- Removed the warning.
- Install amavisd-nanny and amavisd-agent into /usr/sbin instead of /usr/bin.

Comments:
- Attachment #48138 [details, diff] proper name is amavisd-new-2.2.1-amavisd.conf-gentoo.patch
- Attachment #48139 [details, diff] proper name is amavisd-new-2.2.1-qmail-lf-workaround.patch
Comment 12 Tuan Van (RETIRED) gentoo-dev 2005-01-19 15:18:31 UTC
Done. Thanks everyone.