HOWTO User Repository
From FrugalWiki
Here is a quick HOWTO for creating a user repository that pacman can talk to.
Checklist
- All your FrugalBuilds need to be in a directory tree somewhere
- All your build packages in a directory
The first one is the tricky one for some. After you've had to run gensync for your first time you'll start keeping everything in much nicer directory structures in future! Now in regards to where you keep all the FrugalBuilds, it's nice to keep any related patches/configs referenced in the FB in the same tree and include that in a subdirectory off your repository. If it's a local repo then it's probably not something to worry about but if you're putting this online for others it's good to allow them to see any changes you've made to this package from how it shipped from the original developer.
Once you have all your files organised, you're just one simple command away! I have mine in a the following structure so use that as a reference point for my gensync command.
+ /mnt/webroot/camdaniel.com/initramfs | +-- FB | +-- klibc | +-- FrugalBuild | +-- klibc-1.3.20-1-x86_64.fpm
From there it's a simple gensync run to create the fdb file and after any updates the same command will update the fdb.
gensync /mnt/webroot/camdaniel.com/initramfs/FB /mnt/webroot/camdaniel.com/initramfs/initramfs.fdb /mnt/webroot/camdaniel.com/initramfs/
From there, more information can be found in 'gensync --help'. To use this with pacman, something like this needs to be added to /etc/pacman.conf
[initramfs] Server = http://www.camdaniel.com/initramfs