Bug 85756 - amavisd-new: an improved ebuild to fix some problems
Bug#: 85756 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: net-mail@gentoo.org Reported By: xmerlin@gentoo.org
Component: Ebuilds
URL: 
Summary: amavisd-new: an improved ebuild to fix some problems
Keywords:  
Status Whiteboard: 
Opened: 2005-03-18 04:39 0000
Description:   Opened: 2005-03-18 04:39 0000
this little improvement fix some problems:
- user creation when you install a binary package
- whitelist blacklist spam_lovers overwriting
- better permissions handling ;)

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




Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.11.3 i686)
=================================================================
System uname: 2.6.11.3 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 18:50:39)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /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/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://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
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 berkdb
bitmap-fonts blas bonobo cdb cddb cdparanoia cdr cdrom cjk clamav codecs crypt
cups curl devfs26 dga dhcp divx4linux djbfft dlz dv dvd dvdr dvdread edl emboss
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 imap imlib imlib2 innodb ipv6 irda irmc jabber2 jack java
jce jp2 jpeg jpeg2k junit kadu-modules kadu-voice kde kerberos large-domain lcms
ldap ldirectord libg++ libwwwlirc 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 nls nntp nogulm 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 scanner sdl shaper
silentdrop slang slp sms snmp softquota speex spel spell sqlite ssl svg svga
sziptcltk tcpd tetex tga tiff tinydyndns transcode truetype truetype-fonts 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"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

------- Comment #1 From Christian Zoffoli 2005-03-18 04:41:01 0000 -------
Created an attachment (id=53782) [details]
better ebuild with many fixes

------- Comment #2 From Tuan Van (RETIRED) 2005-03-22 10:06:42 0000 -------
Christian,
you move direct ${AMAVIS_ROOT}/directories creation from src_install() to pkg_postinst(). It causes those directories left over after an emerge -C. Is it desirable?

------- Comment #3 From Christian Zoffoli 2005-03-22 15:12:18 0000 -------
Created an attachment (id=54187) [details]
better patch (leave the directory creation in src_install()

You are right, I've changed a bit the patch to leave the directory creation in
src_install()

------- Comment #4 From Sune Kloppenborg Jeppesen 2005-04-26 11:35:11 0000 -------
Created an attachment (id=57309) [details]
amavisd-new-2.3.0.ebuild

amavisd-new-2.3.0.ebuild incorporating the patch.

------- Comment #5 From Sune Kloppenborg Jeppesen 2005-04-26 11:36:08 0000 -------
Created an attachment (id=57310) [details]
amavisd-new-2.3.0-amavisd.conf-gentoo.patch

------- Comment #6 From Fernando J. Pereda (RETIRED) 2005-04-27 11:12:24 0000 -------
Shouldn't those has_version be replaced by some use flags ?

Also:

>	exeinto /etc/init.d
>	newexe "${FILESDIR}/amavisd.rc6" amavisd
>	dosed "s:/var/run/amavis/:$AMAVIS_ROOT/:g" /etc/init.d/amavisd

Should be replaced by a newinitd call.

Cheers,
Ferdy

------- Comment #7 From Christian Zoffoli 2005-04-28 04:09:05 0000 -------
Created an attachment (id=57462) [details]
newinitd call added

------- Comment #8 From Andrej Kacian (RETIRED) 2005-05-01 13:17:58 0000 -------
Ok, 2.3.0 has just landed in portage. Thanks everyone involved!