[Linux] Anything I should know before I create a package for my favorite distro?

Discussion in 'Development General' started by Kane Dunestorm, Apr 15, 2011.

  1. Kane Dunestorm

    Kane Dunestorm Member

    Joined:
    Apr 15, 2011
    Messages:
    31
    Likes Received:
    0
    So, I have decided to try and create a package for my favorite distro, Arch Linux, using this guide on the official wiki. Is there anything I should know before attempting it? Such as any quirks to account for in the compilation process, and what packages I will need to specify as dependencies (the packages for Arch Linux can be found here, and here)?

    Thanks for your time, and keep up the good work.
     
  2. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Well, you need to run PO from the folder you install it.


    I think it makes packaging very difficult, or even impossible.
     
  3. Kane Dunestorm

    Kane Dunestorm Member

    Joined:
    Apr 15, 2011
    Messages:
    31
    Likes Received:
    0
    Not necessarily, as I can always have it send that folder to /usr/bin/ with the install script for the package (packages, or at least this packages of this sort in Arch Linux are essentially BASH scripts for compiling from source). That also may remove the need for the LD_LIBRARY_PATH environment variable in ~/.bashrc.
     
  4. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    Well, since currently PO does not run from RO directory quite as good you may need to grant some permissions to dirs/folders. If you don't want it to be writable by all, make a group for it (or use generic 'games', if it's already exist in Arch). I'm interested to change these quirks but I haven't even started yet.
     
  5. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    Boxes will be moved to correct place soon.
     
  6. Kane Dunestorm

    Kane Dunestorm Member

    Joined:
    Apr 15, 2011
    Messages:
    31
    Likes Received:
    0
    Thanks, I think I'll opt to go with the generic 'games' group, as it does already exist natively in Arch. Although, after reading a bit on the wiki, it appears that throwing the directory in the /usr/bin/ directory like I plan on doing will assign it to the bin group, so a better option might just be to let the groups be automatically assigned that way and not have to hassle with it.
     
  7. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    How about placing only symlinks (on start-server/client) into bin, and everything else eslewhere?
     
  8. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    I second mystra. No one wants in their bin anything but executables (BINaries, or scripts). Put the game data files into /usr/share/games/pokemononline or whatever place :3
     
  9. Kane Dunestorm

    Kane Dunestorm Member

    Joined:
    Apr 15, 2011
    Messages:
    31
    Likes Received:
    0
    I guess I'll do that then. I'll also make it so the filenames for the symlinks aren't so generic, as to avoid conflicts with other programs.

    It would also require a few more lines of code though, as Archlinux installs packages by default to /usr/bin/, though I could do it the other way around, and make symlinks to the game data files in a folder named "pokemon-online" in the $XDG_CONFIG_HOME (~/.config directory).
     
  10. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Pokemon-Online should be fine, but Server is a bit generic :-)