Permalink
Browse files

doing a cleanup of the ports

  • Loading branch information...
1 parent 8e25494 commit e2457bc54d786a024b3bcdfe51637efc5a767672 @jedi4ever committed Mar 15, 2011
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- veewee (0.1.15)
+ veewee (0.1.16)
cucumber (= 0.8.5)
highline (~> 1.6.1)
net-ssh (~> 2.1.0)
View
@@ -1,3 +1,3 @@
module Veewee
- VERSION = "0.1.15"
+ VERSION = "0.1.16"
end
@@ -31,7 +31,9 @@ disk0-part=UFS+S 5629 /usr
commitDiskLabel
# List our components to install
-installComponents=ports,src
+# Src is only needed for the virtualbox extensions
+# installComponents=ports,src
+installComponents=ports
# Set the root pass
rootPass=vagrant
@@ -45,24 +47,7 @@ userHome=/home/vagrant
userGroups=wheel,operator
commitUser
-# This is executed in sh not in bash
-# 072 = '=' character
-# 042 = '"' character
-#runExtCommand=echo sshd_enable\\\072\\\042YES\\\042 >> $FSMNT/etc/rc.conf
-#runExtCommand=echo sshd_enable\=\"YES\" >> $FSMNT/etc/rc.conf
runExtCommand=/root/activate-ssh.sh
-# We can't run this because the chroot does not have network setup yet
-# http://sonicchicken.net/blog/wordpress/20090111/batch-port-install/
-# http://lists.freebsd.org/pipermail/freebsd-questions/2007-January/140301.html
-#runCommand=cd /usr/ports/security/sudo ; make install -DBATCH
-
# We temporary disable password checks , we promise to make up for it later
runCommand=sed -i -e 's@auth.*include.*system@@' /etc/pam.d/su
-
-#/usr/local/etc/sudoers
-## Same thing without a password
-# %wheel ALL=(ALL) NOPASSWD: ALL
-
-## Uncomment to allow members of group sudo to execute any command
-# %sudo ALL=(ALL) ALL
@@ -29,6 +29,12 @@ cd /home/vagrant/.ssh
/usr/local/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
chown -R vagrant /home/vagrant/.ssh
+# Cleaning portstree to save space
+# http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
+cd /usr/ports/ports-mgmt/portupgrade
+make install -DBATCH clean
+
+portsclean -C
# As sharedfolders are not in defaults ports tree
# We will use vagrant via NFS
@@ -42,6 +48,7 @@ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
# Restore correct su permissions
# I'll leave that up to the reader :)
+echo "=============================================================================="
echo "NOTE: FreeBSD - Vagrant"
echo "When using this basebox you need to do some special stuff in your Vagrantfile"
echo "1) Include the correct system"
@@ -52,6 +59,9 @@ echo "3) Enable HostOnly network"
echo " config.vm.network ...."
echo "4) Use nfs instead of shared folders"
echo " :nfs => true"
+echo "============================================================================="
+
+
exit

0 comments on commit e2457bc

Please sign in to comment.