# $Id: e-smith.spec,v 1.1 2013/01/25 17:18:00 slords Exp $ Summary: e-smith server and gateway Name: e-smith %define version 5.4.0 %define release 2 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.xz BuildArch: noarch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot Prereq: /usr/sbin/useradd AutoReqProv: no %changelog * Wed Mar 6 2013 Shad L. Lords 5.4.0-2.sme - Fix pre script to make www and apache the same [SME: 7319] * Fri Jan 25 2013 Shad L. Lords 5.4.0-1.sme - Roll new stream for sme9 * Tue Oct 7 2008 Shad L. Lords 5.2.0-1.sme - Roll new stream to separate sme7/sme8 trees [SME: 4633] * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Wed Nov 30 2005 Gordon Rowell 4.2.0-08 - Bump release number only * Fri Jan 14 2005 Charlie Brady 4.2.0-07 - Re-add user and group creation. [MN00063589] * Fri Aug 17 2001 gordonr - [4.2.0-06] - Autorebuild by rebuildRPM * Fri Jul 27 2001 Charlie Brady - [4.2.0-05] - Put defattr directive in the right spot. * Fri Jul 6 2001 Peter Samuel - [4.2.0-04] - Including GPL license with package * Fri May 04 2001 Jason Miller - [4.2.0-03] - Commenting out the harmful 'useradd' part of %pre section * Thu Feb 8 2001 Adrian Chung - [4.2.0-02] - Rolling release number for GPG signing. * Thu Jan 25 2001 Peter Samuel - [4.2.0-01] - Rolled version to 4.2.0 to indicate a stable release. Includes patches upto 4.1.0-1 * Wed Dec 6 2000 Adrian Chung - Branched for 4.1 release to 4.1.0 * Mon Oct 16 2000 Charlie Brady - Need to add www user before trying to add admin user to group www. * Mon Oct 16 2000 Charlie Brady - Add %pre clause to add admin, www etc. %description e-smith server and gateway software. This is an empty RPM provided so that upgrading e-smith 3.x -> e-smith 4.x can work. Contents are now included in e-smith-base RPM. %prep %setup %build %pre #-------------------------------------------------- # add admin, public and www user accounts #-------------------------------------------------- /usr/sbin/groupadd \ -g 500 shared 2>/dev/null || : /usr/sbin/useradd \ -u 102 -g 102 -c 'e-smith web server' -d /home/e-smith \ -G shared -M -s /bin/false www 2>/dev/null || : /usr/sbin/useradd \ -u 101 -c 'e-smith administrator' -d /home/e-smith \ -G shared,root,www -M -s /sbin/e-smith/console admin 2>/dev/null || : /usr/sbin/useradd \ -u 103 -c 'e-smith guest' -d /home/e-smith \ -G shared -M -s /bin/false public 2>/dev/null || : /usr/sbin/useradd \ -u 1002 -c 'sme log user' -d /var/log/smelog \ -M -s /bin/false smelog 2>/dev/null || : %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING