mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
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)
This commit is contained in:
parent
533b150b09
commit
4f5a4b258f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178268
@ -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
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user