diff options
author | Neil Blakey-Milner <nbm@FreeBSD.org> | 2001-08-17 09:41:17 +0000 |
---|---|---|
committer | Neil Blakey-Milner <nbm@FreeBSD.org> | 2001-08-17 09:41:17 +0000 |
commit | aca5c8ad90bde465204f016bfcbc7a0930a4bf9b (patch) | |
tree | 5923ccd9d63c31d36a3ace642b479386a3f8190e /Tools/scripts/mkptools/mkpinstall | |
parent | add missing % (diff) |
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}.
Notes
Notes:
svn path=/head/; revision=46358
Diffstat (limited to 'Tools/scripts/mkptools/mkpinstall')
-rwxr-xr-x | Tools/scripts/mkptools/mkpinstall | 7 |
1 files changed, 4 insertions, 3 deletions
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); |