You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							34 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							34 lines
						
					
					
						
							1.0 KiB
						
					
					
				
								################################################################################
							 | 
						|
								#
							 | 
						|
								# sg3_utils
							 | 
						|
								#
							 | 
						|
								################################################################################
							 | 
						|
								
							 | 
						|
								SG3_UTILS_VERSION = 1.47
							 | 
						|
								SG3_UTILS_DIR = sg3_utils-$(SG3_UTILS_VERSION)
							 | 
						|
								SG3_UTILS_SOURCE = sg3_utils-$(SG3_UTILS_VERSION).tar.xz
							 | 
						|
								SG3_UTILS_SITE = http://sg.danny.cz/sg/p
							 | 
						|
								
							 | 
						|
								SG3_UTILS_CONF_OPTS = \
							 | 
						|
									--bindir=$(bindir).$(@F)
							 | 
						|
								
							 | 
						|
								SG3_UTILS_BINARIES = sg_start
							 | 
						|
								
							 | 
						|
								define SG3_UTILS_INSTALL_BINARIES
							 | 
						|
									$(foreach binary,$($(PKG)_BINARIES),\
							 | 
						|
										rm -f $(TARGET_bindir)/$(binary); \
							 | 
						|
										$(INSTALL_EXEC) -D $(TARGET_bindir).$(@F)/$(binary) $(TARGET_bindir)/$(binary); \
							 | 
						|
										rm -f $(TARGET_bindir).$(@F)/$(binary)$(sep) \
							 | 
						|
									)
							 | 
						|
									$(TARGET_RM) $(TARGET_bindir).$(@F)
							 | 
						|
								endef
							 | 
						|
								SG3_UTILS_TARGET_FINALIZE_HOOKS += SG3_UTILS_INSTALL_BINARIES
							 | 
						|
								
							 | 
						|
								define SG3_UTILS_INSTALL_SDX_INIT
							 | 
						|
									$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/sdX.init $(TARGET_sysconfdir)/init.d/sdX
							 | 
						|
									$(UPDATE-RC.D) sdX stop 97 0 6 .
							 | 
						|
								endef
							 | 
						|
								SG3_UTILS_TARGET_FINALIZE_HOOKS += SG3_UTILS_INSTALL_SDX_INIT
							 | 
						|
								
							 | 
						|
								sg3_utils: | $(TARGET_DIR)
							 | 
						|
									$(call autotools-package)
							 | 
						|
								
							 |