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

Contents of /rpms/e-smith/sme9/e-smith.spec

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


Revision 1.3 - (show annotations) (download)
Sat Mar 9 22:31:35 2013 UTC (11 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-5_4_0-3_el6_sme
Changes since 1.2: +8 -3 lines
* Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 5.4.0-3.sme
- Ensure group www exists before user [SME: 7319]

1 # $Id: e-smith.spec,v 1.2 2013/03/06 20:19:43 slords Exp $
2
3 Summary: e-smith server and gateway
4 Name: e-smith
5 %define version 5.4.0
6 %define release 3
7 Version: %{version}
8 Release: %{release}%{?dist}
9 License: GPL
10 Group: Networking/Daemons
11 Source: %{name}-%{version}.tar.xz
12 BuildArch: noarch
13 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14 Prereq: /usr/sbin/useradd
15 AutoReqProv: no
16
17 %changelog
18 * Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 5.4.0-3.sme
19 - Ensure group www exists before user [SME: 7319]
20
21 * Wed Mar 6 2013 Shad L. Lords <slords@mail.com> 5.4.0-2.sme
22 - Fix pre script to make www and apache the same [SME: 7319]
23
24 * Fri Jan 25 2013 Shad L. Lords <slords@mail.com> 5.4.0-1.sme
25 - Roll new stream for sme9
26
27 * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 5.2.0-1.sme
28 - Roll new stream to separate sme7/sme8 trees [SME: 4633]
29
30 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
31 - Clean up spec so package can be built by koji/plague
32
33 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
34 - Update to new release naming. No functional changes.
35 - Make Packager generic
36
37 * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 4.2.0-08
38 - Bump release number only
39
40 * Fri Jan 14 2005 Charlie Brady <charlieb@e-smith.com> 4.2.0-07
41 - Re-add user and group creation. [MN00063589]
42
43 * Fri Aug 17 2001 gordonr
44 - [4.2.0-06]
45 - Autorebuild by rebuildRPM
46
47 * Fri Jul 27 2001 Charlie Brady <charlieb@e-smith.com>
48 - [4.2.0-05]
49 - Put defattr directive in the right spot.
50
51 * Fri Jul 6 2001 Peter Samuel <peters@e-smith.com>
52 - [4.2.0-04]
53 - Including GPL license with package
54
55 * Fri May 04 2001 Jason Miller <jmiller@e-smith.com>
56 - [4.2.0-03]
57 - Commenting out the harmful 'useradd' part of %pre section
58
59 * Thu Feb 8 2001 Adrian Chung <adrianc@e-smith.com>
60 - [4.2.0-02]
61 - Rolling release number for GPG signing.
62
63 * Thu Jan 25 2001 Peter Samuel <peters@e-smith.com>
64 - [4.2.0-01]
65 - Rolled version to 4.2.0 to indicate a stable release. Includes patches
66 upto 4.1.0-1
67
68 * Wed Dec 6 2000 Adrian Chung <adrianc@e-smith.com>
69 - Branched for 4.1 release to 4.1.0
70
71 * Mon Oct 16 2000 Charlie Brady <charlieb@e-smith.com>
72 - Need to add www user before trying to add admin user to
73 group www.
74
75 * Mon Oct 16 2000 Charlie Brady <charlieb@e-smith.com>
76 - Add %pre clause to add admin, www etc.
77
78 %description
79 e-smith server and gateway software. This is an empty
80 RPM provided so that upgrading e-smith 3.x -> e-smith 4.x
81 can work. Contents are now included in e-smith-base RPM.
82
83 %prep
84 %setup
85
86 %build
87
88 %pre
89 #--------------------------------------------------
90 # add admin, public and www user accounts
91 #--------------------------------------------------
92 /usr/sbin/groupadd \
93 -g 500 shared 2>/dev/null || :
94 /usr/sbin/groupadd \
95 -g 102 -o www 2>/dev/null || :
96 /usr/sbin/useradd \
97 -u 102 -g 102 -o -c 'e-smith web server' -d /home/e-smith \
98 -G shared -M -s /bin/false www 2>/dev/null || :
99 /usr/sbin/useradd \
100 -u 101 -c 'e-smith administrator' -d /home/e-smith \
101 -G shared,root,www -M -s /sbin/e-smith/console admin 2>/dev/null || :
102 /usr/sbin/useradd \
103 -u 103 -c 'e-smith guest' -d /home/e-smith \
104 -G shared -M -s /bin/false public 2>/dev/null || :
105 /usr/sbin/useradd \
106 -u 1002 -c 'sme log user' -d /var/log/smelog \
107 -M -s /bin/false smelog 2>/dev/null || :
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files
113 %defattr(-,root,root)
114 %doc COPYING

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