From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 12 05:40:13 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D70716A415 for ; Tue, 12 Sep 2006 05:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2E4243D46 for ; Tue, 12 Sep 2006 05:40:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8C5eC5m082689 for ; Tue, 12 Sep 2006 05:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8C5eC3j082683; Tue, 12 Sep 2006 05:40:12 GMT (envelope-from gnats) Resent-Date: Tue, 12 Sep 2006 05:40:12 GMT Resent-Message-Id: <200609120540.k8C5eC3j082683@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Lehmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE98F16A415; Tue, 12 Sep 2006 05:37:55 +0000 (UTC) (envelope-from olivleh1@kartoffel.salatschuessel.net) Received: from kartoffel.salatschuessel.net (p5084F9B0.dip.t-dialin.net [80.132.249.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFDDB43D58; Tue, 12 Sep 2006 05:37:54 +0000 (GMT) (envelope-from olivleh1@kartoffel.salatschuessel.net) Received: from kartoffel.salatschuessel.net (localhost [127.0.0.1]) by kartoffel.salatschuessel.net (8.13.6/8.13.6) with ESMTP id k8C5bQw3045707; Tue, 12 Sep 2006 07:37:26 +0200 (CEST) (envelope-from olivleh1@kartoffel.salatschuessel.net) Received: (from olivleh1@localhost) by kartoffel.salatschuessel.net (8.13.8/8.13.8/Submit) id k8C5bQF6045706; Tue, 12 Sep 2006 07:37:26 +0200 (CEST) (envelope-from olivleh1) Message-Id: <200609120537.k8C5bQF6045706@kartoffel.salatschuessel.net> Date: Tue, 12 Sep 2006 07:37:26 +0200 (CEST) From: Oliver Lehmann To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Oliver Lehmann Subject: ports/103177: fix-port mail/vpopmail & mail/vpopmail-devel X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Lehmann List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2006 05:40:13 -0000 >Number: 103177 >Category: ports >Synopsis: fix-port mail/vpopmail & mail/vpopmail-devel >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Sep 12 05:40:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Oliver Lehmann >Release: FreeBSD 6.1-STABLE amd64 >Organization: >Environment: System: FreeBSD kartoffel.salatschuessel.net 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jul 7 18:40:18 CEST 2006 olivleh1@kartoffel.salatschuessel.net:/usr/obj/amd64-athlon64-6.1/usr/src/sys/KARTOFFEL amd64 >Description: while adding vpopmail or vpopmail-devel as a package, PKG_PREFIX gets defined as ${PREFIX} - not as ${PREFIX} like it is defined in the Makefile. This ends up in creating users with /usr/local as home dir prefix, not /usr/local/vpopmail. This leads to a wrong home dir, and uninstallable other vpopmail-dendant appli- cations like vqadmin or courier-authlib-vchkpw because this applications are expecting lib_deps and inc_deps in ~vpopmail/etc. >How-To-Repeat: >Fix: --- vpopmail.patch begins here --- Index: vpopmail/Makefile =================================================================== RCS file: /home/pcvs/ports/mail/vpopmail/Makefile,v retrieving revision 1.65 diff -u -r1.65 Makefile --- vpopmail/Makefile 17 Jul 2006 05:51:32 -0000 1.65 +++ vpopmail/Makefile 12 Sep 2006 05:34:43 -0000 @@ -296,7 +296,7 @@ # pre-configure: - @PKG_PREFIX=${PREFIX}/vpopmail ${PERL5} ${PKGINSTALL} + @PKG_PREFIX=${PREFIX} ${PERL5} ${PKGINSTALL} .if defined(WITH_PGSQL) .if defined(WITH_PGSQL_DB) ${REINPLACE_CMD} -E -e "s/(#define DB.*)vpopmail(.*)/\1${WITH_PGSQL_DB}\2/" ${WRKSRC}/vpgsql.h Index: vpopmail/pkg-install =================================================================== RCS file: /home/pcvs/ports/mail/vpopmail/pkg-install,v retrieving revision 1.2 diff -u -r1.2 pkg-install --- vpopmail/pkg-install 4 Jul 2001 15:34:48 -0000 1.2 +++ vpopmail/pkg-install 12 Sep 2006 05:34:43 -0000 @@ -50,7 +50,7 @@ do checkrpw; # May exit $x = "-u $uids{'alias'}"; - $result = system ("/usr/sbin/pw useradd alias -g qnofiles -d \"$ENV{PKG_PREFIX}/alias\" -s /nonexistent $x"); + $result = system ("/usr/sbin/pw useradd alias -g qnofiles -d \"$ENV{PKG_PREFIX}/vpopmail/alias\" -s /nonexistent $x"); if ($result) { die "Failed to add user alias as uid $uids{'alias'}\n"; } @@ -61,7 +61,7 @@ do checkrpw; # May exit $x = "-u $uids{$user}"; - $result = system ("/usr/sbin/pw useradd $user -g $users{$user} -d \"$ENV{PKG_PREFIX}\" -s /nonexistent $x"); + $result = system ("/usr/sbin/pw useradd $user -g $users{$user} -d \"$ENV{PKG_PREFIX}/vpopmail\" -s /nonexistent $x"); if ($result) { die "Failed to add user $user as uid $uids{$user}\n"; } Index: vpopmail-devel/Makefile =================================================================== RCS file: /home/pcvs/ports/mail/vpopmail-devel/Makefile,v retrieving revision 1.51 diff -u -r1.51 Makefile --- vpopmail-devel/Makefile 10 May 2006 22:37:04 -0000 1.51 +++ vpopmail-devel/Makefile 12 Sep 2006 05:34:44 -0000 @@ -269,7 +269,7 @@ # pre-configure: - @PKG_PREFIX=${PREFIX}/vpopmail ${PERL5} ${PKGINSTALL} + @PKG_PREFIX=${PREFIX} ${PERL5} ${PKGINSTALL} .if defined(WITH_PGSQL) .if defined(WITH_PGSQL_DB) ${REINPLACE_CMD} -E -e "s/(#define DB.*)vpopmail(.*)/\1${WITH_PGSQL_DB}\2/" ${WRKSRC}/vpgsql.h Index: vpopmail-devel/pkg-install =================================================================== RCS file: /home/pcvs/ports/mail/vpopmail-devel/pkg-install,v retrieving revision 1.2 diff -u -r1.2 pkg-install --- vpopmail-devel/pkg-install 4 Jul 2001 15:34:48 -0000 1.2 +++ vpopmail-devel/pkg-install 12 Sep 2006 05:34:44 -0000 @@ -50,7 +50,7 @@ do checkrpw; # May exit $x = "-u $uids{'alias'}"; - $result = system ("/usr/sbin/pw useradd alias -g qnofiles -d \"$ENV{PKG_PREFIX}/alias\" -s /nonexistent $x"); + $result = system ("/usr/sbin/pw useradd alias -g qnofiles -d \"$ENV{PKG_PREFIX}/vpopmail/alias\" -s /nonexistent $x"); if ($result) { die "Failed to add user alias as uid $uids{'alias'}\n"; } @@ -61,7 +61,7 @@ do checkrpw; # May exit $x = "-u $uids{$user}"; - $result = system ("/usr/sbin/pw useradd $user -g $users{$user} -d \"$ENV{PKG_PREFIX}\" -s /nonexistent $x"); + $result = system ("/usr/sbin/pw useradd $user -g $users{$user} -d \"$ENV{PKG_PREFIX}/vpopmail\" -s /nonexistent $x"); if ($result) { die "Failed to add user $user as uid $uids{$user}\n"; } --- vpopmail.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: