Changeset 694 in ProjectBuilder for projects/fossology/pbconf
- Timestamp:
- Feb 17, 2009, 2:34:30 PM (16 years ago)
- Location:
- projects/fossology/pbconf/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec
r688 r694 12 12 #PBPATCHSRC 13 13 BuildRoot: %{_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 PBDEP14 Requires: postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd which PBDEP 15 15 BuildRequires: postgresql-devel libxml2 gcc make perl PBBUILDDEP 16 16 Summary: FOSSology is a licenses exploration tool … … 59 59 </Directory> 60 60 EOF 61 cp utils/fo-cleanold $RPM_BUILD_ROOT/%{_usr}/lib/PBPROJ/ 61 62 62 63 #rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/default/PBPROJ … … 95 96 echo "kernel.shmmax=512000000" >> /etc/sysctl.conf 96 97 fi 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 99 if [ ! -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 104 listen_addresses = '*' 105 max_connections = 50 106 shared_buffers = 32768 107 work_mem = 10240 108 max_fsm_pages = 100000 # min max_fsm_relations*16, 6 bytes each 109 fsync = off 110 full_page_writes = off # recover from partial page writes 111 commit_delay = 1000 112 effective_cache_size = 25000 113 log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements 114 log_line_prefix = '%t %h %c' # prepend a time stamp to all log entries 115 EOF 116 else 117 echo "Please check that your postgresql configuration is aligned with fossology recommendations at section 2.1.4 of /usr/share/doc/fossology*/INSTALL" 118 fi 119 120 # Check postgresql is running 121 LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop 122 if [ $? -eq 0 ]; then 123 /etc/init.d/postgresql start 124 else 125 /etc/init.d/postgresql reload 126 fi 113 127 114 128 # Adjust PHP config (described in detail in section 2.1.5) … … 133 147 134 148 # Add apache config for fossology (described in detail in section 2.1.6) - done in install 135 /etc/init.d/httpd reload 149 LANGUAGE=C /etc/init.d/httpd status 2>&1 | grep -q stop 150 if [ $? -eq 0 ]; then 151 /etc/init.d/httpd start 152 else 153 /etc/init.d/httpd reload 154 fi 136 155 137 156 # Run the postinstall script … … 152 171 chkconfig --del PBPROJ 2>&1 > /dev/null 153 172 173 # We should do some cleanup here (fossy account ...) 174 /usr/lib/PBPROJ/fo-cleanold 175 userdel fossy 176 groupdel fossy 177 154 178 %changelog 155 179 PBLOG -
projects/fossology/pbconf/trunk/pbfilter/centos.pbf
r688 r694 14 14 15 15 # PBDEP is replaced by the list of dependencies 16 filter PBDEP = file 16 filter PBDEP = file postgresql-server 17 17 18 18 # PBBUILDDEP is replaced by the list of build dependencies … … 26 26 #filter PBOBS = 27 27 28 PBPHPINI = /etc/php.ini
Note:
See TracChangeset
for help on using the changeset viewer.