[RISOLTO] Creare pacchetti deb a piacimento

Coordinamento delle attività e informazioni sui progetti del gruppo: creazione, modifica e gestione dei pacchetti di Ubuntu e relative problematiche.

Moderatore: Gruppo Sviluppo

Avatar utente
mous16
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3940
Iscrizione: mercoledì 25 ottobre 2006, 15:51
Sesso: Maschile

[RISOLTO] Creare pacchetti deb a piacimento

Messaggio da mous16 »

Visto che alcuni software non li ho trovati aggiornati, la migliore idea che m'è venuta è stata compilarmeli; non volendo sporcare il sistema ho pensato di pacchettizzarli. Ho trovato 3 modi, ma nessuno mi soddisfa a pieno:
1) checkinstall: ok, questo non crea nemmeno pacchetti;  va in conflitto con gli aggiornamenti...
2) dh_make: comodo, e inoltre permette di impostare bene i tag dei pacchetti, ma funziona solo con sorgenti strutturati in un certo albero, e solo con sorgenti (niente file dati)
3) epm: la migliore strada: basta cambiare il prefisso al make install e poi va tutto come deve; il problema è che non mi fa creare pacchetti che hanno nel nome un trattino. sembrerà stupido ma è fondamentale: un sacco di pacchetti hanno un '-' soprattutto le dipendenze...

Qualcuno con un'idea su come metterci un trattino?
Ultima modifica di mous16 il martedì 5 febbraio 2008, 18:50, modificato 1 volta in totale.
Pagine personali: Forum Ubuntu-it - Wiki Ubuntu-it - Launchpad
Solo/mous16
Avatar utente
DktrKranz
Rampante Reduce
Rampante Reduce
Messaggi: 5071
Iscrizione: giovedì 2 novembre 2006, 11:24
Desktop: GNOME Shell
Distribuzione: Debian GNU/Linux sid - x86_64
Località: Guastalla (RE)
Contatti:

Re: Creare pacchetti deb a piacimento

Messaggio da DktrKranz »

Qualche errore particolare nel caso di pacchetti col trattino?
Avatar utente
mous16
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3940
Iscrizione: mercoledì 25 ottobre 2006, 15:51
Sesso: Maschile

Re: Creare pacchetti deb a piacimento

Messaggio da mous16 »

seguendo questa guida http://www.fastpopularity.com/article_marketing/computer/creare_pacchetti_debian__con_epm___facile.php
Se provo a creare un pacchetto (facciamo anche contenga un solo file)
ecco tutto ciò che succede:

Codice: Seleziona tutto

mous16@IFRIT:~$ mkdir root
mous16@IFRIT:~$ touch root/PROVA
mous16@IFRIT:~$ ls root
PROVA
mous16@IFRIT:~$  mkepmlist -g root -u root --prefix / ./root/ >./paccehtto-prova.list
mous16@IFRIT:~$ gedit paccehtto-prova.list 
mous16@IFRIT:~$ touch README
mous16@IFRIT:~$ touch LICENSE
mous16@IFRIT:~$ sudo epm -a all -n -f deb pacchetto-prova
[sudo] password for mous16:
epm: Product names can only contain letters and numbers!
ESP Package Manager v4.0
Copyright 1999-2006 by Easy Software Products.

EPM is free software and comes with ABSOLUTELY NO WARRANTY; for details
see the GNU General Public License in the file COPYING or at
"http://www.fsf.org/gpl.html".  Report all problems to "epm@easysw.com".

Usage: epm [options] [name=value ... name=value] product [list-file]
Options:
-a arch
    Use the named architecture instead of the local one.
-g
    Don't strip executables in distributions.
-f {aix,bsd,deb,depot,inst,native,pkg,portable,rpm,setld,slackware,swinstall,tardist}
    Set distribution format.
-k
    Keep intermediate files (spec files, etc.)
-m name
    Set distribution filename to include the specified platform name.
    This overrides "-n".
-n[mrs]
    Set distribution filename to include machine (m), OS release (r),
    and/or OS name (s).
-s setup.xpm
    Enable the setup GUI and use "setup.xpm" for the setup image.
-u
    Do not compress files in packages.
-v
    Be verbose.
-z
    Compress files in packages (default).
--data-dir /foo/bar/directory
    Use the named setup data file directory instead of /usr/share/epm.
--help
    Show this usage message.
--keep-files
    Keep temporary distribution files in the output directory.
--output-dir /foo/bar/directory
    Enable the setup GUI and use "setup.xpm" for the setup image.
--setup-image setup.xpm
    Enable the setup GUI and use "setup.xpm" for the setup image.
--setup-program /foo/bar/setup
    Use the named setup program instead of /usr/lib/epm/setup.
--setup-types setup.types
    Include the named setup.types file with the distribution.
--uninstalll-program /foo/bar/uninst
    Use the named uninstall program instead of /usr/lib/epm/uninst.
--version
    Show EPM version.
ed ecco il contenuto di pacchetto-prova.list

Codice: Seleziona tutto

%product pacchetto-prova
%description pacchetto-prova
%version 0.1
%copyright pacchetto-prova
%vendor prova
%readme README
%license LICENSE

f 644 root root /PROVA ./root/PROVA
come ben dice

Codice: Seleziona tutto

epm: Product names can only contain letters and numbers!
Pagine personali: Forum Ubuntu-it - Wiki Ubuntu-it - Launchpad
Solo/mous16
Avatar utente
mous16
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3940
Iscrizione: mercoledì 25 ottobre 2006, 15:51
Sesso: Maschile

Re: Creare pacchetti deb a piacimento

Messaggio da mous16 »

ok, ho trovato questo http://www.newopenbrains.org/roberto/creare_pacchetti_deb.htm che permette di fare tutto ciò che voglio... nella guida non si dice che il file control va messo in root/DEBIAN/control
Pagine personali: Forum Ubuntu-it - Wiki Ubuntu-it - Launchpad
Solo/mous16
Scrivi risposta

Ritorna a “Gruppo Sviluppo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 1 ospite