Differences between version 2 and previous revision of KnowledgeBase/FreeBSD/MakeUpdate.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 2 Last edited on Sunday, 10 January 2010 12:09:58 by CyberLeo Revert
Older page: version 1 Last edited on Sunday, 10 January 2010 12:00:43 by CyberLeo Revert
@@ -1,15 +1,29 @@
-Populate /root/sup with supfiles copied from /usr/share/examples/cvsup 
+Populate /root/sups with supfiles copied from /usr/share/examples/cvsup 
 <code brush=bash> 
-mkdir -p /root/sup  
-cp /usr/share/examples/cvsup/ports-supfile /root/sup /ports.sup  
-cp /usr/share/examples/cvsup/stable-supfile /root/sup /RELENG_8_0.sup 
+mkdir -p /root/sups  
+cp /usr/share/examples/cvsup/ports-supfile /root/sups /ports.sup  
+cp /usr/share/examples/cvsup/stable-supfile /root/sups /RELENG_8_0.sup 
 </code> 
  
 Patch the supfiles to indicate your server du jour 
 <code brush=bash> 
 suptag="RELENG_8_0" 
 supsrv="cvsup14.FreeBSD.org" 
  
-sed -e "s/^\(\*default host=\).*$/\1${supsrv}/g" -e "s/^\(\*default release=cvs tag=\).*$/\1${suptag}/g" -i /root/sup /RELENG_8_0.sup  
-sed -e "s/^\(\*default host=\).*$/\1${supsrv}/g" -i /root/sup /ports.sup 
+sed -e "s/^\(\*default host=\).*$/\1${supsrv}/g" -e "s/^\(\*default release=cvs tag=\).*$/\1${suptag}/g" -i /root/sups /RELENG_8_0.sup  
+sed -e "s/^\(\*default host=\).*$/\1${supsrv}/g" -i /root/sups /ports.sup 
 </code> 
+  
+Patch make.conf to indicate your desire to use sup update  
+<code brush=bash>  
+cat <<EOF >> /etc/make.conf  
+  
+# SUP Update  
+SUP_UPDATE=yes  
+SUP=/usr/bin/csup  
+SUPFILE=/root/sups/RELENG_8_0.sup  
+PORTSSUPFILE=/root/sups/ports.sup  
+EOF  
+</code>  
+  
+Now you can issue a simple 'make update' from within /usr/src or /usr/ports to automatically refresh the sources via cvsup  

version 2

Populate /root/sups with supfiles copied from /usr/share/examples/cvsup

mkdir -p /root/sups
cp /usr/share/examples/cvsup/ports-supfile /root/sups/ports.sup
cp /usr/share/examples/cvsup/stable-supfile /root/sups/RELENG_8_0.sup

Patch the supfiles to indicate your server du jour

suptag="RELENG_8_0"
supsrv="cvsup14.FreeBSD.org"

sed -e "s/^\(\*default host=\).*$/\1${supsrv}/g" -e "s/^\(\*default release=cvs tag=\).*$/\1${suptag}/g" -i /root/sups/RELENG_8_0.sup
sed -e "s/^\(\*default host=\).*$/\1${supsrv}/g" -i /root/sups/ports.sup

Patch make.conf to indicate your desire to use sup update

cat <<EOF >> /etc/make.conf

# SUP Update
SUP_UPDATE=yes
SUP=/usr/bin/csup
SUPFILE=/root/sups/RELENG_8_0.sup
PORTSSUPFILE=/root/sups/ports.sup
EOF

Now you can issue a simple 'make update' from within /usr/src or /usr/ports to automatically refresh the sources via cvsup