IPS Repository

Repository interface: distrans packages

Initial setup

Packages are installed in /usr/dispkg:

 pfexec zfs create -o mountpoint=/usr/dispkg rpool/dispkg
 pfexec chown root:bin /usr/dispkg
 pfexec chmod 0555 /usr/dispkg

Add the repository to publishers list:

 pfexec pkg set-publisher -O  http://ips.distrans.org distrans.org

So that:

 acheron> pkg publisher
 PUBLISHER                             TYPE     STATUS   URI
 distrans.org                          origin   online   http://ips.distrans.org/

Creating a new package

Following the ideas from the IPS community tutorial.

Assuming you compile the source in the $SRC_DIR directory:

 
 cd $SRC_DIR
 mkdir -p tmp/usr/dispkg
 setenv INST_DIR $SRC_DIR/tmp/usr/dispkg
 ./configure --prefix=$INST_DIR

then (g)make install or whatever is required to install your package.

Create the list of installed files using this pkgflistgen.pl script:

 cd $SRC_DIR/tmp
 pkgflistgen.pl . > pkg-list

Copy the copyright file to $SRC_DIR/tmp/COPYING.

Download this sample pkg-info file, edit the manifest header and save it to $SRC_DIR/tmp/pkg-info.

Create the include file:

 cat pkg-info pkg-list > package_name.include
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki