|
Line
Link Here
|
| 0 |
-- dev-util/subversion/subversion-1.5.4.ebuild |
0 |
++ dev-util/subversion/subversion-1.5.4.ebuild |
|
Lines 318-342
Link Here
|
| 318 |
elog |
318 |
elog |
| 319 |
elog " - svnserve daemon: " |
319 |
elog " - svnserve daemon: " |
| 320 |
elog " 1. Edit /etc/conf.d/svnserve" |
320 |
elog " 1. Edit /etc/conf.d/svnserve" |
| 321 |
elog " 2. Start daemon: /etc/init.d/svnserve start" |
321 |
elog " 2. Fix the repository permissions (see \"Fixing the repository permissions\")" |
| 322 |
elog " 3. Make persistent: rc-update add svnserve default" |
322 |
elog " 3. Start daemon: /etc/init.d/svnserve start" |
|
|
323 |
elog " 4. Make persistent: rc-update add svnserve default" |
| 323 |
elog |
324 |
elog |
| 324 |
elog " - svnserve via xinetd:" |
325 |
elog " - svnserve via xinetd:" |
| 325 |
elog " 1. Edit /etc/xinetd.d/svnserve (remove disable line)" |
326 |
elog " 1. Edit /etc/xinetd.d/svnserve (remove disable line)" |
| 326 |
elog " 2. Restart xinetd.d: /etc/init.d/xinetd restart" |
327 |
elog " 2. Fix the repository permissions (see \"Fixing the repository permissions\")" |
|
|
328 |
elog " 3. Restart xinetd.d: /etc/init.d/xinetd restart" |
| 327 |
elog |
329 |
elog |
| 328 |
elog " - svn over ssh:" |
330 |
elog " - svn over ssh:" |
| 329 |
elog " 1. Fix the repository permissions:" |
331 |
elog " 1. Fix the repository permissions (see \"Fixing the repository permissions\")" |
|
|
332 |
elog " Additionally run:" |
| 330 |
elog " groupadd svnusers" |
333 |
elog " groupadd svnusers" |
| 331 |
elog " chown -R root:svnusers ${SVN_REPOS_LOC}/repos/" |
334 |
elog " chown -R root:svnusers ${SVN_REPOS_LOC}/repos" |
| 332 |
elog " chmod -R g-w ${SVN_REPOS_LOC}/repos" |
|
|
| 333 |
elog " chmod -R g+rw ${SVN_REPOS_LOC}/repos/db" |
| 334 |
elog " chmod -R g+rw ${SVN_REPOS_LOC}/repos/locks" |
| 335 |
elog " 2. Create an svnserve wrapper in /usr/local/bin to set the umask you" |
335 |
elog " 2. Create an svnserve wrapper in /usr/local/bin to set the umask you" |
| 336 |
elog " want, for example:" |
336 |
elog " want, for example:" |
| 337 |
elog " #!/bin/bash" |
337 |
elog " #!/bin/bash" |
| 338 |
elog " . /etc/conf.d/svnserve" |
338 |
elog " . /etc/conf.d/svnserve" |
| 339 |
elog " umask 002" |
339 |
elog " umask 007" |
| 340 |
elog " exec /usr/bin/svnserve \${SVNSERVE_OPTS} \"\$@\"" |
340 |
elog " exec /usr/bin/svnserve \${SVNSERVE_OPTS} \"\$@\"" |
| 341 |
elog |
341 |
elog |
| 342 |
|
342 |
|
|
Lines 345-353
Link Here
|
| 345 |
elog " 1. Edit /etc/conf.d/apache2 to include both \"-D DAV\" and \"-D SVN\"" |
345 |
elog " 1. Edit /etc/conf.d/apache2 to include both \"-D DAV\" and \"-D SVN\"" |
| 346 |
elog " 2. Create an htpasswd file:" |
346 |
elog " 2. Create an htpasswd file:" |
| 347 |
elog " htpasswd2 -m -c ${SVN_REPOS_LOC}/conf/svnusers USERNAME" |
347 |
elog " htpasswd2 -m -c ${SVN_REPOS_LOC}/conf/svnusers USERNAME" |
|
|
348 |
elog " 3. Fix the repository permissions (see \"Fixing the repository permissions\")" |
| 349 |
elog " 4. Restart Apache: /etc/init.d/apache2 restart" |
| 348 |
elog |
350 |
elog |
| 349 |
fi |
351 |
fi |
| 350 |
|
352 |
|
|
|
353 |
elog " Fixing the repository permissions:" |
| 354 |
elog " chmod -Rf go-rwx ${SVN_REPOS_LOC}/conf" |
| 355 |
elog " chmod -Rf g-w,o-rwx ${SVN_REPOS_LOC}/repos" |
| 356 |
elog " chmod -Rf g+rw ${SVN_REPOS_LOC}/repos/db" |
| 357 |
elog " chmod -Rf g+rw ${SVN_REPOS_LOC}/repos/locks" |
| 358 |
elog |
| 359 |
|
| 351 |
elog "If you intend to use svn-hot-backup, you can specify the number of" |
360 |
elog "If you intend to use svn-hot-backup, you can specify the number of" |
| 352 |
elog "backups to keep per repository by specifying an environment variable." |
361 |
elog "backups to keep per repository by specifying an environment variable." |
| 353 |
elog "If you want to keep e.g. 2 backups, do the following:" |
362 |
elog "If you want to keep e.g. 2 backups, do the following:" |
|
Lines 376-382
Link Here
|
| 376 |
einfo ">>> Initializing the database in ${ROOT}${SVN_REPOS_LOC} ..." |
385 |
einfo ">>> Initializing the database in ${ROOT}${SVN_REPOS_LOC} ..." |
| 377 |
if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]] ; then |
386 |
if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]] ; then |
| 378 |
echo "A Subversion repository already exists and I will not overwrite it." |
387 |
echo "A Subversion repository already exists and I will not overwrite it." |
| 379 |
echo "Delete ${ROOT}${SVN_REPOS_LOC}/repos first if you're sure you want to have a clean version." |
388 |
echo "Delete \"${ROOT}${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version." |
| 380 |
else |
389 |
else |
| 381 |
mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf" |
390 |
mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf" |
| 382 |
|
391 |
|
|
Lines 394-402
Link Here
|
| 394 |
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn" |
403 |
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn" |
| 395 |
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers" |
404 |
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers" |
| 396 |
enewgroup "${SVNSERVE_GROUP}" |
405 |
enewgroup "${SVNSERVE_GROUP}" |
| 397 |
enewuser "${SVNSERVE_USER}" -1 -1 ${SVN_REPOS_LOC} "${SVNSERVE_GROUP}" |
406 |
enewuser "${SVNSERVE_USER}" -1 -1 "${SVN_REPOS_LOC}" "${SVNSERVE_GROUP}" |
| 398 |
fi |
407 |
fi |
| 399 |
chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos" |
408 |
chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos" |
| 400 |
chmod -Rf 755 "${ROOT}${SVN_REPOS_LOC}/repos" |
409 |
chmod -Rf go-rwx "${ROOT}${SVN_REPOS_LOC}/conf" |
|
|
410 |
chmod -Rf o-rwx "${ROOT}${SVN_REPOS_LOC}/repos" |
| 401 |
fi |
411 |
fi |
| 402 |
} |
412 |
} |