<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Code</title><revhistory><revision><revnumber>10</revnumber><date>2012-09-03 08:43:51</date><authorinitials>ClintonEbadi</authorinitials><revremark>needs work</revremark></revision><revision><revnumber>9</revnumber><date>2011-04-23 00:41:01</date><authorinitials>ClintonEbadi</authorinitials><revremark>Revert to revision 7.</revremark></revision><revision><revnumber>8</revnumber><date>2011-04-22 23:47:50</date><authorinitials>50.22.197.98-static.reverse.softlayer.com</authorinitials><revremark>yMOS4V  &lt;a href=&quot;http://dqfibjcvxnpb.com/&quot;&gt;dqfibjcvxnpb&lt;/a&gt;</revremark></revision><revision><revnumber>7</revnumber><date>2011-04-22 23:13:22</date><authorinitials>ClintonEbadi</authorinitials><revremark>Revert to revision 4.</revremark></revision><revision><revnumber>6</revnumber><date>2011-04-22 12:35:50</date><authorinitials>cultureclub.travelrepublic.co.uk</authorinitials><revremark>Supeiror thinking demonstrated above. Thanks!</revremark></revision><revision><revnumber>5</revnumber><date>2011-04-21 16:53:31</date><authorinitials>188.160.0.100</authorinitials><revremark>Hey, that's the geratest! So with ll this brain power AWHFY?</revremark></revision><revision><revnumber>4</revnumber><date>2010-12-11 06:09:45</date><authorinitials>ClintonEbadi</authorinitials><revremark>todo</revremark></revision><revision><revnumber>3</revnumber><date>2010-03-29 03:55:52</date><authorinitials>noway.chem.columbia.edu</authorinitials><revremark>update for some git conversions</revremark></revision><revision><revnumber>2</revnumber><date>2010-03-12 23:16:25</date><authorinitials>RichardDarst</authorinitials><revremark>move portal stuff to it's own page.</revremark></revision><revision><revnumber>1</revnumber><date>2010-03-12 22:53:14</date><authorinitials>RichardDarst</authorinitials></revision></revhistory></articleinfo><para>This page document HCoop's code, where it is, how to access through a VCS and how to update live copies. </para><para>Repo locations: </para><itemizedlist><listitem><para>CVS is at sourceforge: <ulink url="http://hcoop.cvs.sourceforge.net/"/> </para></listitem><listitem><para>git is at hcoop's git: <ulink url="http://git.hcoop.net"/> </para></listitem></itemizedlist><section><title>git repos, and CVS-&gt;GIT conversion status</title><para>See git repos at <ulink url="http://git.hcoop.net/"/> .  Repos converted previously and not yet up to date are in <code>OLD/</code>.  Everything you see that is not in <code>OLD</code> is &quot;active&quot;.  The repos were converted using of the form <code>git-cvsimport -d:pserver:anonymous@hcoop.cvs.sourceforge.net:/cvsroot/ohcoop -C dbtool-git/ -v -i dbtool -A $PWD/cvs-author-conv-file</code>. </para><para>The repos you see in gitweb are &quot;live&quot;, that is, they are symlinks to the <code>.git</code> directories in the live locations.  Note: the gitweb update script will fail (and cause all hcoop's repos to not work) if you link to a <code>.git</code> directory not in AFS (it uses <code>fs la</code> to check for read permissions). </para><para>After a CVS repo is migrated, the <code>CVS</code> directories will be moved to <code>CVS_old</code> to prevent accidental usage. </para><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>debian/*.git </para></entry><entry colsep="1" rowsep="1"><para> local debian package sources.  NOTE: may not be up to date or used anymore. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>config/*.git </para></entry><entry colsep="1" rowsep="1"><para> Various daemon configurations.  NOTE: this may not be up to date </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>service/*.git</para></entry><entry colsep="1" rowsep="1"><para> Runit service info.  NOTE: this may not be up to date. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>gitweb.git   </para></entry><entry colsep="1" rowsep="1"><para> gitweb, <code>/var/local/lib/gitweb/.git/</code> is linked to this directory </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>portal.git   </para></entry><entry colsep="1" rowsep="1"><para> portal, linked to <code>~hcoop/portal/.git/</code> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>scripts.git  </para></entry><entry colsep="1" rowsep="1"><para> scripts, linked to <code>/afs/hcoop.net/common/etc/scripts/.git/</code> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>domtool.git  </para></entry><entry colsep="1" rowsep="1"><para> old domtool, no longer used.  Has no &quot;live&quot; location. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>domtool2.git </para></entry><entry colsep="1" rowsep="1"><para> current domtool.  Has no &quot;live&quot; location right now </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>fwtool.git   </para></entry><entry colsep="1" rowsep="1"><para> fwtool(?).  Has no &quot;live&quot; location right now. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>OLD/*.git    </para></entry><entry colsep="1" rowsep="1"><para> oblesete git repos, most of these have been superseded with newer repos. </para></entry></row></tbody></tgroup></informaltable><para>To Do: a script to mail admins@ when uncommitted changes are found. </para></section><section><title>Domtool</title><itemizedlist><listitem><para>CVS, <code>/domtool/</code> </para></listitem><listitem><para>lives in various admin user directories only. </para></listitem></itemizedlist></section><section><title>Portal</title><itemizedlist><listitem><para>in git, see above. </para></listitem><listitem><para>See <ulink url="https://wiki.hcoop.net/Code/DaemonAdmin/Portal#">DaemonAdmin/Portal</ulink> for more information on this  </para></listitem></itemizedlist></section><section><title>Local Debian packages</title><itemizedlist><listitem><para>Located in <code>/aft/hcoop.net/common/debian/PACKAGENAME/UPSTREAM_VERSION/</code>. </para></listitem><listitem><para>All under GIT control, see <code>hcoop/debian/*</code> </para></listitem><listitem><para>FIXME needs updating. </para></listitem></itemizedlist></section><section><title>Runit services</title><itemizedlist><listitem><para>git accessible at: <code>hcoop/service/*</code> </para></listitem><listitem><para>Live copies in git under /etc/service/*, but they are not linked. </para></listitem></itemizedlist></section><section><title>TODO</title><itemizedlist><listitem><para>Move repositories to a location in <code>/afs/hcoop.net/common</code> </para></listitem><listitem><para>Synchronize repositories to <ulink url="https://wiki.hcoop.net/Code/SourceForge#">SourceForge</ulink>  </para></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="https://wiki.hcoop.net/Code/CategorySystemAdministration#">CategorySystemAdministration</ulink> <ulink url="https://wiki.hcoop.net/Code/CategoryNeedsWork#">CategoryNeedsWork</ulink> </para></section></article>