Changeset ab4735a7


Ignore:
Timestamp:
07/20/2014 05:46:43 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
7e9d2b38
Parents:
d3a4bcb
Message:

Convert svn server to systemd (untested).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13518 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • TODO

    rd3a4bcb rab4735a7  
    1 svn server
    21wpa_supplicant
    32provide systemd units for dhcpcd and dhclient
  • general/prog/prog.xml

    rd3a4bcb rab4735a7  
    5454  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="slang.xml"/>
    5555  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="subversion.xml"/>
    56   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="svnserver.xml"/>
     56  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="svnserver-systemd.xml"/>
    5757  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="swig.xml"/>
    5858  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/>
  • general/prog/svnserver-systemd.xml

    rd3a4bcb rab4735a7  
    8181<screen role="root"><userinput>groupadd -g 57 svntest &amp;&amp;
    8282usermod -G svntest -a svn</userinput></screen>
    83 
    84       <para>Additionally you should set <command>umask 002</command> while
    85       working with a repository so that all new files will be writable by
    86       owner and group. This is made mandatory by creating a wrapper script for
    87       <command>svn</command> and <command>svnserve</command>:</para>
    88 
    89 <screen role="root"><userinput>mv /usr/bin/svn /usr/bin/svn.orig &amp;&amp;
    90 mv /usr/bin/svnserve /usr/bin/svnserve.orig &amp;&amp;
    91 cat &gt;&gt; /usr/bin/svn &lt;&lt; "EOF"
    92 <literal>#!/bin/sh
    93 umask 002
    94 /usr/bin/svn.orig "$@"</literal>
    95 EOF
    96 cat &gt;&gt; /usr/bin/svnserve &lt;&lt; "EOF"
    97 <literal>#!/bin/sh
    98 umask 002
    99 /usr/bin/svnserve.orig "$@"</literal>
    100 EOF
    101 chmod 0755 /usr/bin/svn{,serve}</userinput></screen>
    102 
    103       <note>
    104         <para>If you use <application>Apache</application> for working with
    105         the repository over HTTP, even for anonymous access, you should wrap
    106         <command>/usr/sbin/httpd</command> in a similar script.</para>
    107       </note>
    10883
    10984    </sect3>
     
    276251EOF</userinput></screen> -->
    277252
    278       <para>To start the server at boot time, install the svn bootscript included
    279       in the <xref linkend="bootscripts"/> package.</para>
     253      <para>
     254        To start the <command>svnserve</command> daemon at boot,
     255        install the systemd unit from the <xref linkend="bootscripts"/>
     256        package by running the following command as the
     257        <systemitem class="username">root</systemitem> user:
     258      </para>
    280259
    281260      <indexterm zone="svnserver svnserver-init">
    282         <primary sortas="f-svn">svn</primary>
     261        <primary sortas="f-svnserve">svnserve</primary>
    283262      </indexterm>
    284263
    285 <screen role="root"><userinput>make install-svn</userinput></screen>
     264<screen role="root"><userinput>make install-svnserve</userinput></screen>
     265
     266      <para>Additionally, the instructions above require that svn server
     267      uses <command>umask 002</command> so that all new files will
     268      be writable by owner and group. This can be achieved by creating
     269      a systemd unit override file by running the following command:</para>
     270
     271<screen role="root"><userinput>mkdir -p /etc/systemd/system/svnserve.service.d
     272echo "UMask=0002" > /etc/systemd/system/svnserve.service.d/99-user.conf</userinput></screen>
     273
     274      <para>Options which are passed to <command>svnserve</command> daemon
     275      can be changed in <filename>/etc/default/svnserve</filename>.</para>
    286276
    287277    </sect3>
  • systemd-units/blfs/default/svnserve

    rd3a4bcb rab4735a7  
    44#
    55# Example: -r /srv/svn/repositories
    6 SVNSERVE_OPTS=""
     6SVNSERVE_OPTS="-r /srv/svn/repositories"
    77
    88# End /etc/default/svnserve
Note: See TracChangeset for help on using the changeset viewer.