Honor PATH_FSTAB in the environment if present. Allows this package to
configure in a chroot that doesn't have an fstab file. Cloned from the corresponding freebsd file.
This commit is contained in:
parent
a5666019e3
commit
6f1546a252
3 changed files with 21 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: Makefile,v 1.8 2012/06/16 09:45:01 dholland Exp $
|
||||
# $NetBSD: Makefile,v 1.9 2012/06/30 05:10:51 dholland Exp $
|
||||
#
|
||||
|
||||
DISTNAME= Sys-Filesystem-1.30
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
PKGREVISION= 2
|
||||
PKGREVISION= 3
|
||||
CATEGORIES= sysutils devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Sys/}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.4 2010/07/17 08:31:58 sno Exp $
|
||||
$NetBSD: distinfo,v 1.5 2012/06/30 05:10:51 dholland Exp $
|
||||
|
||||
SHA1 (Sys-Filesystem-1.30.tar.gz) = f7ef406c2093d0255fb073b72648276a295f8de8
|
||||
RMD160 (Sys-Filesystem-1.30.tar.gz) = d909253efd74ee25e8d870bd73105e1d1f486b56
|
||||
Size (Sys-Filesystem-1.30.tar.gz) = 34319 bytes
|
||||
SHA1 (patch-lib_Sys_Filesystem_Netbsd_pm) = d193631d7034ce84e4b226a102084e2991b8c580
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
$NetBSD: patch-lib_Sys_Filesystem_Netbsd_pm,v 1.1 2012/06/30 05:10:51 dholland Exp $
|
||||
|
||||
Honor PATH_FSTAB in the environment if present. Allows this package to
|
||||
configure in a chroot that doesn't have an fstab file. Cloned from
|
||||
the freebsd file.
|
||||
|
||||
--- lib/Sys/Filesystem/Netbsd.pm~ 2010-07-15 19:33:42.000000000 +0000
|
||||
+++ lib/Sys/Filesystem/Netbsd.pm
|
||||
@@ -57,7 +57,7 @@ sub new
|
||||
my $self = bless( {}, $class );
|
||||
|
||||
# Defaults
|
||||
- $args{fstab} ||= '/etc/fstab';
|
||||
+ $args{fstab} ||= $ENV{PATH_FSTAB} || '/etc/fstab';
|
||||
|
||||
my @mounts = qx( /sbin/mount );
|
||||
$self->readMounts( $mount_rx, [ 0, 1, 2 ], [qw(fs_spec fs_file fs_vfstype fs_mntops)], \%special_fs, @mounts );
|
Loading…
Reference in a new issue