/[smeserver]/rpms/e-smith-base/sme10/e-smith-base.spec
ViewVC logotype

Diff of /rpms/e-smith-base/sme10/e-smith-base.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.44 by jcrisp, Fri Nov 22 14:51:52 2019 UTC Revision 1.45 by michel, Fri Dec 20 19:38:15 2019 UTC
# Line 1  Line 1 
1  # $Id: e-smith-base.spec,v 1.43 2019/01/23 04:18:17 jpp Exp $  # $Id: e-smith-base.spec,v 1.44 2019/11/22 14:51:52 jcrisp Exp $
2    
3  Summary: e-smith server and gateway - base module  Summary: e-smith server and gateway - base module
4  %define name e-smith-base  %define name e-smith-base
5  Name: %{name}  Name: %{name}
6  %define version 5.8.0  %define version 5.8.0
7  %define release 40  %define release 41
8  Version: %{version}  Version: %{version}
9  Release: %{release}%{?dist}  Release: %{release}%{?dist}
10  License: GPL  License: GPL
# Line 37  Patch23: e-smith-base-5.8.0-expand_route Line 37  Patch23: e-smith-base-5.8.0-expand_route
37  Patch24: e-smith-base-5.8.0.bz10519.xinet-cleaning.patch  Patch24: e-smith-base-5.8.0.bz10519.xinet-cleaning.patch
38  Patch25: e-smith-base-5.8.0-modify-default-city.patch  Patch25: e-smith-base-5.8.0-modify-default-city.patch
39  Patch26: e-smith-base-5.8.0.bz8876-set-system-name.patch  Patch26: e-smith-base-5.8.0.bz8876-set-system-name.patch
40    Patch27: e-smith-base-5.8.0-bz9677-suid_wrapper.patch
41    
42  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
43  Requires: pwauth  Requires: pwauth
# Line 83  AutoReqProv: no Line 84  AutoReqProv: no
84  e-smith server and gateway software - base module.  e-smith server and gateway software - base module.
85    
86  %changelog  %changelog
87    * Wed Dec 18 2019 Michel Begue <mab974@gmail.com> 5.8.0-41.sme
88    - Add a link to manager C wrapper to execute userpassword's cgi to replace perl-suid [SME: 9677]
89    
90  * Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 5.8.0-40.sme  * Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 5.8.0-40.sme
91  - fix SystemName [SME: 8876]  - fix SystemName [SME: 8876]
92    
# Line 1956  e-smith server and gateway software - ba Line 1960  e-smith server and gateway software - ba
1960  %patch24 -p1  %patch24 -p1
1961  %patch25 -p1  %patch25 -p1
1962  %patch26 -p1  %patch26 -p1
1963    %patch27 -p1
1964    
1965  %pre  %pre
1966  /sbin/e-smith/create-system-user smelastsys 2999 \  /sbin/e-smith/create-system-user smelastsys 2999 \
1967      'sme last system user marker' /tmp /bin/false      'sme last system user marker' /tmp /bin/false
1968    
1969  %post  %post
1970    LEXICONS=$(find /etc/e-smith/locale/*/etc/e-smith/web/panels/password/cgi-bin/userpassword -type f)
1971    
1972    for lexicon in $LEXICONS
1973    do
1974        if [ -f $lexicon ]
1975        then
1976            cd $(dirname "$lexicon")
1977            mv ./userpassword ../../../functions
1978        fi
1979    done
1980    
1981    
1982  %build  %build
1983    
1984  LEXICONS=$(find root/etc/e-smith/web/{functions,panels/password/cgi-bin} \  LEXICONS=$(find root/etc/e-smith/web/functions -type f | grep -v CVS)
     -type f | grep -v CVS)  
1985    
1986  for lexicon in $LEXICONS  for lexicon in $LEXICONS
1987  do  do
# Line 1982  perl createlinks Line 1997  perl createlinks
1997    
1998  gcc -o root/sbin/e-smith/console console_wrapper.c  gcc -o root/sbin/e-smith/console console_wrapper.c
1999    
2000    # Force creation of potentially empty directories
2001    mkdir -p root/etc/e-smith/web/panels/password/cgi-bin
2002    ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/password/cgi-bin/userpassword
2003    
2004  %install  %install
2005  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
2006  mkdir -p $RPM_BUILD_ROOT/etc/selinux  mkdir -p $RPM_BUILD_ROOT/etc/selinux


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed