summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-05-19 15:20:49 +0000
committerphk <phk@FreeBSD.org>2005-05-19 15:20:49 +0000
commit4f1d6dc368a239baf33a7c8b057ccc4c57809c87 (patch)
tree0a10cbc83d0325bd227d3540f60b040d291be2a2 /tools
parent17d8b2d200c2f0c379d2960e3ceb811b06639058 (diff)
downloadFreeBSD-src-4f1d6dc368a239baf33a7c8b057ccc4c57809c87.zip
FreeBSD-src-4f1d6dc368a239baf33a7c8b057ccc4c57809c87.tar.gz
Add a couple of basic customization scripts.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/nanobsd/Customize/files15
-rw-r--r--tools/tools/nanobsd/Customize/pkgs18
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
OpenPOWER on IntegriCloud