From: Florian Fainelli Date: Mon, 17 Aug 2009 10:14:25 +0000 (+0000) Subject: [package] ensure CONTROL directory is created (#5683) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=50c9eb935b20c7ca37be25badbf0f1f8d31e6373;hp=f35560f808a524d08b21089cc6ecad98e1968fd3 [package] ensure CONTROL directory is created (#5683) SVN-Revision: 17293 --- diff --git a/include/kernel.mk b/include/kernel.mk index 20377af3cf..cb62e63810 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -77,6 +77,7 @@ define ModuleAutoLoad $(3) \ if [ -n "$$$$$$$$modules" ]; then \ mkdir -p $(2)/etc/modules.d; \ + mkdir -p $(2)/CONTROL; \ echo "#!/bin/sh" > $(2)/CONTROL/postinst; \ echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \ echo ". /etc/functions.sh" >> $(2)/CONTROL/postinst; \ diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 4af052c37a..72d6d596b7 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -90,6 +90,7 @@ ifeq ($(DUMP),) $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT) $$(IDIR_$(1))/CONTROL/control $(call Package/$(1)/install,$$(IDIR_$(1))) + mkdir -p $$(IDIR_$(1))/CONTROL mkdir -p $(PACKAGE_DIR) -find $$(IDIR_$(1)) -name 'CVS' -o -name '.svn' -o -name '.#*' | $(XARGS) rm -rf $(RSTRIP) $$(IDIR_$(1))