treewide: use APK compatible version schema
[openwrt/openwrt.git] / package / base-files / Makefile
index 8732f82fb9815ea67dc548bd897836249ea893c9..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
@@ -108,6 +108,9 @@ define Build/Prepare
        mkdir -p $(PKG_BUILD_DIR)
 endef
 
+define Build/Quilt
+endef
+
 define Build/Compile/Default
 
 endef
@@ -196,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