Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Jun 2015, 17:32
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
A .pet I made does not contain all the files in the folder
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message

Joined: 15 Jan 2009
Posts: 713

PostPosted: Thu 10 May 2012, 04:59    Post_subject:  A .pet I made does not contain all the files in the folder  

Hi there

I have attempted to compile xvid 1.32 and ended up with a directory of files.

From within that directory I used new2dir make install and ended up with a pet file, however this does not contain all the files in the original folder.

If anyone can give give me some tips/advice that would be great.

Built using Lucid 528-005
Back to top
View user's profile Send_private_message 
Karl Godt

Joined: 20 Jun 2010
Posts: 4026
Location: Kiel,Germany

PostPosted: Fri 11 May 2012, 17:05    Post_subject:  

new2dir uses installwatch script and installwatch.so to create a /tmp/pkginstall.lst file which contains a lot of unneeded entries .

My actual line looks like this :

-o /tmp/pkginstall.list\
I am having the problem that on one 511 and 430 installation new2dir make install would end up in a neverending loop without instlling anything.

So i made a workaround for this using find command :

echo "
searching for modified files '$F_TYPE' '$MMIN' .."
echo -n "In /usr .."
F=`find /usr $F_TYPE $MMIN`
echo -n " /etc .. "
if [ ! "`echo "$EXE_TARGETDIR" | grep 'cups'`" ];then
E=`find /etc $F_TYPE $MMIN | grep -vi 'cups'`  #certs file gets updated apparently by cupsd
E=`find /etc $F_TYPE $MMIN`
echo -n " /sbin .. "
S=`find /sbin $F_TYPE $MMIN`
echo -n " /bin .. "
B=`find /bin $F_TYPE $MMIN`
echo -n " /lib .. "
L=`find /lib $F_TYPE $MMIN`
echo " /var .. "
V=`find /var $F_TYPE $MMIN`

C=`echo "$C" |sort`

function strip_func(){
#strip the file...
 if [ ! -h "$1" ];then #make sure it isn't a symlink
  FILE_FILE=`file "$1" | grep 'ELF'`
  #[ ! "`file "$1" | grep 'ELF' | grep 'shared object'`" = "" ] && strip --strip-debug "$1"
  #[ ! "`file "$1" | grep 'ELF' | grep 'executable'`" = "" ] && strip --strip-unneeded "$1"
  [ "`echo "$FILE_FILE" |grep 'shared object'`" ] && strip --strip-debug "$1"
  [ "`echo "$FILE_FILE" |grep 'executable'`" = "" ] && strip --strip-unneeded "$1"
function strip_it(){
[ "`echo "$1" | grep -e '\.[[:alnum:]]*$' |grep -vEe '\.so$|\.so.[\.[0-9]]*$'`" ] && return 0
function copy_files(){
if [ -f "$1" ];then
strip_it "$@"
cp -a $INTERACTIVE "${1}" "${2}${1}"
elif [ -L "$1" ];then
RL=`readlink "$1"`
RLF=`readlink -f "$1"`
RLE=`readlink -e "$1"`
RLM=`readlink -m "$1"`
RLS=`echo "$RLS" |sort -u`
for j in $RLS;do
cp -a $INTERACTIVE "${j}" "${2}${j}"

for i in $C ; do
echo "$i"


if [ "`echo "$i" | grep -Ei '\.la$|\.a$|\.h$|\.m4$|\.pc$|\-config$|config.sh$|Conf.sh$|/aclocal/|/cvs/|/svn/'`" ];then
mkdir -p "${DEV_TARGETDIR}${dn}"
copy_files "$i" "${DEV_TARGETDIR}"

with several elif down .

new2dir -h

/usr/bin/new2dir [-new2dir_option1 -option2 ..] make [make_options] install[-doc|-etc..]

Script to list installed files by 'make install' using
'installwatch/checkinstall pkg' and to copy these files into a
seperate directory to easily be packaged further .
Also strips binaries automatically and libraries to reduce size .

Script specific options :
-c) forcibly delete already existing destination directory(s);
default is to rename .
-d) debug by 'set -x' .
-f) answer all dialog questions automatically:yes,cpu-type,
split-level(-f default = 3); includes -k .
-h) show this usage .
-V) show version information .
-i) interactive modes for binaries used by this script .
-I/path/to/bin/installwatch) if installwatch script to use
to monitor make install is installed not first in the PATH .
-k) keep binaries and libraries unstripped .
-K) strip only installed bins and libs .
-l) run with logsave -a /tmp/new2dir.log .
-u) update already existing _DESTDIR s , do not delete _DESTIR s .
-M) Menu for selecting various used executables .
-m #) set the MMIN level for the find command in -r mode below;
default is -2 (means to look for modified files not
older than the last two minutes) .
-A #) switch to AMIN instead of MMIN for above
-C #) switch to CMIN instead of MMIN for above
-r) rescue mode if installwatch does not work . Does not strip .
-v) give verbose output by '2>&1' .

For make specific options, see 'man make|make --help' .

I have added the strip functions for the Rescue Mode (find) part just today and not tested .

To run the find way :
make install
new2dir -f -r 

Filename  new2dir.bz2 
Filesize  8.12 KB 
Downloaded  171 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0564s ][ Queries: 13 (0.0049s) ][ GZIP on ]