Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 73840

Summary: dbmail-admin-2.1.2.ebuild (new package)
Product: Gentoo Linux Reporter: Richard Westwell <garlicbread>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: net-mail+disabled, webapps-request
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 22331    
Bug Blocks:    
Attachments: dbmail-admin-2.1.2.ebuild
dbmail-admin-htaccess.patch
dbmail-admin-perl.patch
Crypt-PasswdMD5-1.3.ebuild
dbmail-admin-2.1.3.ebuild
dbmail-admin-2.2.0.ebuild

Description Richard Westwell 2004-12-08 14:06:33 UTC
Hi

Ebuild for dbmail-admin-2.1.2 - web based configuration for dbmail
this requires dbmail and Crypt-PasswdMD5
both of which are not part of the portage tree at the moment

first you may need to unmask libnet-1.19 by adding
=dev-perl/libnet-1.19
to /etc/portage/package.keywords
as this is a depend

next as an example from my own system as to where the ebuilds should be located
for my system portage overlay in /etc/make.conf is set to 
/usr/local/portdirs/portage

the dbmail-admin ebuild has been placed within net-mail
e.g. /usr/local/portdirs/portage/net-mail/dbmail-admin/dbmail-admin-2.1.2.ebuild

there are a couple of minor patches for dbmail-admin as well located within the files dir
e.g. /usr/local/portdirs/portage/net-mail/dbmail-admin/files/
called dbmail-admin-htaccess.patch and dbmail-admin-perl.patch

the dbmail ebuild at http://bugs.gentoo.org/show_bug.cgi?id=22331
has been placed within net-mail also
e.g. /usr/local/portdirs/portage/net-mail/dbmail/dbmail-2.0.0.ebuild

Crypt-PasswdMD5 is required for dbmail-admin so this has been placed within dev-perl
e.g. /usr/local/portdirs/portage/dev-perl/Crypt-PasswdMD5/Crypt-PasswdMD5-1.3.ebuild


the dbmail-admin ebuild should place the files within /var/www/localhost/htdocs/dbmailadministrator/ by default
and assign the directory/files the user name/group of apache

accessing http://<ip of machine>/dbmailadministrator/
should give the initial page (default user name / password is dbmail / dbmail)
e.g. http://localhost/dbmailadministrator/ for the local machine
Comment 1 Richard Westwell 2004-12-08 14:07:27 UTC
Created attachment 45570 [details]
dbmail-admin-2.1.2.ebuild
Comment 2 Richard Westwell 2004-12-08 14:08:17 UTC
Created attachment 45571 [details, diff]
dbmail-admin-htaccess.patch
Comment 3 Richard Westwell 2004-12-08 14:08:56 UTC
Created attachment 45572 [details, diff]
dbmail-admin-perl.patch
Comment 4 Richard Westwell 2004-12-08 14:09:38 UTC
Created attachment 45573 [details]
Crypt-PasswdMD5-1.3.ebuild
Comment 5 Richard Westwell 2005-01-15 08:59:54 UTC
Created attachment 48556 [details]
dbmail-admin-2.1.3.ebuild

ebuild for dbmail-admin 2.1.3
same ebuild but with a different version number

bearing in mind you'll need to re-set the options for dbmail-admin to connect
to the database after the emerge
Comment 6 iain 2005-04-06 06:56:45 UTC
Trying to build give the following error:

*** START ***
mail2 portage # emerge dbmail-admin dbmail
Calculating dependencies ...done!
>>> emerge (1 of 2) net-mail/dbmail-admin-2.1.3 to /
>>> md5 src_uri ;-) DBMA_SQL_V2.tar
>>> Unpacking source...
>>> Unpacking DBMA_SQL_V2.tar to /var/tmp/portage/dbmail-admin-2.1.3/work
 * Applying dbmail-admin-htaccess.patch ...                                                                                                                   [ ok ]
 * Applying dbmail-admin-perl.patch ...

 * Failed Patch: dbmail-admin-perl.patch !
 *  ( /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dbmail-admin-2.1.3/temp/dbmail-admin-perl.patch-19081.out


!!! ERROR: net-mail/dbmail-admin-2.1.3 failed.
!!! Function epatch, Line 401, Exitcode 0
!!! Failed Patch: dbmail-admin-perl.patch!
!!! If you need support, post the topmost build error, NOT this status message.
*** END ***

The file dbmail-admin-perl.patch-19081.out contains:

*** START ***
mail2 portage # cat /var/tmp/portage/dbmail-admin-2.1.3/temp/dbmail-admin-perl.patch-19081.out
***** dbmail-admin-perl.patch *****

===================================

PATCH COMMAND:  patch -p0 -g0 < /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch

===================================
patch: **** Only garbage was found in the patch input.
===================================

PATCH COMMAND:  patch -p1 -g0 < /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch

===================================
patch: **** Only garbage was found in the patch input.
===================================

PATCH COMMAND:  patch -p2 -g0 < /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch

===================================
patch: **** Only garbage was found in the patch input.
===================================

PATCH COMMAND:  patch -p3 -g0 < /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch

===================================
patch: **** Only garbage was found in the patch input.
===================================

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch

===================================
patch: **** Only garbage was found in the patch input.
*** END ***

Contents of /usr/portage/net-mail/dbmail-admin/files/dbmail-admin-perl.patch is:

*** START ***
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Crypt-DES/Crypt-DES-2.03-r1.ebuild,v 1.12 2004/10/16 23:57:20 rac Exp $

inherit perl-module

DESCRIPTION="Crypt::PasswdMD5 module for perl"

HOMEPAGE="http://search.cpan.org/~luismunoz/Crypt-PasswdMD5-${PV}/"
SRC_URI="http://www.cpan.org/modules/by-authors/id/L/LU/LUISMUNOZ/${P}.tar.gz"

LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha hppa amd64 ~mips"
IUSE=""

DEPEND="virtual/libc >=dev-lang/perl-5"

export OPTIMIZE="${CFLAGS}"
*** END ***

Cannot see anything obvious here. Am I missing something??

Regs.

Iain.
Comment 7 Richard Westwell 2005-04-08 18:05:52 UTC
The problem is they don't put a proper version number at the end of the source file (all the versions have the same file name of DBMA_SQL_V2.tar)

which means the ebuild is usually always downloading the latest version instead of 2.1.2
which then causes the patches to fail
I'll see about creating a new ebuild / patchset for the new version 2.2.0
Comment 8 Richard Westwell 2005-04-08 18:25:40 UTC
Created attachment 55730 [details]
dbmail-admin-2.2.0.ebuild

this should do it
I just had to remove the perl path patch
Comment 9 Renat Lumpau (RETIRED) gentoo-dev 2005-12-19 09:25:50 UTC
This is a WONTFIX since upstream doesn't provide properly versioned tarballs.