mirror of https://github.com/hak5/openwrt-owl.git
check if the Package/$(NAME) template is defined before packaging or installing ipkg packages
SVN-Revision: 4144owl
parent
8660a05af1
commit
aa29fdce3d
|
@ -65,6 +65,7 @@ define Package/Default
|
||||||
SECTION:=opt
|
SECTION:=opt
|
||||||
CATEGORY:=Extra packages
|
CATEGORY:=Extra packages
|
||||||
DEPENDS:=
|
DEPENDS:=
|
||||||
|
EXTRA_DEPENDS:=
|
||||||
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
|
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
|
||||||
SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd})
|
SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd})
|
||||||
ifneq ($(PKG_VERSION),)
|
ifneq ($(PKG_VERSION),)
|
||||||
|
@ -113,12 +114,14 @@ define BuildPackage
|
||||||
IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(1)
|
IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(1)
|
||||||
INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list
|
INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list
|
||||||
|
|
||||||
ifeq ($(CONFIG_PACKAGE_$(1)),y)
|
ifdef Package/$(1)/install
|
||||||
install-targets: $$(INFO_$(1))
|
ifeq ($(CONFIG_PACKAGE_$(1)),y)
|
||||||
endif
|
install-targets: $$(INFO_$(1))
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),)
|
ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),)
|
||||||
compile-targets: $$(IPKG_$(1))
|
compile-targets: $$(IPKG_$(1))
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(FORCEREBUILD),y)
|
ifeq ($(FORCEREBUILD),y)
|
||||||
|
@ -182,7 +185,7 @@ define BuildPackage
|
||||||
for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \
|
for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \
|
||||||
DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \
|
DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \
|
||||||
done; \
|
done; \
|
||||||
echo "Depends: $$$$DEPENDS" >> $$(IDIR_$(1))/CONTROL/control; \
|
echo "Depends: $(EXTRA_DEPENDS) $$$$DEPENDS" >> $$(IDIR_$(1))/CONTROL/control; \
|
||||||
)
|
)
|
||||||
echo "Source: $(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control
|
echo "Source: $(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control
|
||||||
echo "Section: $(SECTION)" >> $$(IDIR_$(1))/CONTROL/control
|
echo "Section: $(SECTION)" >> $$(IDIR_$(1))/CONTROL/control
|
||||||
|
|
Loading…
Reference in New Issue