diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/nanobsd/Customize/files | 15 | ||||
-rw-r--r-- | tools/tools/nanobsd/Customize/pkgs | 18 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tools/tools/nanobsd/Customize/files b/tools/tools/nanobsd/Customize/files new file mode 100644 index 0000000..6573b18 --- /dev/null +++ b/tools/tools/nanobsd/Customize/files @@ -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 diff --git a/tools/tools/nanobsd/Customize/pkgs b/tools/tools/nanobsd/Customize/pkgs new file mode 100644 index 0000000..d63ee65 --- /dev/null +++ b/tools/tools/nanobsd/Customize/pkgs @@ -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 |