Crux port repository deployment
This documents the solution I used to publish an httpup
ports repostitory for
crux.
-
Initialize an scm repository in a directory. I chose git, you could probably use any decent scm.
-
Set your scm to ignore the package files.
-
Create a subdirectory for every port, then a Pkgfile for each port.
-
Use "Creating Packages" in the current crux handbook to create the Pkgfile.
-
Use pkgmk to generate the footprint and md5sum files (and build the package).
-
Use fakeroot to generate the footprint (gets rid of user-specific user/group in footprint file).
-
Use httpup-repgen to generate the
REPO
file. -
See the httpup manual for details, don't forget to ignore any files but the footprint, md5sum, and Pkgfile.
-
Once the package is good, commit to your scm.
-
Create bare git repository on internet server.
-
Modify bare repository to automatically update your web-accessible repository whenever you push out a new commit. In my case, I used the solution documented at this blog post, and modified the path to suit my needs.
-
Push out your changes and check to make sure it worked!