Some questions about deb-package of CodeLite

CodeLite installation/troubleshooting forum
KernelPanic
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 09, 2008 11:26 pm
Contact:

Re: Some questions about deb-package of CodeLite

Post by KernelPanic »

eranif wrote:Thanks, if u think the configure script needs to be updated as well, please do
Yes, I change it in some places.

Ok, I attached an archive with scripts :)
Changes:
1) configure script:
- variable for_debian and function generateControlFile() are removed

2) fakeroot/DEBIAN/postinst script:
- creating the desktop icon for codelite removed;
- added update-menus command for taking changes for WMs.

3) added fakeroot/DEBIAN/postinst script:
- added update-menus command for taking changes for WMs.

4) make_deb.sh script:
- added generating three files: fakeroot/DEBIAN/control (with additional sections Priority, Installed-Size, and changed section Section); fakeroot/usr/share/applications/codelite.desktop (for DE menus); fakeroot/usr/menu/codelite (for WM menus);
- added command line parser, so now for building the archive for Ubuntu we need to call it like this:
./make_deb.sh -u and we'll get codelite_1.0.2527-ubuntu0_i386.deb (for example)
- and for building the archive for Debian we need to call it like this:
./make_deb.sh -b and we'll get codelite_1.0.2527_i386.deb (for example)
In Ubuntu package all codelite files will be installed to /usr/local folder,
and in Debian package all codelite files will be installed to /usr folder.
Because of changing functionality for make_deb.sh script we need to change make_repo.sh script:
1) Easy way to do it is just to add option -u in the appropriate string (create only Ubuntu package):
./make_deb.sh -u

2) The other way is to use my script make_repo.sh from attached archive.
a) ./make_repo.sh -u functionality identical to your script
b) ./make_repo.sh -d creates Debian package and copies it to /var/www/debs/ directory and creates Packages.gz file and moves it to /var/www/debs/dists/lenny/restricted/binary-i386/ directory (the directory must exists)
c) ./make_repo.sh -a makes the a) and b) steps.

So, I decided to realize creating two different packages for Debian and Ubuntu from compiled sources instead of only Ubuntu package.

Feel free to use this scripts, but first test it please ;)

Alex
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Some questions about deb-package of CodeLite

Post by eranif »

Thanks a lot, I will test tomorrow when I get my Linux machine up and running again :D

Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Some questions about deb-package of CodeLite

Post by eranif »

Well, I downloaded and tried your scripts, they work well (My VPN to my work was fixed earlier than i though it will)
I only needed to updated the make install to name the output codelite rather than CodeLiteUR/D.

Oh, i also needed to install fakeroot package

The scripts are now committed to SVN.
One question: what is the purpose of the '0' as in 'ubuntu0'?

Eran
Make sure you have read the HOW TO POST thread
KernelPanic
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 09, 2008 11:26 pm
Contact:

Re: Some questions about deb-package of CodeLite

Post by KernelPanic »

I'm glad to read it.
eranif wrote:One question: what is the purpose of the '0' as in 'ubuntu0'?
Actually, I don't know and I never used Ubuntu, it seems this is the main reason :D
I just saw the package naming for Ubuntu like that and I desided to make it that way, but if you don't like, you may just delete '0' at line 28 of make_deb.sh script.

Alex
KernelPanic
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 09, 2008 11:26 pm
Contact:

Re: Some questions about deb-package of CodeLite

Post by KernelPanic »

eranif wrote:Oh, i also needed to install fakeroot package
Yes, this is necessary to make root the owner of all files and directories inside the packages.

Alex
Post Reply