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

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

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


Revision 1.1 - (show annotations) (download)
Thu Feb 4 18:26:20 2016 UTC (8 years, 9 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-5_6_0-1_el7_sme, HEAD
sme10 branch

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

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