Changeset 694 in ProjectBuilder for projects/fossology


Ignore:
Timestamp:
Feb 17, 2009, 2:34:30 PM (15 years ago)
Author:
Bruno Cornec
Message:

Fixes for fossology build on centos 5

Location:
projects/fossology/pbconf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec

    r688 r694  
    1212#PBPATCHSRC
    1313BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
    14 Requires:       postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd PBDEP
     14Requires:       postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd which PBDEP
    1515BuildRequires:  postgresql-devel libxml2 gcc make perl PBBUILDDEP
    1616Summary:        FOSSology is a licenses exploration tool
     
    5959</Directory>
    6060EOF
     61cp utils/fo-cleanold $RPM_BUILD_ROOT/%{_usr}/lib/PBPROJ/
    6162
    6263#rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/default/PBPROJ
     
    9596    echo "kernel.shmmax=512000000" >> /etc/sysctl.conf
    9697fi
    97 # Adjust postgresql config (described in detail in section 2.1.4)
    98 #  266 > #hba_file = 'ConfigDir/pg_hba.conf'    # host-based authentication file
    99 #  267 > #ident_file = 'ConfigDir/pg_ident.conf'    # IDENT configuration file
    100 #  268 > #external_pid_file = '(none)'      # write an extra pid file
    101 #  269 > listen_addresses = '*'
    102 #  270 > max_connections = 50
    103 #  271 > #shared_buffers = 1000     # min 16 or max_connections*2, 8KB each
    104 #  272 > shared_buffers = 32768
    105 #  273 > work_mem = 10240 
    106 #  274 > max_fsm_pages = 100000     # min max_fsm_relations*16, 6 bytes each
    107 #  275 > fsync = off   
    108 #  276 > full_page_writes = off     #recover from partial page writes
    109 #  277 > commit_delay = 1000
    110 #  278 > effective_cache_size = 25000
    111 #  279 > log_min_duration_statement = -1    # -1 is disabled, 0 logs all statements
    112 #  280 > #log_line_prefix = ''          # Special values:
     98
     99if [ ! -f /usr/share/pgsql/postgresql.conf ]; then
     100    cp /usr/share/pgsql/postgresql.conf.sample /usr/share/pgsql/postgresql.conf
     101   
     102    # Adjust postgresql config (described in detail in section 2.1.4) for Fossology
     103    cat >> /usr/share/pgsql/postgresql.conf << EOF
     104listen_addresses = '*'
     105max_connections = 50
     106shared_buffers = 32768
     107work_mem = 10240 
     108max_fsm_pages = 100000          # min max_fsm_relations*16, 6 bytes each
     109fsync = off   
     110full_page_writes = off          # recover from partial page writes
     111commit_delay = 1000
     112effective_cache_size = 25000
     113log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
     114log_line_prefix = '%t %h %c'    # prepend a time stamp to all log entries
     115EOF
     116else
     117    echo "Please check that your postgresql configuration is aligned with fossology recommendations at section 2.1.4 of /usr/share/doc/fossology*/INSTALL"
     118fi
     119
     120# Check postgresql is running
     121LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop
     122if [ $? -eq 0 ]; then
     123    /etc/init.d/postgresql start
     124else
     125    /etc/init.d/postgresql reload
     126fi
    113127
    114128# Adjust PHP config (described in detail in section 2.1.5)
     
    133147
    134148# Add apache config for fossology (described in detail in section 2.1.6) - done in install
    135 /etc/init.d/httpd reload
     149LANGUAGE=C /etc/init.d/httpd status 2>&1 | grep -q stop
     150if [ $? -eq 0 ]; then
     151    /etc/init.d/httpd start
     152else
     153    /etc/init.d/httpd reload
     154fi
    136155
    137156# Run the postinstall script
     
    152171chkconfig --del PBPROJ 2>&1 > /dev/null
    153172
     173# We should do some cleanup here (fossy account ...)
     174/usr/lib/PBPROJ/fo-cleanold
     175userdel fossy
     176groupdel fossy
     177
    154178%changelog
    155179PBLOG
  • projects/fossology/pbconf/trunk/pbfilter/centos.pbf

    r688 r694  
    1414
    1515# PBDEP is replaced by the list of dependencies
    16 filter PBDEP = file
     16filter PBDEP = file postgresql-server
    1717
    1818# PBBUILDDEP is replaced by the list of build dependencies
     
    2626#filter PBOBS =
    2727
     28PBPHPINI = /etc/php.ini
Note: See TracChangeset for help on using the changeset viewer.