mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 15:52:39 +08:00 
			
		
		
		
	Minor make install changes
This commit is contained in:
		
							parent
							
								
									e07054e8d0
								
							
						
					
					
						commit
						b88d07a1a7
					
				@ -74,8 +74,10 @@ MANDIR8		= $(DESTDIR)$(man_prefix)/man/man8
 | 
				
			|||||||
BINDIR		= $(DESTDIR)$(exec_prefix)/bin
 | 
					BINDIR		= $(DESTDIR)$(exec_prefix)/bin
 | 
				
			||||||
ETCDIR		= $(DESTDIR)$(prefix)/etc/3proxy
 | 
					ETCDIR		= $(DESTDIR)$(prefix)/etc/3proxy
 | 
				
			||||||
INITDDIR	= $(DESTDIR)$(prefix)/etc/init.d
 | 
					INITDDIR	= $(DESTDIR)$(prefix)/etc/init.d
 | 
				
			||||||
RUNDIR	= $(DESTDIR)$(prefix)/var/run/3proxy
 | 
					RUNBASE		= $(DESTDIR)$(prefix)/var/run
 | 
				
			||||||
LOGDIR	= $(DESTDIR)$(prefix)/var/log/3proxy
 | 
					RUNDIR		= $(RUNBASE)/3proxy
 | 
				
			||||||
 | 
					LOGBASE		= $(DESTDIR)$(prefix)/var/log
 | 
				
			||||||
 | 
					LOGDIR		= $(LOGBASE)/3proxy
 | 
				
			||||||
INSTALL_CFG_DEST = $(ETCDIR)/conf
 | 
					INSTALL_CFG_DEST = $(ETCDIR)/conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install-bin:
 | 
					install-bin:
 | 
				
			||||||
@ -115,7 +117,7 @@ install-man:
 | 
				
			|||||||
	$(INSTALL_DATA) man/*.8 $(MANDIR8)
 | 
						$(INSTALL_DATA) man/*.8 $(MANDIR8)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install-init:
 | 
					install-init:
 | 
				
			||||||
	if [ -f $(INITDIR) ]; then \
 | 
						if [ -d $(INITDIR) ]; then \
 | 
				
			||||||
	 $(INSTALL_BIN) $(INSTALL_INITD_SCRIPT) $(INITDDIR)/3proxy; \
 | 
						 $(INSTALL_BIN) $(INSTALL_INITD_SCRIPT) $(INITDDIR)/3proxy; \
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	if [ -f /usr/sbin/update-rc.d ]; then \
 | 
						if [ -f /usr/sbin/update-rc.d ]; then \
 | 
				
			||||||
@ -127,8 +129,10 @@ install-run:
 | 
				
			|||||||
	$(INSTALL_BIN) -d $(RUNDIR)
 | 
						$(INSTALL_BIN) -d $(RUNDIR)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install-log:
 | 
					install-log:
 | 
				
			||||||
	@if [ ! -d $(LOGDIR) ]; then \
 | 
						@if [ -d $(LOGBASE) ]; then \
 | 
				
			||||||
	 ln -s $(CHROOTDIR)/logs $(LOGDIR);\
 | 
						 @if [ ! -d $(LOGDIR) ]; then \
 | 
				
			||||||
 | 
						  ln -s $(CHROOTDIR)/logs $(LOGDIR);\
 | 
				
			||||||
 | 
						 fi
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install: install-chroot-dir install-bin install-etc install-log install-man install-run install-init
 | 
					install: install-chroot-dir install-bin install-etc install-log install-man install-run install-init
 | 
				
			||||||
@ -155,9 +159,9 @@ install: install-chroot-dir install-bin install-etc install-log install-man inst
 | 
				
			|||||||
	@echo to add users
 | 
						@echo to add users
 | 
				
			||||||
	@echo ""
 | 
						@echo ""
 | 
				
			||||||
	@echo Default config uses Google\'s DNS.
 | 
						@echo Default config uses Google\'s DNS.
 | 
				
			||||||
	@echo It\'s recommended to uss provider supplied DNS or install local recursor, e.g. pdns-recursor.
 | 
						@echo It\'s recommended to use provider supplied DNS or install local recursor, e.g. pdns-recursor.
 | 
				
			||||||
	@echo Configure preferred DNS in $(INSTALL_CFG_DEST)/3proxy.cfg.
 | 
						@echo Configure preferred DNS in $(INSTALL_CFG_DEST)/3proxy.cfg.
 | 
				
			||||||
	@if [ -f /usr/sbin/service ]; then \
 | 
						@if [ -f /usr/sbin/service ]; then \
 | 
				
			||||||
	 /usr/sbin/service 3proxy stop ;\
 | 
						 /usr/sbin/service 3proxy stop ;\
 | 
				
			||||||
	 /usr/sbin/service 3proxy start ;\
 | 
						 /usr/sbin/service 3proxy start ;\
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user