Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 May 2013, 21:03
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Make a PPM repo
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1614
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 27 Nov 2010, 06:11    Post subject:  Make a PPM repo
Subject description: How to make your own repository for PET packages
 

First of all, things you'll need:
- A server with FTP access
- Some degree of familiarity with PPM and Woof.

In my case, I created a repository for Insidious Puppy, a wooflet I'm working on. It has its own kernel, third-party drivers (nvidia, etc') and artwork, so I wanted an unofficial repository just for it.

This repository can also be used for applications and packages made for it once it's released, so it's great in case I want some good package to be availalble to all users through PPM. Smile

It took around 10 minutes to set it up, with the uploading in the background.

Step 1: get all your PET packages and put them in one directory. In this example, I named mine "pet_packages-sid", here it is.

Step 2: for each of the PET packages, get its pet.specs and put all of them in one file - each line is one pet.specs.

To get the pet.specs of a PET package, do this:
1) extract it:
Code:
tar xzvf <PET package>

2) In the extracted package directory, you'll find a file named "pet.specs", open it with a text editor.

Just get all the pet.specs of all your packages and copy them into one file. For instance, mine is named "Packages-puppy-sid-unofficial", here it is. Put this file in the same directory as the directory with the PET packages and make a copy in /root/.packages.

Step 3: upload both the file and the directory with the PET packages to your server.

Step 4: open /root/.packages/DISTRO_PET_REPOS (or Woof's DISTRO_PET_REPOS) with a text editor.

Now, create an entry for your repo in this format:
Code:
base URL of the server|the URL of the pet.specs list on the server|the pet.specs list file name


I used http://www.brainwavedesigncentral.net/dima as my FTP server (Saturn - thanks for the hosting!). It holds my "pet_packages-sid" and "Packages-puppy-sid-unofficial", so here's my entry:
Code:
brainwavedesigncentral.net|http://www.brainwavedesigncentral.net/dima/Packages-puppy-sid-unofficial|Packages-puppy-sid-unofficial


Add this entry to PKG_DOCS_PET_REPOS. Make sure it's separated with a space.

Create another entry, in this format:
Code:
base URL of the server|the repository base URL, where the directory and pet.specs list are|the pet.specs list file name


Here's mine:
Code:
brainwavedesigncentral.net|http://www.brainwavedesigncentral.net/dima|Packages-puppy-sid-unofficial


If you use the server root for the repository, the base URL of the server and the repo URL are the same, except the "http". It's alright.

Add this entry to PET_REPOS as you did with PKG_DOCS_PET_REPOS.

Now, the repo is listed and available; you just need to enable it in your Puppy through PACKAGELISTS_PET_ORDER.

If you want to add this repository to Woof, you'll need to choose where to add it. If you use Lupu or Wary, find the code specific to your Puppy, add it to the repos list and choose the priority you want to give it (i.e if it's the first repo, its packages will be used instead of other matches from other repos) or last (good if it has only unique packages that don't exist on other repos, so it doesn't slow down package lookup).

If it's just for a running Puppy (or if you want it to be the top-priority repo for any Puppy built with your Woof), it doesn't matter at all.

Simply add this at the end of the file:
Code:
PACKAGELISTS_PET_ORDER="<the pet.specs list> ${PACKAGELISTS_PET_ORDER}"


Mine is:
Code:
PACKAGELISTS_PET_ORDER="Packages-puppy-sid-unofficial ${PACKAGELISTS_PET_ORDER}"


Step 5: go to PPM, click "Configure package manager" and enable your repo.

And don't forget, some packages don't have categories, so search for "*" in PPM to see all the packages in your repo. Wink

_________________
Shahor, my Puppy concept
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
mama21mama


Joined: 03 Apr 2010
Posts: 440
Location: Lincoln, Buenos Aires, Argentina

PostPosted: Mon 06 Dec 2010, 06:07    Post subject:  



I do not walk to your repo. Shocked

- - - - - - - - -
Yo también cree un repo -- mirar aqui.

I also did a repo -- > look here

Saludos
Greetings
Shocked
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0533s ][ Queries: 11 (0.0090s) ][ GZIP on ]