From aca5c8ad90bde465204f016bfcbc7a0930a4bf9b Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Fri, 17 Aug 2001 09:41:17 +0000 Subject: Use 'id -un' and 'id -gn' for user and group information, not 'logname'. Add mkppackage, which will create a "fake"-style package, but not really. It doesn't try fake PREFIX and such to the build (it's not really possible anyway yet), but it uses pkg_create's '-s' option to pretend the package generated was installed in ${PREFIX}. --- Tools/scripts/mkptools/mkpinstall | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Tools/scripts/mkptools/mkpinstall') diff --git a/Tools/scripts/mkptools/mkpinstall b/Tools/scripts/mkptools/mkpinstall index 54a24750cedf..e451601d9f9a 100755 --- a/Tools/scripts/mkptools/mkpinstall +++ b/Tools/scripts/mkptools/mkpinstall @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # -# Copyright (c) 2000 Neil Blakey-Milner +# Copyright (c) 2001 Neil Blakey-Milner # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -44,8 +44,9 @@ sub testdir (@) { return ""; } -my ($user, $origdir, $portname, $tmpbase, $tmpdir, $wdpdir, $predir, $hmake); -chomp ($user = `logname`); +my ($user, $group, $origdir, $portname, $tmpbase, $tmpdir, $wdpdir, $predir, $hmake); +chomp ($user = `id -un`); +chomp ($group = `id -gn`); chomp ($origdir = `pwd`); chomp ($portname = `basename $origdir`); $tmpbase = testdir($ENV{'TMPDIR'}, $ENV{'TMP'}, $path_tmp); -- cgit v1.2.3