| View previous topic :: View next topic |
| Author |
Message |
BoyLinux Xandros Employees

Joined: 29 Jan 2003 Posts: 1951 Location: Ottawa, Ontario
|
Posted: Thu Feb 22, 2007 5:49 pm Post subject: Repackaging Basics |
|
|
This is how I do most of my packages.
As a minimum to start you need to the C/C++ Development Tool s and Debian Development Tools installed from XN.
I find the software that I would like to package and go to
snapshot.debian.net
Search for the package and click on details.
This will show all the versions that are available.
Typically I will download the latest version of the software that I want.
You will need to download all three files from here.
There will be the orig file which is the original software, the dsc file which is the package description file and the diff file which is the difference between the original software and what the debian maintainer had to do to get it to work with Debian.
Now you need to uncompress the package to get it ready for compiling
To do this run as your user dpkg-source -x nameof.dsc
This will create a directory for the software and apply the diffs.
Go into the directory and run
dpkg-buildpackage -rfakeroot
Fakeroot is a program that will give the appropriate root permissions to the file without needing to create it as root.
This will usually give you a list of dependencies that you are missing. This is the were the tricky part comes into play.
Install all the dependencies as root using XN or apt. You will most likely need unsupported enabled.
Some packages will have newer versions listed as needed then provided by Xandros.
You can try to edit debian/control to match those that are provided by Xandros and try to compile or download the ones listed from snapshot and compile them.
What I try to do is to bring down the requirements as close to Xandros as possible and have the package still compile. This may take some trial and error and guess work but it is best this way as you do not want to be compiling a whole new backend for only one package.
The packages debhelper and quilt are used by a lot of newer packages. You can download the ones on www.clanfos.net/packages which seem to fullfil the requirements for most packages and all others can usually be downgraded to this version.
If you get an error about missing libXcuror.la or libXrander.la install the xorg-compt package from www.clanfos.net/packages
Any questions from perticular packages post them here and I'll try my best to answer them. _________________ Kevin MacPherson
Xandros - Product Manager
Project Management
Official Forum Moderator
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Thu Mar 01, 2007 5:36 pm Post subject: Re: Repackaging Basics |
|
|
| BoyLinux wrote: | This is how I do most of my packages.
As a minimum to start you need to the C/C++ Development Tool s and Debian Development Tools installed from XN.
I find the software that I would like to package and go to
snapshot.debian.net
Search for the package and click on details.
This will show all the versions that are available.
Typically I will download the latest version of the software that I want.
You will need to download all three files from here.
There will be the orig file which is the original software, the dsc file which is the package description file and the diff file which is the difference between the original software and what the debian maintainer had to do to get it to work with Debian.
Now you need to uncompress the package to get it ready for compiling
To do this run as your user dpkg-source -x nameof.dsc
This will create a directory for the software and apply the diffs.
Go into the directory and run
dpkg-buildpackage -rfakeroot
Fakeroot is a program that will give the appropriate root permissions to the file without needing to create it as root.
This will usually give you a list of dependencies that you are missing. This is the were the tricky part comes into play.
Install all the dependencies as root using XN or apt. You will most likely need unsupported enabled.
Some packages will have newer versions listed as needed then provided by Xandros.
You can try to edit debian/control to match those that are provided by Xandros and try to compile or download the ones listed from snapshot and compile them.
What I try to do is to bring down the requirements as close to Xandros as possible and have the package still compile. This may take some trial and error and guess work but it is best this way as you do not want to be compiling a whole new backend for only one package.
The packages debhelper and quilt are used by a lot of newer packages. You can download the ones on www.clanfos.net/packages which seem to fullfil the requirements for most packages and all others can usually be downgraded to this version.
If you get an error about missing libXcuror.la or libXrander.la install the xorg-compt package from www.clanfos.net/packages
Any questions from perticular packages post them here and I'll try my best to answer them. |
What if the source is not at the debian snapshot site, but at kde-look.org?
How do I obtain the equivalent items?
For example:
Some cursor & icon themes do not install the normal way in the control center like they should. to ease this problem, I'd like to create a deb that installs it for an inexperienced user.
I know I can get some of these at the snapshot site, but most are not there.
Say I want to download and build a deb for a cursor theme Like this one:
http://www.kde-look.org/content/show.php?content=6240
If I extract the files, how do I set it up so it will have the appropriate stuff you listed above?
Can you walk through this example with me?
I would imagine this is simple, once I've seen an example of what to do.  _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
BoyLinux Xandros Employees

Joined: 29 Jan 2003 Posts: 1951 Location: Ottawa, Ontario
|
Posted: Thu Mar 01, 2007 7:39 pm Post subject: |
|
|
Wow a good simple package for me to play with.
I'll have to try it out and write down how I did it and I'll post back later on this.
Don't expect anything tomorrow because we are getting nailed with 30+cm of snow tongiht and tomorrow so I forsee a lot of shovelling in my immediate future. _________________ Kevin MacPherson
Xandros - Product Manager
Project Management
Official Forum Moderator
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Thu Mar 01, 2007 10:59 pm Post subject: |
|
|
| BoyLinux wrote: | Wow a good simple package for me to play with.
I'll have to try it out and write down how I did it and I'll post back later on this.
Don't expect anything tomorrow because we are getting nailed with 30+cm of snow tongiht and tomorrow so I forsee a lot of shovelling in my immediate future. |
 _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Sat Mar 03, 2007 6:00 pm Post subject: |
|
|
Okay...
I've just created my very first deb ever!
I used your instructions above, and after a slight learning curve, I made an installable deb.
But the above instructions include the majority of the work is already done... That puts at square one, and I'll patiently wait for your instructions for setting it up without having everything setup and ready to make debs.
Thanks for the instructions so far!
Sounds like you're learning also, so we can learn together.  _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
aldube Xandrosianschwing
Joined: 02 Jan 2005 Posts: 2332 Location: Calgary, Alberta, Canada
|
Posted: Mon Mar 05, 2007 12:20 pm Post subject: |
|
|
Nice; this thread should get stickied to the top of this forum, as it contains tips we don't want to be searching all over for 6 months down the road.
There's all kind of useful tips in this forum for creating DEBs like here:
http://forums.xandros.com/viewtopic.php?t=19893
| Andrew wrote: | | Quote: | Does anyone know how to modify the DEB file so the freedroidRPG command is added to the Xandros 3 KDE games menu?
|
First you need to crack open the Deb file so you can alter it. I'll assume the file name is freedroidrpg-0.9.131_i386.deb
From the directory the .deb file is in do:
mkdir deb
dpkg -x freedroidrpg-0.9.131_i386.deb deb/freedroidrpg-0.9.131_i386
dpkg -e freedroidrpg-0.9.131_i386.deb deb/freedroidrpg-0.9.131_i386/DEBIAN
now using XFM enter that directory (deb/freedroidrpg-0.9.131_i386), you'll see 2 directories: usr and DEBIAN
Everything you see here (with the exception of the DEBIAN directory) will be copied to the root of the system at install time.
Now enter "usr/share" and if necessary create a directory called "applications" (of course case and spelling are important).
Create (or use a supplied) .desktop file, if you have to create it, use this as an example:
| Code: |
[Desktop Entry]
Encoding=UTF-8
Name=Minesweeper
Icon=kmines
Exec=kmines
Type=Application
DocPath=kmines/index.html
X-KDE-StartupNotify=true
X-DCOP-ServiceType=Multi
Categories=StrategyGame
|
The item's menu location is determined by the Categories line, your's should be:
Categories=ArcadeGame
or
Categories=StrategyGame
which ever you see fit, and that .desktop file needs to go into usr/share/applications.
When that's done, go back to the console and issue:
dpkg -b deb/freedroidrpg-0.9.131_i386
(it's important not to include a trailing "/", or it wont work)
your NEW freedroid deb file will be in the deb directory
and that should be it!
--Andrew |
_________________ Linux simply works for me...
Registered Linux User 384461 |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Mon Mar 05, 2007 3:52 pm Post subject: |
|
|
This weekend, I put lots of work into locating a usable copy of the KDE style called "Domino".
It's a really fantastic look that allows you to adjust the level of "shine" your themes display. It goes with the Darkplastic2 theme on http://kde-look.org
My question is...
The version of Domino I finally got to install was a SUSE RPM.
I'd like to have a Deb to share with fellow Xandrosians down the road.
When alien converts an RPM into a Deb, where does the DEB go?
How can I get a copy of it? _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
BoyLinux Xandros Employees

Joined: 29 Jan 2003 Posts: 1951 Location: Ottawa, Ontario
|
Posted: Mon Mar 05, 2007 4:03 pm Post subject: |
|
|
Xandros Networks does it only temporarily then removes the deb.
You can convert it on the command line using alien --to-deb whatever.rpm and it will reconstitue it to a deb and save it in the same directory. _________________ Kevin MacPherson
Xandros - Product Manager
Project Management
Official Forum Moderator
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Mon Mar 05, 2007 4:13 pm Post subject: |
|
|
| BoyLinux wrote: | Xandros Networks does it only temporarily then removes the deb.
You can convert it on the command line using alien --to-deb whatever.rpm and it will reconstitute it to a deb and save it in the same directory. |
Thanks!
I have been busy this week, and made debs of a number of packages that are not available from XN.
Anyone know of a good place to get free hosting where I can upload my debs to share with my fellow Xandrosians? _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
BoyLinux Xandros Employees

Joined: 29 Jan 2003 Posts: 1951 Location: Ottawa, Ontario
|
Posted: Mon Mar 05, 2007 4:24 pm Post subject: |
|
|
http://www.rapidshare.com/
You might want to sign up for Matty's forums and ask to put it up on his box.
Or if it is not too big send it to me and I can put it on my server but I onyl have 500MB disk space. _________________ Kevin MacPherson
Xandros - Product Manager
Project Management
Official Forum Moderator
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Mon Mar 12, 2007 2:41 pm Post subject: |
|
|
| BoyLinux wrote: | http://www.rapidshare.com/
You might want to sign up for Matty's forums and ask to put it up on his box.
Or if it is not too big send it to me and I can put it on my server but I onyl have 500MB disk space. |
Just so you know, I've decided to get my own hosting with lots of bandwidth and disk space.
I've begun building a website with lots of downloads, and more to come:
http://www.geekconnection.org _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
BoyLinux Xandros Employees

Joined: 29 Jan 2003 Posts: 1951 Location: Ottawa, Ontario
|
Posted: Mon Mar 12, 2007 2:46 pm Post subject: |
|
|
Very cool. _________________ Kevin MacPherson
Xandros - Product Manager
Project Management
Official Forum Moderator
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Mon Mar 12, 2007 2:56 pm Post subject: |
|
|
I appreciate your offer for helping me out with some hosting, but when checking it out, I saw too much stuff to ask that of your site, so I got my own site setup.
If you have anything that needs hosting, I've got lots of space and bandwidth, and would love to mirror it.
I still need to figure out packaging, but I've at least put lots of stuff in the forums and elsewhere in one place where it's easy to find and download. _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
BoyLinux Xandros Employees

Joined: 29 Jan 2003 Posts: 1951 Location: Ottawa, Ontario
|
Posted: Mon Mar 12, 2007 3:06 pm Post subject: |
|
|
What is the hosting plan you have? _________________ Kevin MacPherson
Xandros - Product Manager
Project Management
Official Forum Moderator
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." |
|
| Back to top |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
|
| Back to top |
|
 |
|