![Smile :)](./images/smilies/icon_smile.gif)
ttuuxxx
I don´t get it ttuuxxx, the ar executable allows extraction from xarchiver or File-roller?. Cause, actually It is not used by the deb2pet.rpm2pet script.ttuuxxx wrote:I added the /usr/bin/ar bin because its included in the devx but not in the iso, basically it allows the extraction of debs and others, strange it wasn't in the iso as default. probably could be removed for other newer 4 series versions to use this updated pet.
oh well tuuxxx.
Yes its used by xarchiver & File-roller to extract deb.rpm.clarf wrote:
I don´t get it ttuuxxx, the ar executable allows extraction from xarchiver or File-roller?. Cause, actually It is not used by the deb2pet.rpm2pet script.
ttuuxxx the deb2pet.rpm2pet installer does not work because it try to use unrpm and undeb applications, that are not present in 214X. Then it just creates a pet package with the pet.specs file inside but nothing more (that pet is registered by petget).ttuuxxx wrote:the deb/rpm installer doesn't work, it registers the application so you can uninstall it, but it doesn't actually install. grrrrrrrrr
ttuuxxx
Thanks for the clarification and thanks for the nice additionttuuxxx wrote:Yes its used by xarchiver & File-roller to extract deb.rpm.clarf wrote:
I don´t get it ttuuxxx, the ar executable allows extraction from xarchiver or File-roller?. Cause, actually It is not used by the deb2pet.rpm2pet script.
And yes deb2pet.rpm2pet doesn't use it, but it was a alternative additionThat will be included in the next release.
ttuuxxx
Code: Select all
#!/bin/sh
# exploderpm
# Adapted by Gilbert Ashley <amigo@ibiblio.org>
# VERSION 0.2
# The code for explode_rpm was originally written by Jeff Johnson
# and modified by Lasse Collin <lasse.collin@tukaani.org>
# Copyright (C) 2005, 2006 Lasse Collin <lasse.collin@tukaani.org>
# code for handling debian archives taken from disrpm
# released under the Gnu General Public License (GPL)
# (c) bjdouma@xs4all.nl
######################
#VER="v1.5, october 2004"
help_text() {
echo "Usage: [-l] [-xv] package_name"
echo "Options"
echo " -i: Install Package"
echo " -x: Extract Package"
echo " -l: List Package Content"
echo " -xv: Extract Package with Verbose"
}
OPT="$1"
FILE="$2"
[[ $OPT = '-lv' ]] && VERBOSE='v' OPT='-l'
[[ $OPT = '-xv' ]] && VERBOSE='v' OPT='-x'
if [ "$OPT" = "" ]; then
help_text
fi
explode() {
case "$1" in
*.rpm) explode_rpm "$FILE" ;;
*.deb) explode_deb "$FILE" ;;
esac
return $?
}
explode_deb() {
case $OPT in
'-x')
DEB=$1
FOLDR=$(echo $FILE|sed 's/\.deb$//')
mkdir "$FOLDR"
cp "$DEB" "$FOLDR"
cd "$FOLDR"
DEB=`ls | grep ".deb"`
[ ! $VERBOSE ] && dpkg-deb -x $DEB .
[ $VERBOSE ] && dpkg-deb -X $DEB .
rm "$DEB"
;;
'-i')
DEB=$1
FOLDR=$(echo $FILE|sed 's/\.deb$//')
mkdir "$FOLDR"
cp "$DEB" "$FOLDR"
cd "$FOLDR"
DEB=`ls | grep ".deb"`
dpkg-deb -x $DEB .
rm "$DEB"
FOLDR=`basename "$FOLDR"`
echo "PETMENUDESCR=''" > "$FOLDR.pet.specs"
echo "PETOFFICIALDEPS=''" >> "$FOLDR.pet.specs"
echo "PETREGISTER='yes'" >> "$FOLDR.pet.specs"
cd ..
tar -cf "$FOLDR.tar" "$FOLDR"
gzip "$FOLDR.tar"
tgz2pet "$FOLDR.tar.gz"
rm -R -f "$FOLDR"
rox "$FOLDR.pet"
;;
'-l')
DEB=$1
dpkg-deb -c $DEB
;;
esac
}
explode_rpm() {
local pkg o sigsize gz
pkg=$1
o=104
set -- $(od -j $o -N 8 -t u1 -- "$pkg")
sigsize=$((8 + 16 *
(256 * (256 * (256 * $2 + $3) + $4) + $5) +
(256 * (256 * (256 * $6 + $7) + $8) + $9)))
o=$((o + sigsize + (8 - (sigsize % 8)) % 8 + 8))
set -- $(od -j $o -N 8 -t u1 -- "$pkg")
o=$((o + 8 + 16 *
(256 * (256 * (256 * $2 + $3) + $4) + $5) +
(256 * (256 * (256 * $6 + $7) + $8) + $9)))
comp=$(dd if="$pkg" ibs=$o skip=1 count=1 2>/dev/null \
| dd bs=3 count=1 2> /dev/null)
gz="$(echo -en '\037\0213')"
#xz="$(echo -en '\0fd\037\07a\058\05a\000')"
case $OPT in
'-x')
case "$comp" in
BZh) dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 | cpio --quiet -ivdm ;;
"$gz"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip | cpio --quiet -ivdm ;;
"]"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -ivdm ;;
*) echo "Unrecognized rpm file: $pkg"; return 1 ;;
esac
;;
'-l')
case "$comp" in
BZh) dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 | cpio --quiet -t$VERBOSE ;;
"$gz"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip | cpio --quiet -t$VERBOSE ;;
"]"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -t$VERBOSE ;;
*) echo "Unrecognized rpm file: $pkg"; return 1 ;;
esac
;;
esac
[ $? != 0 ] && return 1
# The directories that are not listed in the RPM file are always created
# "chmod 0700" by cpio. We will reset those directories to "chmod 0755".
# Unfortunately we cannot detect without extra help from cpio if the
# package had some directories that shouldn't be world readable.
find . -type d -perm 700 -exec chmod 755 {} \;
return 0
}
# End of functions.explode.sh
explode "$FILE"
hmmm how about deb-rpm-installerclarf wrote:OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf
What about alienmanager? It´s not limited to install or convert alien packages.ttuuxxx wrote:hmmm how about deb-rpm-installerclarf wrote:OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf
puppy used to have a alien installer way back, but a bit confusing for newbeeeee's
ttuuxxx
clarf you built it, you name itclarf wrote:What about alienmanager?ttuuxxx wrote:hmmm how about deb-rpm-installerclarf wrote:OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf
puppy used to have a alien installer way back, but a bit confusing for newbeeeee's
ttuuxxx
Naaa the BMP version I put together in 2.14X is the most elegantly pimped-out version on any linux, lol well it does have ladspa and TAP included, you just need to configure it to your taste. every try it out? it has like 18 Tap plugins for fine tuning your stereo. Its located in the bmp menu under preferences/plugins/Effects tick Ladspa and then select preferences. and select a tap plugin click configure and have a play. Plus BMP is connected to streamtuner/ripperdejan555 wrote:That's amazing indeed, hey if it turns up it works good, maybe make it default audio player in next release? I haven't found which formats supports though