treewide: use APK compatible version schema
[openwrt/openwrt.git] / package / base-files / Makefile
index bb369a82d9b67ca5f2f08e6f3cafddf75c0c8d30..b1a834e1bf513055ada149c74e4eabe913a15358 100644 (file)
@@ -42,7 +42,7 @@ define Package/base-files
   DEPENDS:=+netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
   TITLE:=Base filesystem for OpenWrt
   URL:=http://openwrt.org/
-  VERSION:=$(PKG_RELEASE)-$(REVISION)
+  VERSION:=$(PKG_RELEASE)~$(lastword $(subst -, ,$(REVISION)))
 endef
 
 define Package/base-files/conffiles
@@ -199,7 +199,8 @@ define Package/base-files/install
                $(1)/usr/lib \
                $(1)/usr/bin \
                $(1)/sys \
-               $(1)/www \
+               $(1)/www
+       mkdir -p -m 750 \
                $(1)/root
 
        $(LN) /proc/mounts $(1)/etc/mtab