# ex:ts=8 sw=4:
-# $OpenBSD: Delete.pm,v 1.122 2013/12/30 09:02:37 espie Exp $
+# $OpenBSD: Delete.pm,v 1.123 2014/01/02 16:05:42 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
my $pkgname = $plist->pkgname;
$state->{pkgname} = $pkgname;
- $ENV{'PKG_PREFIX'} = $plist->localbase;
if (!$state->{size_only}) {
$plist->register_manpage($state);
manpages_unindex($state);
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.41 2013/12/31 11:24:55 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.42 2014/01/02 16:05:42 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
$state->{do_faked} = 1;
} elsif (defined $state->opt('B')) {
$state->{destdir} = $state->opt('B');
- } elsif (defined $ENV{'PKG_PREFIX'}) {
- $state->{destdir} = $ENV{'PKG_PREFIX'};
}
if (defined $state->{destdir}) {
$state->{destdir}.='/';
- $ENV{'PKG_DESTDIR'} = $state->{destdir};
} else {
$state->{destdir} = '';
- delete $ENV{'PKG_DESTDIR'};
}
# }
$state->{replacing} = $replacing;
- $ENV{'PKG_PREFIX'} = $state->{localbase};
-
my $handler = sub {
$state->{interrupted} = shift;
};
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCheck.pm,v 1.42 2013/12/25 14:38:15 espie Exp $
+# $OpenBSD: PkgCheck.pm,v 1.43 2014/01/02 16:05:42 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
$self->{quick} = $self->opt('q');
if (defined $self->opt('B')) {
$self->{destdir} = $self->opt('B');
- } elsif (defined $ENV{'PKG_PREFIX'}) {
- $self->{destdir} = $ENV{'PKG_PREFIX'};
- }
+ }
if (defined $self->{destdir}) {
$self->{destdir} .= '/';
- $ENV{'PKG_DESTDIR'} = $self->{destdir};
} else {
$self->{destdir} = '';
- delete $ENV{'PKG_DESTDIR'};
}
}
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.76 2013/12/31 11:21:10 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.77 2014/01/02 16:05:42 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
my $base = '/';
if (defined $state->opt('B')) {
$base = $state->opt('B');
- } elsif (defined $ENV{'PKG_PREFIX'}) {
- $base = $ENV{'PKG_PREFIX'};
- }
+ }
$state->{base} = $base;