summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2013-04-11 16:37:20 +0000
committererdgeist <erdgeist@erdgeist.org>2013-04-11 16:37:20 +0000
commit712a4cdb5468e03d861a822bdf01c07a590477a9 (patch)
tree17bfaf02b681cc2e4f67f398f3ab0c4da8197e3f /ezjail-admin
parentc8694ac703e989f239d6e16044c9ad20e061a5eb (diff)
Farewell CVS for ports. ezjail_portscvsroot is gone.
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin20
1 files changed, 5 insertions, 15 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 3099826..af62ae3 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -20,7 +20,6 @@ ezjail_jailcfgs="${ezjail_etc}/ezjail"
20: ${ezjail_jailtemp="${ezjail_jaildir}/ezjailtemp"} 20: ${ezjail_jailtemp="${ezjail_jaildir}/ezjailtemp"}
21: ${ezjail_flavours_dir="${ezjail_jaildir}/flavours"} 21: ${ezjail_flavours_dir="${ezjail_jaildir}/flavours"}
22: ${ezjail_archivedir="${ezjail_jaildir}/ezjail_archives"} 22: ${ezjail_archivedir="${ezjail_jaildir}/ezjail_archives"}
23: ${ezjail_portscvsroot="freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs"}
24: ${ezjail_sourcetree="/usr/src"} 23: ${ezjail_sourcetree="/usr/src"}
25: ${ezjail_uglyperlhack="YES"} 24: ${ezjail_uglyperlhack="YES"}
26: ${ezjail_default_execute="/usr/bin/login -f root"} 25: ${ezjail_default_execute="/usr/bin/login -f root"}
@@ -312,20 +311,11 @@ ezjail_splitworld() {
312# The user may want to have a ports tree in basejail 311# The user may want to have a ports tree in basejail
313ezjail_updateports () { 312ezjail_updateports () {
314 local _portsnap_fetch="fetch" 313 local _portsnap_fetch="fetch"
315 # if /usr/ports/CVS exists, assume cvs up is safe 314
316 # this is legacy 315 [ -z "$TERM" -o "$TERM" = "dumb" ] && _portsnap_fetch="cron"
317 if [ -f "${ezjail_jailbase}/usr/ports/CVS/Root" ]; then 316 portsnap ${_portsnap_fetch}
318 echo -n "Updating ports from "; cat "${ezjail_jailbase}/usr/ports/CVS/Root" 317 [ -d "${ezjail_jailbase}/usr/ports" ] && ezjail_portsnapaction="update"
319 echo "Warning: Upgrading legacy ports copy. Consider removing ${ezjail_jailbase}/usr/ports and use the new portsnap strategy instead." 318 portsnap -p "${ezjail_jailbase}/usr/ports" ${ezjail_portsnapaction:-"extract"} || exerr "Error: Updating ports failed."
320 echo "Gathering local information may take a while."
321 cd "${ezjail_jailbase}/usr/ports/" && cvs -d "${ezjail_portscvsroot}" up -Pd
322 else
323 [ -z "$TERM" -o "$TERM" = "dumb" ] && _portsnap_fetch="cron"
324 portsnap ${_portsnap_fetch}
325 [ -d "${ezjail_jailbase}/usr/ports" ] && ezjail_portsnapaction="update"
326 portsnap -p "${ezjail_jailbase}/usr/ports" ${ezjail_portsnapaction:-"extract"}
327 fi
328 [ $? -eq 0 ] || exerr "Error: Updating ports failed."
329} 319}
330 320
331# Try to fetch the list of releases the server provides 321# Try to fetch the list of releases the server provides