diff options
author | oliver <oliver@FreeBSD.org> | 2006-11-30 01:38:45 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2006-11-30 01:38:45 +0800 |
commit | bb779b8ec58e138ca5448c7bece93cf740758b74 (patch) | |
tree | c19130a73eee4c4b56e2b19da9417345b02a4f6b /mail/vpopmail-devel | |
parent | aabddd527b447bb968b5d497039add1a2b7ba390 (diff) | |
download | freebsd-ports-gnome-bb779b8ec58e138ca5448c7bece93cf740758b74.tar.gz freebsd-ports-gnome-bb779b8ec58e138ca5448c7bece93cf740758b74.tar.zst freebsd-ports-gnome-bb779b8ec58e138ca5448c7bece93cf740758b74.zip |
while adding vpopmail-devel as a package, PKG_PREFIX
gets defined as ${PREFIX} - not as ${PREFIX}/vpopmail 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.
PR: ports/103177
Approved by: maintainer timeout (66 days)
Diffstat (limited to 'mail/vpopmail-devel')
-rw-r--r-- | mail/vpopmail-devel/Makefile | 2 | ||||
-rw-r--r-- | mail/vpopmail-devel/pkg-install | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mail/vpopmail-devel/Makefile b/mail/vpopmail-devel/Makefile index 89c6d104ede4..fd7da041fc72 100644 --- a/mail/vpopmail-devel/Makefile +++ b/mail/vpopmail-devel/Makefile @@ -269,7 +269,7 @@ CONFIGURE_ARGS+= --enable-spamassassin=${LOCALBASE}/bin/spamc \ # 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 diff --git a/mail/vpopmail-devel/pkg-install b/mail/vpopmail-devel/pkg-install index 101602472771..f435231eea4c 100644 --- a/mail/vpopmail-devel/pkg-install +++ b/mail/vpopmail-devel/pkg-install @@ -50,7 +50,7 @@ if (! getpwnam ("alias")) { 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 @@ foreach $user (keys %users) { 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"; } |