How to make a tgz package?

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
victorche
Linux 1.x
Linux 1.x
Messaggi: 135
Iscritto il: lun 3 ott 2005, 23:12

How to make a tgz package?

Messaggio 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/

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

I found there tar.bz2 and tag.gz too.
Are not those file the source?

M.

victorche
Linux 1.x
Linux 1.x
Messaggi: 135
Iscritto il: lun 3 ott 2005, 23:12

Messaggio 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:

Avatar utente
Firetux
Linux 4.x
Linux 4.x
Messaggi: 1465
Iscritto il: gio 10 giu 2004, 0:00
Località: Lecco
Contatta:

Messaggio da Firetux »

you can take tar.bz2 and put this line in a slackbuild

Codice: Seleziona tutto

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

victorche
Linux 1.x
Linux 1.x
Messaggi: 135
Iscritto il: lun 3 ott 2005, 23:12

Messaggio 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...

victorche
Linux 1.x
Linux 1.x
Messaggi: 135
Iscritto il: lun 3 ott 2005, 23:12

Messaggio 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
:?:

Rispondi