new upstream 2.8.0
This commit is contained in:
parent
fc7f4b43c1
commit
b2b0c9995a
836 changed files with 137090 additions and 30018 deletions
39
scripts/Solaris/preproto.pl.in
Executable file
39
scripts/Solaris/preproto.pl.in
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
$temp = "prototype1";
|
||||
$prototype="prototype";
|
||||
$pkginfo = "pkginfo";
|
||||
$checkinstall = "checkinstall";
|
||||
$preinstall = "preinstall";
|
||||
$postinstall = "postinstall";
|
||||
$preremove = "preremove";
|
||||
$postremove = "postremove";
|
||||
$nutuser = "@RUN_AS_USER@";
|
||||
$nutgroup = "@RUN_AS_GROUP@";
|
||||
|
||||
open (PREPROTO,"< $temp") || die "Unable to read prototype information ($!)\n";
|
||||
open (PROTO,"> $prototype") || die "Unable to write file prototype ($!)\n";
|
||||
print PROTO "i pkginfo=./$pkginfo\n";
|
||||
print PROTO "i checkinstall=./$checkinstall\n";
|
||||
print PROTO "i preinstall=./$preinstall\n";
|
||||
print PROTO "i postinstall=./$postinstall\n";
|
||||
print PROTO "i preremove=./$preremove\n";
|
||||
print PROTO "i postremove=./$postremove\n";
|
||||
while (<PREPROTO>) {
|
||||
# Read the prototype information from /tmp/prototype$$
|
||||
chomp;
|
||||
$thisline = $_;
|
||||
if ($thisline =~ " prototype1 ") {
|
||||
# We don't need that line
|
||||
} elsif ($thisline =~ "^[fd] ") {
|
||||
# Change the ownership for files and directories
|
||||
($dir, $none, $file, $mode, $user, $group) = split / /,$thisline;
|
||||
print PROTO "$dir $none $file=$file $mode $nutuser $nutgroup\n";
|
||||
} else {
|
||||
# Symlinks and other stuff should be printed as well ofcourse
|
||||
print PROTO "$thisline\n";
|
||||
}
|
||||
}
|
||||
#print PROTO "f $none nut $mode root $nutgroup\n";
|
||||
close PROTO;
|
||||
close PREPROTO;
|
||||
Loading…
Add table
Add a link
Reference in a new issue