summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2006-11-11 07:57:20 +0000
committerJason Woodward2006-11-11 07:57:20 +0000
commit54fb2998a308ecfb2bba701cb3baebaa60c9073c (patch)
tree5ce8828adfbf025eb0790566d0b671820e56a986
parent06fd2d886d697d21edbb7516847de86e6d61acc2 (diff)
downloadcpan2tgz-54fb2998a308ecfb2bba701cb3baebaa60c9073c.tar.gz
/usr/bin permission fix for package build script
-rw-r--r--Changelog3
-rwxr-xr-xbuildslackpkg.sh2
-rwxr-xr-xcpan2tgz4
3 files changed, 6 insertions, 3 deletions
diff --git a/Changelog b/Changelog
index f06b2c2..36fa143 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,7 @@
+0.6.1 Nov 11, 2006
+ * /usr/bin permission fix for package build script
+
0.6 May 27, 2006
* added --build-number option (see docs)
* fixed architecture detection by examining unpacked module source
diff --git a/buildslackpkg.sh b/buildslackpkg.sh
index 4421201..2647ed9 100755
--- a/buildslackpkg.sh
+++ b/buildslackpkg.sh
@@ -33,7 +33,7 @@ find . -type f -iregex '.*readme.*' -o -iregex '.*change.*' -o -iregex '.*todo.*
mv ./usr/share/man ./usr
fi
if [ -d ./usr/bin ]; then
- chown -R root.bin ./usr/bin
+ chown -R $(stat --format "%u:%g" /usr/sbin) ./usr/bin
chmod 755 ./usr/bin/*
fi
chmod 644 ./usr/man/man?/*
diff --git a/cpan2tgz b/cpan2tgz
index a575774..c8dd18e 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -27,7 +27,7 @@ use CPAN;
use Getopt::Long;
use File::Find ();
-our $VERSION = "0.6";
+our $VERSION = "0.6.1";
$ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin";
my (
@@ -233,7 +233,7 @@ sub do_package
print $script_fh "find ./usr/share/man/ -name '*.3' -exec gzip -9 {} \\; 2> /dev/null\n";
print $script_fh "find ./usr/share/man/ -name '*.1' -exec gzip -9 {} \\; 2> /dev/null\n";
print $script_fh "mv ./usr/share/man ./usr/\n" if (-d "$dest_dir/usr/share/man");
- print $script_fh "chown -R root.bin ./usr/bin\n" if (-d "$dest_dir/usr/bin");
+ print $script_fh "chown -R `stat --format '%u:%g' /usr/bin` ./usr/bin\n" if (-d "$dest_dir/usr/bin");
print $script_fh "chmod 755 ./usr/bin/*\n" if (-d "$dest_dir/usr/bin");
print $script_fh "chmod 644 ./usr/man/man?/*\n" if (-d "$dest_dir/usr/man");
print $script_fh "rmdir ./usr/share\n" if (-d "$dest_dir/usr/share");