Pagina 1 di 1
[RISOLTO] Creare pacchetti deb a piacimento
Inviato: lunedì 4 febbraio 2008, 10:20
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?
Re: Creare pacchetti deb a piacimento
Inviato: lunedì 4 febbraio 2008, 14:36
da DktrKranz
Qualche errore particolare nel caso di pacchetti col trattino?
Re: Creare pacchetti deb a piacimento
Inviato: martedì 5 febbraio 2008, 12:35
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!
Re: Creare pacchetti deb a piacimento
Inviato: martedì 5 febbraio 2008, 18:49
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