From e9fa188e70bf17f04ef48d756281e83bd47e53d8 Mon Sep 17 00:00:00 2001
From: erdgeist <erdgeist@erdgeist.org>
Date: Mon, 2 Jan 2012 05:17:54 +0000
Subject: From FreeBSD 9.0 on there's no need to install extra man pages. The
 come with the base pkg.

---
 ezjail-admin | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'ezjail-admin')

diff --git a/ezjail-admin b/ezjail-admin
index 1a98e15..21de648 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -965,9 +965,13 @@ install)
 
   # From 9.0 releases come with a new layout
   # It is now a single archive ${pkg}.txz instead of a list of archive parts under ${pkg}/*
+  # man pages come with the base
   # We assume for now that jail's platform is supposed to be that of the host. That may change later.
   ezjail_release_major=${ezjail_release%%.*}
-  [ ${ezjail_release_major} -ge 9 -a -n "${ezjail_installmanpages}" ] && ezjail_installmanpages=doc
+  if [ ${ezjail_release_major} -ge 9 -a -n "${ezjail_installmanpages}" ]; then
+    echo "Note: From FreeBSD 9.0 man pages are part of the base package"
+    unset ezjail_installmanpages
+  fi
 
   # Normally fulljail should be renamed by past ezjail-admin commands.
   # However those may have failed
-- 
cgit v1.2.3