X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d5dc9a90873047ab07107833a950320ae3b2b41f..dbb9afa67c7f76c2d76de323f37d1e9a64473494:/package/base-files/Makefile?ds=sidebyside diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 9f745aa17..2a8ad7050 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -72,12 +72,12 @@ endef define Package/libgcc $(call Package/gcc/Default) TITLE:=GCC support library - DEPENDS:=@!TARGET_avr32 @!NATIVE_TOOLCHAIN + DEPENDS+=@!TARGET_avr32 endef define Package/libssp $(call Package/gcc/Default) - DEPENDS:=@SSP_SUPPORT + DEPENDS+=@SSP_SUPPORT TITLE:=GCC support library endef @@ -85,7 +85,7 @@ define Package/libstdcpp $(call Package/gcc/Default) NAME:=libstdc++ TITLE:=GNU Standard C++ Library v3 - DEPENDS:=@!NATIVE_TOOLCHAIN&&@INSTALL_LIBSTDCPP + DEPENDS+=@INSTALL_LIBSTDCPP endef define Package/uclibc/Default @@ -146,7 +146,12 @@ define Package/base-files$(TARGET)/install $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \ fi \ ) - $(if $(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS),cp $(1)/etc/passwd $(1)/etc/shadow) +# Form valid /etc/shadow entries, by copying the user:pw pairs +# from /etc/passwd, and adding on pw change data + $(if $(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS), \ + cut -d ':' -f 1-2 $(1)/etc/passwd > $(1)/etc/shadow; \ + $(SED) 's/$$$$/:13848:0:99999:7:::/' $(1)/etc/shadow \ + ) $(SED) 's,$$$$R,$(REVISION),g' $(1)/etc/banner mkdir -p $(1)/dev mkdir -p $(1)/etc/crontabs