You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_dtcl-cvs@tcl.apache.org by da...@apache.org on 2001/03/20 18:29:38 UTC

cvs commit: mod_dtcl README.RedHat mod_dtcl.spec

davidw      01/03/20 09:29:37

  Added:       .        README.RedHat mod_dtcl.spec
  Log:
  Adding Redhat build readme and spec file from Simon Greaves.
  
  Revision  Changes    Path
  1.1                  mod_dtcl/README.RedHat
  
  Index: README.RedHat
  ===================================================================
  The provided spec file has been tested on RedHat 6 and 7 systems where
  it seems to 'do the right thing', YMMV for other RPM based systems.
  
  Building and installing the RPM should be straightforward, something
  like:
  
    wget http://tcl.apache.org/mod_dtcl/download/mod_dtcl-0.10.0.tar.gz
    cp mod_dtcl-0.10.0.tar.gz /usr/src/redhat/SOURCES
    rpm -bb mod_dtcl.spec
    rpm -ivh /usr/src/redhat/RPMS/i386/mod_dtcl-0.10.0-1.i386.rpm
  
  Once installed, Apache must be configured manually. The basic
  RedHat/Apache configuration places the mod_dtcl directives directly
  into httpd.conf. The minimum you will require are:
  
  1) Open /etc/httpd/conf/httpd.conf in your favourite text editor and
     locate the big list of lines starting 'LoadModule'. At the end of 
     this list, append:
  
  <IfDefine HAVE_DTCL>
      LoadModule dtcl_module        modules/mod_dtcl.so
  </IfDefine>
  
     The <IfDefine> stuff causes the module to be loaded if it is
     present. This stuff is standard with RedHat 7.0, but (if I remember
     correctly) is _not_ in earlier versions. If that's the case for
     you, just add the 'LoadModule' line on it's own, just use what's
     there already as an example.
  
  
  2) Head on down the file until you find the corresponding 'AddModule'
     lines, append:
  
  <IfDefine HAVE_DTCL>
      AddModule mod_dtcl.c
  </IfDefine>
  
  
  3) Find the 'AddType' directives and append the following:
  
      <IfModule mod_dtcl.c>
          AddType application/x-httpd-tcl .ttml
      </IfModule>
  
  
  4) Save the file and restart apache:
  
     /etc/rc.d/init.d/httpd restart
  
  
  Put the examples.ttml file in your webspace and try it out, then go
  review the documentation to see what other config options you have.
  
  Simon
  -- 
  Simon.Greaves@bigfoot.com
  
  
  
  1.1                  mod_dtcl/mod_dtcl.spec
  
  Index: mod_dtcl.spec
  ===================================================================
  %define deftclver 8.3.1
  %define tclver %(rpm -q tcl --queryformat '%%{version}' 2> /dev/null || echo %{deftclver})
  
  Summary: Simple, fast Tcl server side scripting for Apache.
  Name: mod_dtcl
  Version: 0.10.0
  Release: 1
  Copyright: Freely distributable and usable
  Group: System Environment/Daemons
  Source:	http://tcl.apache.org/mod_dtcl/download/%{name}-%{version}.tar.gz
  URL: http://tcl.apache.org/mod_dtcl/
  Packager: Simon Greaves <Si...@bigfoot.com>
  BuildRoot: %{_tmppath}/%{name}-root
  Requires: webserver, tcl = %{tclver}
  BuildPrereq: apache-devel, tcl
  Prereq: tcl
  
  %description
  Server side Tcl scripting for Apache.
  
  The mod_dtcl Apache module enables the use of Tcl as an HTML-embedded
  scripting language, similar to PHP. It is fast, light, and lets you
  use the extensive codebase of existing Tcl code, on the web.
  
  %prep
  %setup -n %{name}
  sed -e 's/^INC=.*/INC=\/usr\/include\/apache/' < builddtcl.sh > rpm-builddtcl.sh
  
  %build
  sh ./rpm-builddtcl.sh shared
  
  %install
  [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  mkdir -p $RPM_BUILD_ROOT%{_libdir}/apache
  install -c -s -m755 mod_dtcl.so $RPM_BUILD_ROOT%{_libdir}/apache/
  
  %clean
  [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  
  %files
  %defattr(-,root,root)
  %doc README VERSION docs tests contrib
  %{_libdir}/apache/mod_dtcl.so
  
  %changelog
  * Fri Mar 16 2001 Simon Greaves <Si...@bigfoot.com>
  - mod_dtcl-0.9.3-1 packaged.