X-Git-Url: http://git.onelab.eu/?p=plcrt.git;a=blobdiff_plain;f=plcrt.spec;h=ca956751fba7c4637bedcd026e3c3b7088f8449d;hp=84498e2c731bc049e084d4a41082a307bf2d9a8b;hb=0958d23852d17a8c3c8f8d4bf9e02c83587bf579;hpb=4c52fdad4a4f2e271d0915328699bba210e3983c diff --git a/plcrt.spec b/plcrt.spec index 84498e2..ca95675 100644 --- a/plcrt.spec +++ b/plcrt.spec @@ -6,7 +6,7 @@ %define name plcrt %define version 1.0 -%define taglevel 0 +%define taglevel 2 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} @@ -28,6 +28,7 @@ Group: Applications/System Requires: python Requires: perl Requires: rt3 +Requires: rt3-mailgate Requires: myplc %description @@ -68,12 +69,36 @@ if grep 'pam_loginuid.so' /etc/pam.d/crond ; then fi if ! grep '' /etc/planetlab/default_config.xml ; then - sed -i 's|| \n RT Configuration\n RT\n \n \n Enabled\n false\n Enable on this machine.\n \n \n Hostname\n localhost.localdomain\n The fully qualified hostname.\n \n \n IP Address\n \n The IP address of the RT server.\n \n \n \n |' /etc/planetlab/default_config.xml + sed -i 's|| \n RT Configuration\n RT\n \n \n Enabled\n false\n Enable on this machine.\n \n \n Hostname\n localhost.localdomain\n The fully qualified hostname.\n \n \n IP Address\n \n The IP address of the RT server.\n \n \n username\n root\n The user name for RT access.\n \n \n password\n password\n password to the rt user.\n \n \n \n |' /etc/planetlab/default_config.xml fi -plc-config --save /etc/planetlab/default_config.xml \ - --category plc_rt --variable enabled --value true +mkdir -p /etc/planetlab/configs +plc-config --category plc_rt --variable enabled --value true \ + --save /etc/planetlab/configs/site.xml /etc/planetlab/default_config.xml + +# NOTE: setup default values until myplc includes them by default. +plc-config --category plc_rt --variable host --value localhost.localdomain \ + --save /etc/planetlab/configs/site.xml /etc/planetlab/configs/site.xml +plc-config --category plc_rt --variable ip --value "" \ + --save /etc/planetlab/configs/site.xml /etc/planetlab/configs/site.xml +plc-config --category plc_rt --variable web_user --value root \ + --save /etc/planetlab/configs/site.xml /etc/planetlab/configs/site.xml +plc-config --category plc_rt --variable web_password --value password \ + --save /etc/planetlab/configs/site.xml /etc/planetlab/configs/site.xml + + +mkdir -p /var/log/rt3 +touch /var/log/rt3/rt.log +chown apache.apache /var/log/rt3/rt.log %changelog +* Tue Jun 30 2009 Stephen Soltesz - PLCRT-1.0-2 +- improved init setup +- added plcsh version of getadmins script to add users to RT's db. +- improved %post code for installation + +* Fri Jun 26 2009 Stephen Soltesz - PLCRT-1.0-1 +- trying to get the tag to work for new package. + * Thu Jun 26 2009 Stephen Soltesz - PLCRT-1.0-1 - initial addition.