add snmp
This commit is contained in:
		
							parent
							
								
									0fbce849e4
								
							
						
					
					
						commit
						a5e6705191
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@ -1,5 +1,5 @@
 | 
			
		||||
NAME = osixia/keepalived
 | 
			
		||||
VERSION = 1.3.5
 | 
			
		||||
VERSION = 1.3.5-1
 | 
			
		||||
 | 
			
		||||
.PHONY: all build build-nocache test tag_latest release
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -17,6 +17,7 @@ RUN apt-get -y update \
 | 
			
		||||
       libnl-genl-3-dev \
 | 
			
		||||
       libnl-route-3-dev \
 | 
			
		||||
       libnfnetlink-dev \
 | 
			
		||||
       libsnmp-dev \
 | 
			
		||||
       libssl-dev \
 | 
			
		||||
       make \
 | 
			
		||||
       pkg-config \
 | 
			
		||||
@ -24,7 +25,7 @@ RUN apt-get -y update \
 | 
			
		||||
    && mkdir -p /container/keepalived-sources \
 | 
			
		||||
    && tar -xzf keepalived.tar.gz --strip 1 -C /container/keepalived-sources \
 | 
			
		||||
    && cd container/keepalived-sources \
 | 
			
		||||
    && ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
 | 
			
		||||
    && ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build --enable-snmp \
 | 
			
		||||
    && make && make install \
 | 
			
		||||
    && cd - && mkdir -p /etc/keepalived \
 | 
			
		||||
    && apt-get remove -y --purge --auto-remove curl make gcc pkg-config \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user