Changeset 603 in ProjectBuilder for projects/fossology


Ignore:
Timestamp:
Oct 28, 2008, 12:35:29 AM (16 years ago)
Author:
Bruno Cornec
Message:

Fossology improvements (Variables for make setup)

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

Legend:

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

    r602 r603  
    1717#PBPATCHSRC
    1818BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
    19 Requires:       postgresql php php-pear php-pgsql file-libs libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd PBDEP
    20 BuildRequires:  postgresql-devel file-libs libxml2 gcc make perl PBBUILDDEP
     19Requires:       postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd PBDEP
     20BuildRequires:  postgresql-devel libxml2 gcc make perl PBBUILDDEP
    2121
    2222%description
     
    3131
    3232%build
    33 make %{?_smp_mflags}
     33make %{?_smp_mflags} SYSCONFDIR=%{_sysconfdir}
    3434
    3535%install
    3636%{__rm} -rf $RPM_BUILD_ROOT
    37 make DESTDIR=$RPM_BUILD_ROOT install
     37make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr} SYSCONFDIR=%{_sysconfdir} LOCALSTATEDIR=%{_var} install
    3838cat > $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/fossology.conf << EOF
    3939Alias /repo/ /usr/share/fossology/www/
     
    5555%defattr(-,root,root)
    5656%doc ChangeLog
    57 %doc INSTALL COPYING README AUTHORS NEWS
     57%doc COPYING COPYING.LGPL HACKING README INSTALL INSTALL.multi LICENSE
     58#AUTHORS NEWS
     59%dir %{_datadir}/*
     60%dir %{_localstatedir}/*
     61%dir %{_libexecdir}/*
     62%dir %{_sysconfdir}/fossology
     63%{_sysconfdir}/httpd/conf.d/*.conf
     64%{_sysconfdir}/cron.d/*
     65%{_bindir}/*
     66%{_mandir}/man1/*
    5867
    5968%post
     
    6776fi
    6877# Adjust postgresql config (described in detail in section 2.1.4)
    69 266 > #hba_file = 'ConfigDir/pg_hba.conf'   # host-based authentication file
    70   267 > #ident_file = 'ConfigDir/pg_ident.conf' # IDENT configuration file
    71   268 > #external_pid_file = '(none)'       # write an extra pid file
    72   269 > listen_addresses = '*'
    73   270 > max_connections = 50
    74   271 > #shared_buffers = 1000      # min 16 or max_connections*2, 8KB each
    75   272 > shared_buffers = 32768
    76   273 > work_mem = 10240 
    77   274 > max_fsm_pages = 100000      # min max_fsm_relations*16, 6 bytes each
    78   275 > fsync = off   
    79   276 > full_page_writes = off      #recover from partial page writes
    80   277 > commit_delay = 1000
    81   278 > effective_cache_size = 25000
    82   279 > log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
    83   280 > #log_line_prefix = ''           # Special values:
     78266 > #hba_file = 'ConfigDir/pg_hba.conf'    # host-based authentication file
     79#  267 > #ident_file = 'ConfigDir/pg_ident.conf'    # IDENT configuration file
     80#  268 > #external_pid_file = '(none)'      # write an extra pid file
     81#  269 > listen_addresses = '*'
     82#  270 > max_connections = 50
     83#  271 > #shared_buffers = 1000     # min 16 or max_connections*2, 8KB each
     84#  272 > shared_buffers = 32768
     85#  273 > work_mem = 10240 
     86#  274 > max_fsm_pages = 100000     # min max_fsm_relations*16, 6 bytes each
     87#  275 > fsync = off   
     88#  276 > full_page_writes = off     #recover from partial page writes
     89#  277 > commit_delay = 1000
     90#  278 > effective_cache_size = 25000
     91#  279 > log_min_duration_statement = -1    # -1 is disabled, 0 logs all statements
     92#  280 > #log_line_prefix = ''          # Special values:
    8493
    8594# Adjust PHP config (described in detail in section 2.1.5)
    8695# /etc/php5/php.ini
    87  291   max_execution_time = 90
    88   292   memory_limit = 128M
    89   293   error_reporting  =  E_ALL & E_STRICT
    90   294   display_startup_errors = On
    91   295   log_errors = On
    92   296   log_errors_max_len = 0
    93   297   error_log = /var/log/php5.log
    94   298   post_max_size = 700M
    95   299   upload_max_filesize = 701M
    96   300 In the "[soap]" section add
    97   301   extension=pgsql.so
    98  303 You should also edit /etc/php5/cli/php.ini to include the fossology directory
    99   304 in the php command line interface path:
    100   305   include_path = ".:/usr/local/share/fossology/php:/usr/local/share/fossology/www"
     96# 291   max_execution_time = 90
     97#  292   memory_limit = 128M
     98#  293   error_reporting  =  E_ALL & E_STRICT
     99#  294   display_startup_errors = On
     100#  295   log_errors = On
     101#  296   log_errors_max_len = 0
     102#  297   error_log = /var/log/php5.log
     103#  298   post_max_size = 700M
     104#  299   upload_max_filesize = 701M
     105#  300 In the "[soap]" section add
     106#  301   extension=pgsql.so
     107# 303 You should also edit /etc/php5/cli/php.ini to include the fossology directory
     108#  304 in the php command line interface path:
     109#  305   include_path = ".:/usr/local/share/fossology/php:/usr/local/share/fossology/www"
    101110
    102111# Add apache config for fossology (described in detail in section 2.1.6) - done in install
  • projects/fossology/pbconf/trunk/pbfilter/fedora.pbf

    r602 r603  
    1414
    1515# PBDEP is replaced by the list of dependencies
    16 filter PBDEP = libextractor libextractor-plugins cabextract genisoimage upx sleuthkit
     16filter PBDEP = libextractor libextractor-plugins cabextract genisoimage upx sleuthkit file-libs
    1717
    1818# PBBUILDDEP is replaced by the list of build dependencies
    19 filter PBBUILDDEP = libextractor-devel
     19filter PBBUILDDEP = libextractor-devel file-libs
    2020
    2121# PBSUF is replaced by the package suffix ($pbsuf'} in code)
  • projects/fossology/pbconf/trunk/pbfilter/md.pbf

    r599 r603  
    77filter PBLIC = GPL
    88
     9# PBDEP is replaced by the list of dependencies
     10filter PBDEP = libextractor libextractor-plugins cabextract genisoimage upx sleuthkit
     11
     12# PBBUILDDEP is replaced by the list of build dependencies
     13filter PBBUILDDEP = perl-Text-Template subversion libextractor-devel
     14
  • projects/fossology/pbconf/trunk/pbfilter/rhel.pbf

    r602 r603  
    1414
    1515# PBDEP is replaced by the list of dependencies
    16 filter PBDEP =
     16filter PBDEP = file-libs
    1717
    1818# PBBUILDDEP is replaced by the list of build dependencies
    19 filter PBBUILDDEP = perl-Text-Template subversion
     19filter PBBUILDDEP = perl-Text-Template subversion file-libs
    2020
    2121# PBSUF is replaced by the package suffix ($pbsuf'} in code)
Note: See TracChangeset for help on using the changeset viewer.