View Single Post
  #2   (View Single Post)  
Old 5th November 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

It's easy.

You create a site*.tgz file that includes any or all local modifications you want to have in your systems.

There are only two skills required:
  1. Know what files you want to have in your custom installation(s)
  2. Know how to use the tar(1) program.
Example: You are using 4.4-stable. You wish to have a starting package set, and a starting set of userids for custom install In this example, the chosen packages are screen and tcsh, and all of the userids on the build machine should be included in all custom installations. Because these are not individualized per-install, this examples will use site44.tgz.

Step 1. Learn what files are included with each package:
$ pkg_info -L tcsh
$ pkg_info -L screen
Step 2. Create the site file. In this example, it includes /etc/passwd, /home, the specific files that make up these packages, and their entries from /var/db/pkg:
Code:
# tar czf /path/to/mystuff/site44.tgz /etc/passwd /home \
/usr/local/bin/screen \
/usr/local/info/screen.* \
/usr/local/man/man1/screen.1 \
/usr/local/share/examples/screen \
/usr/local/share/screen \
/usr/local/bin/tcsh \
/usr/local/man/man1/tcsh.1 \
/usr/local/share/nls/*/tcsh.cat \
/var/db/pkg/screen-4.0.3p1 \
/var/db/pkg/tcsh-6.15.00
Reply With Quote