[exim-cvs] cvs commit: exim/exim-course/rpm README exim-cour…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: exim-cvs
Asunto: [exim-cvs] cvs commit: exim/exim-course/rpm README exim-course.spec
fanf2 2006/07/17 16:04:38 BST

  Modified files:
    exim-course/rpm      README exim-course.spec 
  Log:
  version updates and some smtpc bits


  Revision  Changes    Path
  1.3       +10 -5     exim/exim-course/rpm/README
  1.5       +13 -5     exim/exim-course/rpm/exim-course.spec


  Index: README
  ===================================================================
  RCS file: /home/cvs/exim/exim-course/rpm/README,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -u -r1.2 -r1.3
  --- README    1 Jul 2005 22:44:19 -0000    1.2
  +++ README    17 Jul 2006 15:04:38 -0000    1.3
  @@ -1,8 +1,9 @@
  -The 2005 Exim course includes a practical part for the first time. We
  -will be using the Computing Service's Public Workstation Facility to
  -provide the basic infrastructure we require, i.e. some computers
  -running Linux - specifically, a slightly customized version of SUSE
  -9.3. This installation needs some further adaptation for the course:
  +The 2005 Exim course in Cambridge included a practical part for the
  +first time. We used the Computing Service's Public Workstation
  +Facility to provide the basic infrastructure we require, i.e. some
  +computers running Linux - specifically, a slightly customized version
  +of SUSE 9.3. This installation needed some further adaptation for the
  +course:


   Standard SUSE RPMs to add:
     clamav
  @@ -21,6 +22,10 @@
     install Exim source
     install eicar.com


+In 2006 the RPM was updated:
+ install the smtpc tool
+ create some test TLS certificates
+
This directory includes the source for the latter RPM.

-$Cambridge: exim/exim-course/rpm/README,v 1.2 2005/07/01 22:44:19 fanf2 Exp $
+$Cambridge: exim/exim-course/rpm/README,v 1.3 2006/07/17 15:04:38 fanf2 Exp $

  Index: exim-course.spec
  ===================================================================
  RCS file: /home/cvs/exim/exim-course/rpm/exim-course.spec,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -u -r1.4 -r1.5
  --- exim-course.spec    1 Jul 2005 23:07:23 -0000    1.4
  +++ exim-course.spec    17 Jul 2006 15:04:38 -0000    1.5
  @@ -1,16 +1,19 @@
  -# $Cambridge: exim/exim-course/rpm/exim-course.spec,v 1.4 2005/07/01 23:07:23 fanf2 Exp $
  +# $Cambridge: exim/exim-course/rpm/exim-course.spec,v 1.5 2006/07/17 15:04:38 fanf2 Exp $
   #
   # The RPM spec file for the package which customizes PWF Linux for the
   # Exim course. This is a little bit sketchy and assumes a working
   # environment rather than specifying the dependencies in full detail.


+# Check the version numbers in the header below,
+# and in the %install and %post sections.
+
# norootforbuild

   Name:         exim-course
   License:      GPL
   Group:        Development/Sources
   Autoreqprov:  on
  -Version:      4.52
  +Version:      4.62
   Release:      1
   Summary:      Customize PWF Linux for the Exim course
   BuildRoot:    %{_tmppath}/%{name}-%{version}-build
  @@ -38,12 +41,17 @@
   : do nothing


%build
-: do nothing
+wget http://www-uxsup.csx.cam.ac.uk/~fanf2/hermes/src/smtpc/smtpc-1.36.tar.gz
+tar fxz smtpc-1.36.tar.gz
+cd smtpc-1.36
+make
+pwd

%install
# ensure clean install tree
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
+mkdir -p ${RPM_BUILD_ROOT}/usr/local/bin
cat <<EOF >> ${RPM_BUILD_ROOT}/usr/sbin/sendmail
#!/bin/sh
echo sendmail is not installed
@@ -51,9 +59,9 @@
EOF
chmod +x ${RPM_BUILD_ROOT}/usr/sbin/sendmail

-# Please create a package with no files.
%files
/usr/sbin/sendmail
+/usr/local/bin/smtpc

   %pre
   : do nothing
  @@ -88,8 +96,8 @@
           peon
   # pre-fetch the Exim source code
   # NOTE: keep in sync with package version above!
  -wget -O /home/course/exim-4.52.tar.gz \
  -  ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-4.52.tar.gz
  +wget -O /home/course/exim-4.62.tar.gz \
  +  ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-4.62.tar.gz
   # create eicar.com
   echo > /home/course/eicar.com \
     'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*'