aboutsummaryrefslogtreecommitdiff
path: root/sysutils/etcmerge
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>2004-01-21 15:10:35 +0000
committerEivind Eklund <eivind@FreeBSD.org>2004-01-21 15:10:35 +0000
commitcf5450acfbcfd980cd8b8a910cd0778139edee40 (patch)
tree896437e58569ace21e94e6bd04c5bb27d73fa9a5 /sysutils/etcmerge
parentae4c901425fa73e9d73e19589ef0073a143a7411 (diff)
downloadports-cf5450acfbcfd980cd8b8a910cd0778139edee40.tar.gz
ports-cf5450acfbcfd980cd8b8a910cd0778139edee40.zip
Notes
Diffstat (limited to 'sysutils/etcmerge')
-rw-r--r--sysutils/etcmerge/Makefile4
-rw-r--r--sysutils/etcmerge/src/etcmerge.820
-rw-r--r--sysutils/etcmerge/src/etcmerge.sh7
3 files changed, 24 insertions, 7 deletions
diff --git a/sysutils/etcmerge/Makefile b/sysutils/etcmerge/Makefile
index 4495c928d960..21649b64f808 100644
--- a/sysutils/etcmerge/Makefile
+++ b/sysutils/etcmerge/Makefile
@@ -8,8 +8,8 @@
#
PORTNAME= etcmerge
-PORTVERSION= 0.3
-PORTREVISION= 2
+PORTVERSION= 0.4
+PORTREVISION= 0
CATEGORIES= sysutils textproc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/sysutils/etcmerge/src/etcmerge.8 b/sysutils/etcmerge/src/etcmerge.8
index 8db8e50891db..110d54e70a71 100644
--- a/sysutils/etcmerge/src/etcmerge.8
+++ b/sysutils/etcmerge/src/etcmerge.8
@@ -95,17 +95,29 @@ First, ensure you have a copy of the /etc distributed by FreeBSD (BEFORE you or
.Xr sysinstall 8
started modifying it) stored in
.Pa /var/db/etc .
-There are two easy ways to do this: Either download a copy matching your
+There are two easy ways to do this:
+.Bl -enum -compact
+.It
+Download a copy matching your
installation from
.Pa http://people.freebsd.org/~eivind/etc/
and extract this in
-.Pa /var/db/
-or run
+.Pa /var/db/ .
+.It
+Run
.Xr mergemaster 8
-one last time, and copy
+one last time to get your /etc up to date.
+Then rerun
+.Xr mergemaster 8
+with the
+.Fl v
+option, exit after it creates
+.Pa /var/tmp/temproot ,
+and copy
.Pa /var/tmp/temproot/etc
to
.Pa /var/db/etc .
+.El
.Pp
When you have
.Pa /var/db/etc
diff --git a/sysutils/etcmerge/src/etcmerge.sh b/sysutils/etcmerge/src/etcmerge.sh
index 6965a4af8ee8..da3b8c66012e 100644
--- a/sysutils/etcmerge/src/etcmerge.sh
+++ b/sysutils/etcmerge/src/etcmerge.sh
@@ -57,7 +57,6 @@ shift $(($OPTIND - 1))
# Where we store class files
#
CLASSDIR=${WORKDIR}/classes
-mkdir -p ${CLASSDIR}
#
# Where the new "root" is linked from
@@ -110,6 +109,10 @@ conflictshow() {
fi
}
+if [ "$#" -lt 1 ]; then
+ usage
+ exit 1
+fi
case "$1" in
init) ;;
install)
@@ -176,6 +179,8 @@ esac
echo "ETCMERGE: >>> Creating new etc data from ${USRSRC}"
+# Also creates our base work directory
+mkdir -p ${CLASSDIR}
#
# XXX Make sure we have all needed users and groups before this
#