PDA

View Full Version : Linux packages


NightTwix
12-02-2007, 10:50 PM
I had the idea of creating packages for all the main distributions (or asking people to do it for their fav. distro).
Then you can install via the packet manager, which is way more convinient.

But then ... installing everything into the homefolder isnt really linuxlike and not to manage via package manager
And when you just pick a global folder it smells like problems too.
There is this behaviour that the binary wants to reside in the same directory as the ressources.
A clean install would put the binary into /usr/local/bin and the ressources into /usr/local/share

A solution would be putting everything to /opt

I also have no idea how it behaves on multiuser systems when everyone accesses the same ressources

l33t_linux_h4x0r
12-03-2007, 02:19 AM
@NightTwix That is exactly what my installer does. It puts all the files into whatever folder that you want for example /usr/local/games/Regnum or /opt/Regnum The best part is though it dynamicly creates shortcuts based on whatever directory you installed into. And even better it is a bash script. This would be great for gentoo <-- the distro that I use becuase ebuilds <-- gentoo's package manager are just modified bash scripts anyway. I'm not sure if rpms or debs allow post process scripts but if so you could just take the later half of my script which I might decide to release to code for if there is a high enough demand. I just want credit and lots of it. It is my first usefull program after all.

Anyway send me a message if you would like help or like to help.

NightTwix
12-03-2007, 08:07 PM
@NightTwix That is exactly what my installer does. It puts all the files into whatever folder that you want for example /usr/local/games/Regnum or /opt/Regnum The best part is though it dynamicly creates shortcuts based on whatever directory you installed into. And even better it is a bash script. This would be great for gentoo <-- the distro that I use becuase ebuilds <-- gentoo's package manager are just modified bash scripts anyway. I'm not sure if rpms or debs allow post process scripts but if so you could just take the later half of my script which I might decide to release to code for if there is a high enough demand. I just want credit and lots of it. It is my first usefull program after all.

Anyway send me a message if you would like help or like to help.

Well the thing is that i wanted to discuss which is The Right Way™ to do the things before i put some effort into it.
but i decided to just start writing an ebuild and see how it works out

Our efforts aren't mutually exclusive, both ways of installing has its right to exist. I just think it would be more convinient to emerge/apt-get/yum/pacman and play along.
Packetmanagers have been invented for some reason ;)

darkcyde
12-04-2007, 04:45 AM
I've always installed personal files under my /home partition is that bad hehe. Anyways It'd be great to have a deb of regnum :thumb_up:

l33t_linux_h4x0r
12-04-2007, 06:28 AM
NightTwix i totally agree with you ;-) but it seemed to me that everyone liked the installer and the ability to choose where to install packages. Well I too am going to start work on an ebuild do you use gentoo also??

btw the installer was just an excuse to practice programming.

NightTwix
12-04-2007, 11:33 PM
NightTwix i totally agree with you ;-) but it seemed to me that everyone liked the installer and the ability to choose where to install packages. Well I too am going to start work on an ebuild do you use gentoo also??

btw the installer was just an excuse to practice programming.

yes i run gentoo everywhere i can.
I started already after i read through the official ebuild howto (http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1).
It has to be proper :)

We should join our efforts, shouldnt we?

l33t_linux_h4x0r
12-05-2007, 04:52 AM
yes post your code as i did with my installer. I didn't read the how to on ebuilds I'm going commando :biggrin:
I am starting with the cedega ebuild as they distribute their program as a precompiled binary in a tar.gz format. I figure that that should be a great starting point just change it to tar.bz2 and change install path and names.

Miraculix
12-11-2007, 04:32 AM
Hey look! A sys admin that codes! :cuac:

_dracus_
12-14-2007, 05:13 PM
Maybe I can build a debian (ubuntu if compatibility is possible) package.