summaryrefslogtreecommitdiff
path: root/openwrt/package/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-04-21 00:37:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-04-21 00:37:58 +0000
commit519c9c34e7ac20ccd86e6618eefe69f1eb2ef242 (patch)
tree74ee2b5c6d98f3a7851d61730656f6878422e859 /openwrt/package/rules.mk
parentcdd74416bc3e33e3f234859674747595631d092a (diff)
downloadmtk-20170518-519c9c34e7ac20ccd86e6618eefe69f1eb2ef242.zip
mtk-20170518-519c9c34e7ac20ccd86e6618eefe69f1eb2ef242.tar.gz
mtk-20170518-519c9c34e7ac20ccd86e6618eefe69f1eb2ef242.tar.bz2
clean up package titles/descriptions
SVN-Revision: 3686
Diffstat (limited to 'openwrt/package/rules.mk')
-rw-r--r--openwrt/package/rules.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk
index 2ff710a..5316deb 100644
--- a/openwrt/package/rules.mk
+++ b/openwrt/package/rules.mk
@@ -56,21 +56,26 @@ define BuildPackage
$(eval $(call Package/Default))
$(eval $(call Package/$(1)))
-ifeq ($$(TITLE),)
+ifeq ($(TITLE),)
$$(error Package $(1) has no TITLE)
endif
-ifeq ($$(CATEGORY),)
+ifeq ($(CATEGORY),)
$$(error Package $(1) has no CATEGORY)
endif
-ifeq ($$(PRIORITY),)
+ifeq ($(PRIORITY),)
$$(error Package $(1) has no PRIORITY)
endif
-ifeq ($$(VERSION),)
+ifeq ($(VERSION),)
$$(error Package $(1) has no VERSION)
endif
-ifeq ($$(PKGARCH),)
+ifeq ($(PKGARCH),)
PKGARCH:=$(ARCH)
endif
+$(eval
+ifeq ($(DESCRIPTION),)
+DESCRIPTION:=$(TITLE)
+endif
+)
IPKG_$(1):=$(PACKAGE_DIR)/$(1)_$(VERSION)_$(PKGARCH).ipk
IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(1)
@@ -128,8 +133,7 @@ $$(IDIR_$(1))/CONTROL/control: $(PKG_BUILD_DIR)/.prepared
echo "Priority: $(PRIORITY)" >> $$(IDIR_$(1))/CONTROL/control
echo "Maintainer: $(MAINTAINER)" >> $$(IDIR_$(1))/CONTROL/control
echo "Architecture: $(PKGARCH)" >> $$(IDIR_$(1))/CONTROL/control
- echo "Description: $(TITLE)" >> $$(IDIR_$(1))/CONTROL/control
- echo " $(DESCRIPTION)" | sed -e 's,\\,\n ,g' >> $$(IDIR_$(1))/CONTROL/control
+ echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n ,g' >> $$(IDIR_$(1))/CONTROL/control
chmod 644 $$(IDIR_$(1))/CONTROL/control
for file in conffiles preinst postinst prerm postrm; do \
[ -f ./ipkg/$(1).$$$$file ] && cp ./ipkg/$(1).$$$$file $$(IDIR_$(1))/CONTROL/$$$$file || true; \