X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Fsubversion;h=822867f218dd0626a493d4e2699143519ec7e5ca;hb=f920c7ef750f2163b9e407cc453b192ede2c185a;hp=8a6e0aac747cec0b2f1098edf1668d08eb88dc4c;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/subversion b/stage3/pkg/subversion index 8a6e0aa..822867f 100644 --- a/stage3/pkg/subversion +++ b/stage3/pkg/subversion @@ -1,35 +1,16 @@ -#!/bin/sh -set -o errexit - -# First argument of this script is the package name - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list - -# Applying patches (if any) -apply_patches ${1} - -cd ${LFS_TMP}/${1}-build -../${1}/configure \ - --prefix=/usr \ - --with-apxs=/usr/sbin/apxs \ - --without-berkeley-db -make -make install - -cd ${LFS_TMP}/${1} -rm doc/doxygen.conf -find doc -type d -exec chmod 755 {} \; -find doc -type f -exec chmod 644 {} \; -install -v -m755 -d /usr/share/doc/${1} -cp -v -R doc/* /usr/share/doc/${1} - -# Creating repositories directory -mkdir -p /srv/svn -chown ${APACHE_USER}:${APACHE_USER} /srv/svn - -ldconfig - -exit $? +#!/bin/bash + +SVN_USER=svn + +hvconfig_pre() +{ + groupadd -f ${SVN_USER} + hv_useradd -c SvnServer -d /dev/null -g ${SVN_USER} -s /bin/false ${SVN_USER} +} + +hvbuild_post() +{ + # Creating repositories directory + mkdir -p /srv/svn + chown ${SVN_USER}:${SVN_USER} /srv/svn +}