Author
Topic: Trouble setting up package repo (Read 1510 times)

Hi All,After hitting a steep learning curve on several occasions over the last few months (and rolling back down it!) I finally got stuck into setting up my own package repository so I can play with some packages.It's taken me a ridiculous amount of time to get where I am (which is no where!) but now I seem to be completely stuck.I'm using the same FreeBSD 8.1 machine I have setup for compiling to host the repo. I have installed apache 2.2 and php5.2. That took ages! I have installed pear and the xml_rpc package for pear but when I go to <myserver>/pkg_tester.php I get:

Was written before when the repo was on rcs.pfsense.org. Over the years people have checked in all kinds of binaries into the repo, and they don't belong there. Only the PHP/xml/scripts belong in there. So when we moved to github a lot of that data that shouldn't have been in the repo was purged (lots of .tgz/.tbz files add up quickly in size!) and moved to where it should be on files.pfsense.org.

As a consequence of that purge, the size has reduced quite a lot. It used to be nearly 1GB in size between the data and the history in the .git directory. It's still nearly 200MB.

pfSense-packages$ du -k -d 188258 ./.git110476 ./config198970 .When developing packages, especially making new ones, having your own repo is quite handy. It's even better if you make your own fork of the packages repo on github and work with that on your server as you make changes. Then once you have it ready you can just submit a merge request there.