export CVSROOT=/home/user/cvsroot
export REPO=myproject
export CVSUSER=mycvsuser

# init cvsroot to hold repositorie(s)
cvs -d $CVSROOT init

# create a $REPO from an existing project
# (don't forget to change into the directory first
# or the $REPO will be named $REPO/$REPO)
$cd project
$ls
file.c file.h
$cvs import -m "My Project" $REPO $CVSUSER start