| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -41,12 +41,21 @@ logdir="$localstatedir/log/$pkg" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					var_append confopt ' ' "--http-log-path=$logdir/access.log" | 
					 | 
					 | 
					 | 
					var_append confopt ' ' "--http-log-path=$logdir/access.log" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					var_append confopt ' ' "--error-log-path=$logdir/error.log" | 
					 | 
					 | 
					 | 
					var_append confopt ' ' "--error-log-path=$logdir/error.log" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# ssl support | 
					 | 
					 | 
					 | 
					# --with- with dependency | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if pkginstalled openssl; then | 
					 | 
					 | 
					 | 
					for x in openssl:ssl libgd:image_filter zlib:gzip_static; do | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						var_append confopt ' ' "--with-http_ssl_module" | 
					 | 
					 | 
					 | 
						if pkginstalled "${x%:*}"; then | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					fi | 
					 | 
					 | 
					 | 
							var_append confopt ' ' "--with-http_${x#*:}_module" | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						fi | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					done | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					# --without- because of dependency | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					for x in pcre:http_rewrite_module openssl:http-cache; do | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						if ! pkginstalled "${x%:*}"; then | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							var_append confopt ' ' "--without-${x#*:}" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						fi | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					done | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# add some optional modules not built by default | 
					 | 
					 | 
					 | 
					# --with- without dependency | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					for x in stub_status flv realip gzip_static image_filter; do | 
					 | 
					 | 
					 | 
					for x in stub_status flv realip; do | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						var_append confopt ' ' "--with-http_${x}_module" | 
					 | 
					 | 
					 | 
						var_append confopt ' ' "--with-http_${x}_module" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					done | 
					 | 
					 | 
					 | 
					done | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
  |