Pagina 1 di 1

How to make a tgz package?

Inviato: mar 22 nov 2005, 0:10
da victorche
Any ideas how can I make a tgz package of Opera 8.51?
The problem is that there is not a source :(

There are .deb files for download, rpms, tar.gz installer... But not a tgz package for Slackware...

I know it is possible, jut because there is such package on linuxpackages.net... But it is for Opera 8.50
Now there is 8.51
How can I make one by myself?
http://get.opera.com/pub/opera/linux/851/final/en/i386/

Inviato: mar 22 nov 2005, 0:21
da samiel
I found there tar.bz2 and tag.gz too.
Are not those file the source?

M.

Inviato: mar 22 nov 2005, 0:32
da victorche
I think not... There is a kind of installer in those archives.
I've never installed Opera compiling it...
Well I am not so good in these licence things, but as far as I know Opera is not Open Source. It is free /even after the 8.50 version you can use it for free and there is no banner at all/, but the source is closed.
And I am saying again - this is what I think it is...
:roll:

Inviato: mar 22 nov 2005, 9:33
da Firetux
you can take tar.bz2 and put this line in a slackbuild

Codice: Seleziona tutto

./install.sh DESTDIR=/path/pkg/slackbuild

Inviato: mar 22 nov 2005, 11:49
da victorche
Well, thank you! The contributor of Opera 8.50 in tgz format on linuxpackages.net is R S Ananda Murthy... This contributor usualy adds the slackbuild in usr/doc/name_of_the_program
So I wanted to see the slackbuid for 8.50, but there is not one in this case...
That's why I am asking here...

Inviato: mer 23 nov 2005, 0:42
da victorche
What about this one /an Opera user gave me this as an idea/:

Codice: Seleziona tutto

#!/bin/bash
USERNAME=$(whoami)
CRNTDIR=$(pwd)
OPERAVER=$(basename $(echo $CRNTDIR))
echo $OPERAVER > operaver
OPERAVERSION=$(sed -e 's@-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].[0-9]@@' -e 's@-shared-qt.i386-en@@' operaver)
rm operaver
PACKAGEDIR=./package
USRDIR=./package/usr
ETCDIR=./package/etc
PACKAGENAME=$OPERAVERSION-i486-1.tgz
if [ $USERNAME == root ]; then
mkdir -p $USRDIR&&
mkdir -p $ETCDIR&&
./install.sh --prefix=$USRDIR&&
cp config/* $ETCDIR&&
cd $USRDIR/bin&&
sed -e 's@./package/usr@/usr@g' opera > opera.new&&
mv opera.new opera&&
chmod 755 opera&&
cd $CRNTDIR&&
cd $PACKAGEDIR&&
makepkg $PACKAGENAME&&
mv $PACKAGENAME $CRNTDIR&&
cd $CRNTDIR&&
rm -rf $PACKAGEDIR
else
echo "User must be root to create packages"
fi
:?: