mirror of https://github.com/hak5/openwrt.git
add support for Package/<pkgname>/description - old format still supported, but deprecated
SVN-Revision: 5015lede-17.01
parent
af7a470f9c
commit
e3fb07bc78
|
@ -169,6 +169,8 @@ define BuildPackage
|
||||||
echo "Default: $(DEFAULT)";
|
echo "Default: $(DEFAULT)";
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(call shexport,Package/$(1)/description)
|
||||||
|
|
||||||
DUMPINFO += \
|
DUMPINFO += \
|
||||||
if [ "$$$$PREREQ_CHECK" = 1 ]; then echo "Prereq-Check: 1"; fi; \
|
if [ "$$$$PREREQ_CHECK" = 1 ]; then echo "Prereq-Check: 1"; fi; \
|
||||||
echo "Version: $(VERSION)"; \
|
echo "Version: $(VERSION)"; \
|
||||||
|
@ -176,7 +178,12 @@ define BuildPackage
|
||||||
echo "Build-Depends: $(PKG_BUILDDEP)"; \
|
echo "Build-Depends: $(PKG_BUILDDEP)"; \
|
||||||
echo "Category: $(CATEGORY)"; \
|
echo "Category: $(CATEGORY)"; \
|
||||||
echo "Title: $(TITLE)"; \
|
echo "Title: $(TITLE)"; \
|
||||||
|
if isset $(call shvar,Package/$(1)/description); then \
|
||||||
|
echo -n "Description: "; \
|
||||||
|
getvar $(call shvar,Package/$(1)/description); \
|
||||||
|
else \
|
||||||
echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \
|
echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \
|
||||||
|
fi;
|
||||||
|
|
||||||
ifneq ($(URL),)
|
ifneq ($(URL),)
|
||||||
DUMPINFO += \
|
DUMPINFO += \
|
||||||
|
|
|
@ -26,13 +26,15 @@ define Package/busybox
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
DEFAULT:=y
|
||||||
TITLE:=Core utilities for embedded Linux
|
TITLE:=Core utilities for embedded Linux
|
||||||
DESCRIPTION:=\
|
|
||||||
The Swiss Army Knife of embedded Linux. \\\
|
|
||||||
It slices, it dices, it makes Julian Fries.
|
|
||||||
URL:=http://busybox.net/
|
URL:=http://busybox.net/
|
||||||
MENU:=1
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/busybox/description
|
||||||
|
The Swiss Army Knife of embedded Linux.
|
||||||
|
It slices, it dices, it makes Julian Fries.
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/busybox/config
|
define Package/busybox/config
|
||||||
menu "Configuration"
|
menu "Configuration"
|
||||||
depends on PACKAGE_busybox
|
depends on PACKAGE_busybox
|
||||||
|
|
Loading…
Reference in New Issue