This assumes you have already created a repository. Let's say the repository on the server is /var/www/svn/repo, and you also also view the repository at http://example.com/svn/repo.
The svn import command is used to add files to the repository. In this example, the files below /opt/share are added to the repository.
svn import -m "adding files" /opt/share file:///var/www/svn/repo/share
Instead of importing using file, you can import using http or https just the same.
svn import -m "adding files" /opt/share http://example.com/svn/repo/share
Once imported, the directory and files will be accessible.