Skip to content

Commit

Permalink
doing a cleanup of the ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever committed Mar 15, 2011
1 parent 8e25494 commit e2457bc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/veewee/version.rb
@@ -1,3 +1,3 @@
module Veewee
VERSION = "0.1.15"
VERSION = "0.1.16"
end
21 changes: 3 additions & 18 deletions templates/freebsd-8.2-i386-pcbsdinstaller/pcinstall.fbg.cfg
Expand Up @@ -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
Expand All @@ -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
10 changes: 10 additions & 0 deletions templates/freebsd-8.2-i386-pcbsdinstaller/postinstall.sh
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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

Expand Down

0 comments on commit e2457bc

Please sign in to comment.