X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2FMakefile;h=d5212f09a84fd0867fc2498439b2b9de93bec59f;hp=a6b34be0f485c650971e1771de417ec6aa666cc6;hb=4e8a6d33f30c826fa13a20049fc160162c32b9fc;hpb=fcd13a7f41bbb4071f7e66e8a26b2918865c8ef6 diff --git a/package/Makefile b/package/Makefile index a6b34be0f4..d5212f09a8 100644 --- a/package/Makefile +++ b/package/Makefile @@ -143,6 +143,14 @@ $(curdir)/index: FORCE $(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages && \ gzip -9c Packages > Packages.gz; \ ); done +ifdef CONFIG_SIGNED_PACKAGES + @echo Signing package index... + @for d in $(PACKAGE_SUBDIRS); do ( \ + [ -d $(PACKAGE_DIR)/$$d ] && \ + cd $(PACKAGE_DIR)/$$d || continue; \ + $(STAGING_DIR_HOST)/bin/usign -S -m Packages -s $(BUILD_KEY); \ + ); done +else ifeq ($(call qstrip,$(CONFIG_OPKGSMIME_KEY)),) @echo Signing key has not been configured else @@ -161,6 +169,7 @@ else ); done endif endif +endif $(curdir)/preconfig: