Edgewall Software

Changes between Initial Version and Version 1 of TracOnSlackware12


Ignore:
Timestamp:
Jul 26, 2007, 8:57:25 AM (17 years ago)
Author:
binstream@…
Comment:

Initial commit

Legend:

Unmodified
Added
Removed
Modified
  • TracOnSlackware12

    v1 v1  
     1= Prerequisites =
     2This software must be installed:
     3 * d/python
     4 * d/subversion
     5 * l/neon
     6 * n/httpd
     7 * l/arp
     8 * checkinstall (1.6.0, if you use 1.6.1, don't forget to add --install=yes into it's options list)
     9
     10= Installing software =
     11
     12== SQLite ==
     13Build and install:
     14{{{
     15configure --prefix=/usr --sysconfdir=/etc
     16make
     17checkinstall --type=slackware --arch=i686 --pkgname=sqlite --pkgrelease=trac1 --default
     18}}}
     19
     20== pysqlite ==
     21Build and install:
     22{{{
     23python setup.py build
     24python setup.py install
     25}}}
     26
     27
     28== SWIG ==
     29Build and install:
     30{{{
     31configure --prefix=/usr --sysconfdir=/etc
     32make
     33checkinstall --type=slackware --arch=i686 --pkgname=swig --pkgrelease=trac1 --default
     34}}}
     35
     36== Subversion ==
     37Subversion package need to be rebuild to enable SWIG.
     38 * Grab sources and !SlackBuild of original package (see source/d/subversion).
     39 * Patch subversion.!SlackBuild:
     40{{{
     41#!diff
     42--- subversion.SlackBuild       2007-07-23 17:11:46.000000000 +0700
     43+++ subversion.SlackBuild.trac  2007-07-26 13:30:21.000000000 +0700
     44@@ -5,7 +5,9 @@
     45 
     46 VERSION=1.4.4
     47 ARCH=${ARCH:-i486}
     48-BUILD=1
     49+BUILD=trac1
     50+
     51+PYTHON_VER=2.5
     52 
     53 if [ "$ARCH" = "i386" ]; then
     54   SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
     55@@ -47,9 +49,13 @@
     56   --with-pic \
     57   --with-ssl \
     58   --with-zlib \
     59+  --with-swig \
     60+  --enable-swig-bindings=python \
     61   --build=$ARCH-slackware-linux
     62 make -j4 || exit 1
     63+make swig-py
     64 make install DESTDIR=$PKG
     65+make install-swig-py DESTDIR=$PKG
     66 make install-docs DESTDIR=$PKG
     67 
     68 ( cd $PKG
     69@@ -82,6 +88,10 @@
     70   -exec chmod 644 {} \;
     71 )
     72 
     73+mkdir -p $PKG/usr/lib/python$PYTHON_VER/site-packages
     74+cp -R $PKG/usr/lib/svn-python/libsvn $PKG/usr/lib/python$PYTHON_VER/site-packages
     75+cp -R $PKG/usr/lib/svn-python/svn $PKG/usr/lib/python$PYTHON_VER/site-packages
     76+
     77 mkdir -p $PKG/install
     78 cat $CWD/slack-desc > $PKG/install/slack-desc
     79}}}
     80 * Run subversion.!SlackBuild
     81 * Go to /tmp
     82 * Do
     83{{{
     84upgradepkg subversion-1.4.4-i486-trac1.tgz
     85}}}
     86Note that version number and package revision can be different.
     87
     88== pycxx ==
     89Build and install:
     90{{
     91python setup.py install
     92}}
     93
     94== pysvn ==
     95Since Slackware lacks some crypto libraries, it's neccessary to patch Source/setup.py first:
     96{{{
     97#!diff
     98--- ./Source/setup.py-old       2007-05-30 19:56:04.000000000 +0700
     99+++ ./Source/setup.py   2007-05-30 19:56:12.000000000 +0700
     100@@ -300,7 +300,7 @@
     101 -lsvn_client-1 \
     102 -lsvn_diff-1 \
     103 -lsvn_repos-1 \
     104- -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lexpat -lneon
     105+-lcom_err -lresolv -lexpat -lneon
     106 
     107 #include pysvn_common.mak
     108 '''
     109}}}
     110
     111== Clearsilver ==
     112Build and install:
     113{{{
     114configure --prefix=/usr --sysconfdir=/etc --with-python=/usr/bin/python --without-ruby --without-java --without-csharp
     115make
     116checkinstall --type=slackware --arch=i686 --pkgname=clearsilver --pkgrelease=trac1 --default
     117}}}
     118
     119== trac ==
     120Build and install:
     121{{{
     122python setup.py build
     123python setup.py install
     124ldconfig
     125}}}
     126
     127= Notes on Python modules =
     128 * Check whether all the modules are installed into /usr/lib/python2.5/site-packages
     129 * Check whether /usr/lib/python is a symlink to /usr/lib/python2.5
     130
     131= Configuring =
     132Configuration of trac on Slackware is the same as for other Linux distros, there is no peculiarity.