Add a couple of basic customization scripts.

This commit is contained in:
Poul-Henning Kamp 2005-05-19 15:20:49 +00:00
parent 6283ced1e2
commit 63ad46aa0d
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/sh
#
# Install whatever files are in ${.CURDIR}/Files
#
# Copyright (c) 2004 Poul-Henning Kamp
#
# See /usr/share/examples/etc/bsd-style-copyright for license terms.
#
# $FreeBSD$
#
# Usage:
# ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} [ ${LOCAL_FILES_LIST} ]
cd $3/Files
find . -print | cpio -dumpv $1

View File

@ -0,0 +1,18 @@
#!/bin/sh
#
# Install whatever packages are in ${.CURDIR}/Pkg
#
# Copyright (c) 2004 Poul-Henning Kamp
#
# See /usr/share/examples/etc/bsd-style-copyright for license terms.
#
# $FreeBSD$
#
# Usage:
# ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} [ ${LOCAL_FILES_LIST} ]
rm -rf $1/tmp/Pkg $1/var/db/pkg/* $1/usr/local/*
mkdir $1/tmp/Pkg
ln $3/Pkg/* $1/tmp/Pkg
( chroot $1 sh -c "cd /tmp/Pkg && pkg_add -v *" )
rm -rf $1/tmp/Pkg