Changes

Jump to navigation Jump to search
m
Line 48: Line 48:     
===Setting up your RPM development environment===
 
===Setting up your RPM development environment===
 
+
{{Outdated}}
 
If you haven't done so already, set up an RPM development environment. If you are using an SME Server as your development environment, you will need to alter your user account to enable regular login. If you want to enable account "joe", then you would type the following commands from the root account:
 
If you haven't done so already, set up an RPM development environment. If you are using an SME Server as your development environment, you will need to alter your user account to enable regular login. If you want to enable account "joe", then you would type the following commands from the root account:
   Line 96: Line 96:     
===Building an RPM===
 
===Building an RPM===
 
+
{{Outdated}}
 
This section describes the process for building an RPM - step by step.
 
This section describes the process for building an RPM - step by step.
   Line 142: Line 142:  
  # The createlinks auxiliary file
 
  # The createlinks auxiliary file
 
  cp -p /tmp/createlinks .
 
  cp -p /tmp/createlinks .
 
+
 +
# The DB fragments should be created as files
 +
mkdir -p root/etc/e-smith/db/configuration/defaults/loggerdemo
 +
echo "service"  > !$/type
 +
echo "enabled"  > !$/status
 +
echo "10"      > !$/Interval
 +
 
Your directory structure should now look like this:  
 
Your directory structure should now look like this:  
   Line 150: Line 156:  
  ./root/etc/e-smith/web/functions/loggerdemo
 
  ./root/etc/e-smith/web/functions/loggerdemo
 
  ./root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/loggerdemo.pm
 
  ./root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/loggerdemo.pm
 +
./root/etc/e-smith/db/configuration/defaults/loggerdemo/{type|status|Interval}
 
  ./createlinks
 
  ./createlinks
   Line 185: Line 192:  
  %build
 
  %build
 
  perl createlinks
 
  perl createlinks
  −
## NEW ADVICE, DB fragments should be created as files
  −
DEFAULTS=root/etc/e-smith/db/configuration/defaults/loggerdemo
  −
mkdir -p $DEFAULTS
  −
  −
echo "service"  > $DEFAULTS/type
  −
echo "enabled"  > $DEFAULTS/status
  −
echo "10"      > $DEFAULTS/Interval
   
   
 
   
 
  %install
 
  %install

Navigation menu