2016-08-27 02:14:26 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pretty-hostname
|
|
|
|
PKG_VERSION:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/pretty-hostname
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
|
|
|
DEPENDS:=+uci
|
2016-08-27 17:28:04 +02:00
|
|
|
TITLE:=Manage a pretty hostname in addition to the actual one
|
2016-08-27 02:14:26 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pretty-hostname/install
|
|
|
|
$(INSTALL_DIR) $(1)/bin
|
|
|
|
$(INSTALL_BIN) ./files/pretty-hostname $(1)/bin/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(INSTALL_DATA) ./files/pretty_hostname.lua $(1)/usr/lib/lua/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pretty-hostname))
|