mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	add usage back to spec file
now FOSS including all stuff
This commit is contained in:
		
							parent
							
								
									313b624373
								
							
						
					
					
						commit
						797d5ff9a7
					
				| @ -141,7 +141,7 @@ | |||||||
|     </zip> |     </zip> | ||||||
|   </target> |   </target> | ||||||
| 
 | 
 | ||||||
|   <target name="build-all" depends="build-opensource, build-ui, build-war-oss, compile-testclient"> |   <target name="build-all" depends="build-opensource, build-ui, build-war-oss, compile-testclient, compile-usage"> | ||||||
|   </target> |   </target> | ||||||
| 
 | 
 | ||||||
|   <target name="build-all-with-simulator" depends="build-all, compile-agent-simulator"> |   <target name="build-all-with-simulator" depends="build-all, compile-agent-simulator"> | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								cloud.spec
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								cloud.spec
									
									
									
									
									
								
							| @ -595,13 +595,13 @@ fi | |||||||
| 
 | 
 | ||||||
| %files usage | %files usage | ||||||
| %defattr(0644,root,root,0775) | %defattr(0644,root,root,0775) | ||||||
| #%{_javadir}/%{name}-usage.jar | %{_javadir}/%{name}-usage.jar | ||||||
| %attr(0755,root,root) %{_initrddir}/%{name}-usage | %attr(0755,root,root) %{_initrddir}/%{name}-usage | ||||||
| %attr(0755,root,root) %{_libexecdir}/usage-runner | %attr(0755,root,root) %{_libexecdir}/usage-runner | ||||||
| #%dir %attr(0770,root,%{name}) %{_localstatedir}/log/%{name}/usage | %dir %attr(0770,root,%{name}) %{_localstatedir}/log/%{name}/usage | ||||||
| #%{_sysconfdir}/%{name}/usage/usage-components.xml | %{_sysconfdir}/%{name}/usage/usage-components.xml | ||||||
| #%config(noreplace) %{_sysconfdir}/%{name}/usage/log4j-%{name}_usage.xml | %config(noreplace) %{_sysconfdir}/%{name}/usage/log4j-%{name}_usage.xml | ||||||
| #%config(noreplace) %attr(0640,root,%{name}) %{_sysconfdir}/%{name}/usage/db.properties | %config(noreplace) %attr(0640,root,%{name}) %{_sysconfdir}/%{name}/usage/db.properties | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
| * Mon May 3 2010 Manuel Amador (Rudd-O) <manuel@vmops.com> 1.9.12 | * Mon May 3 2010 Manuel Amador (Rudd-O) <manuel@vmops.com> 1.9.12 | ||||||
|  | |||||||
| @ -378,6 +378,13 @@ def build_test(): | |||||||
| 		bld.install_files('${SYSCONFDIR}/${PACKAGE}/test','conf/*', cwd = start_path) | 		bld.install_files('${SYSCONFDIR}/${PACKAGE}/test','conf/*', cwd = start_path) | ||||||
| 	Utils.pprint ("GREEN", "Installed files of test/") | 	Utils.pprint ("GREEN", "Installed files of test/") | ||||||
| 
 | 
 | ||||||
|  | def build_usage_dir (): | ||||||
|  | 	start_path = bld.path.find_dir ("usage") | ||||||
|  | 	bld.install_files_filtered("${USAGESYSCONFDIR}","conf/*", cwd = start_path) | ||||||
|  | 	bld.symlink_as("${USAGESYSCONFDIR}/db.properties", \ | ||||||
|  | 			Utils.subst_vars("${MSCONF}/db.properties",bld.env)) | ||||||
|  | 	Utils.pprint ("GREEN", "Installed files of usage/") | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Get started to execute here | # Get started to execute here | ||||||
| @ -402,6 +409,7 @@ build_plugins () | |||||||
| build_xml_api_description () | build_xml_api_description () | ||||||
| build_ovm () | build_ovm () | ||||||
| build_test() | build_test() | ||||||
|  | build_usage_dir() | ||||||
| 
 | 
 | ||||||
| # ====================== Magic! ========================================= | # ====================== Magic! ========================================= | ||||||
| bld.use_the_magic() | bld.use_the_magic() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user