This removes PKG_VERSION and PKG_RELEASE from most Makefiles, as the value was never useful for Gluon packages; instead, PKG_VERSION is set to 1 in gluon.mk. It also removes two other weird definitions: - gluon-iptables-clamp-mss-to-pmtu replicating the old PKG_VERSION logic from gluon-core, but without the fixed PKG_BUILD_DIR to prevent unnessary rebuilds - gluon-hoodselector set GLUON_VERSION=3
		
			
				
	
	
		
			46 lines
		
	
	
		
			968 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			968 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # Copyright (C) 2012 Nils Schneider <nils at nilsschneider.net>
 | |
| # This is free software, licensed under the Apache 2.0 license.
 | |
| 
 | |
| include $(TOPDIR)/rules.mk
 | |
| 
 | |
| PKG_NAME:=gluon-setup-mode
 | |
| 
 | |
| include ../gluon.mk
 | |
| 
 | |
| define Package/gluon-setup-mode
 | |
|   TITLE:=Setup mode
 | |
|   DEPENDS:=+gluon-core +gluon-lock-password +ubus +dnsmasq
 | |
| endef
 | |
| 
 | |
| define Package/gluon-setup-mode/description
 | |
| 	Offline mode to perform basic setup in a secure manner.
 | |
| endef
 | |
| 
 | |
| define Package/gluon-setup-mode/conffiles
 | |
| /etc/config/gluon-setup-mode
 | |
| endef
 | |
| 
 | |
| init_links := \
 | |
| 	K89log \
 | |
| 	K98boot \
 | |
| 	K99umount \
 | |
| 	S00sysfixtime \
 | |
| 	S10boot \
 | |
| 	S10gluon-core-reconfigure \
 | |
| 	S10system \
 | |
| 	S11sysctl \
 | |
| 	S12log \
 | |
| 	S95done
 | |
| 
 | |
| define Package/gluon-setup-mode/install
 | |
| 	$(Gluon/Build/Install)
 | |
| 
 | |
| 	$(LN) S20network $(1)/lib/gluon/setup-mode/rc.d/K90network
 | |
| 
 | |
| 	for link in $(init_links); do \
 | |
| 		$(LN) "/etc/init.d/$$$${link:3}" "$(1)/lib/gluon/setup-mode/rc.d/$$$${link}"; \
 | |
| 	done
 | |
| endef
 | |
| 
 | |
| $(eval $(call BuildPackageGluon,gluon-setup-mode))
 |