Add luci-app-diskman (#3960)
This commit is contained in:
parent
ec216e36f9
commit
318f1657e6
83
package/lean/luci-app-diskman/Makefile
Normal file
83
package/lean/luci-app-diskman/Makefile
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=luci-app-diskman
|
||||||
|
PKG_VERSION:=v0.2.5
|
||||||
|
PKG_RELEASE:=beta
|
||||||
|
PKG_MAINTAINER:=lisaac <https://github.com/lisaac/luci-app-diskman>
|
||||||
|
PKG_LICENSE:=AGPL-3.0
|
||||||
|
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=https://github.com/lisaac/luci-app-diskman.git
|
||||||
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
||||||
|
|
||||||
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
||||||
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/config
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_btrfs_progs
|
||||||
|
bool "Include btrfs-progs"
|
||||||
|
default y
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_lsblk
|
||||||
|
bool "Include lsblk"
|
||||||
|
default y
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_mdadm
|
||||||
|
bool "Include mdadm"
|
||||||
|
default n
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456
|
||||||
|
bool "Include kmod-md-raid456"
|
||||||
|
default n
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linear
|
||||||
|
bool "Include kmod-md-linear"
|
||||||
|
default n
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)
|
||||||
|
SECTION:=luci
|
||||||
|
CATEGORY:=LuCI
|
||||||
|
SUBMENU:=3. Applications
|
||||||
|
TITLE:=Disk Manager interface for LuCI
|
||||||
|
PKGARCH:=all
|
||||||
|
DEPENDS:=+e2fsprogs +parted +smartmontools +blkid \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_btrfs_progs:btrfs-progs \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_lsblk:lsblk \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_mdadm:mdadm \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456:kmod-md-mod \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456:kmod-md-raid456 \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linears:kmod-md-mod \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linears:kmod-md-linear
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/description
|
||||||
|
Disk Manager interface for LuCI
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
tar -xzvf $(DL_DIR)/$(PKG_SOURCE) -C $(BUILD_DIR)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/postinst
|
||||||
|
#!/bin/sh
|
||||||
|
rm -fr /tmp/luci-indexcache /tmp/luci-modulecache
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/install
|
||||||
|
# $(INSTALL_DIR) $(1)/
|
||||||
|
# cp -pR $(PKG_BUILD_DIR)/root/* $(1)/
|
||||||
|
# $(INSTALL_DIR) $(1)/www
|
||||||
|
# cp -pR $(PKG_BUILD_DIR)/htdoc/* $(1)/www
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
|
||||||
|
cp -pR $(PKG_BUILD_DIR)/luasrc/* $(1)/usr/lib/lua/luci/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
|
||||||
|
$$(foreach po,$$(shell find $(PKG_BUILD_DIR)/po/*/*.po), \
|
||||||
|
po2lmo $$(po) \
|
||||||
|
$(1)/usr/lib/lua/luci/i18n/diskman.$$(shell echo $$(po) | awk -F'/' '{print $$$$(NF-1)}').lmo;)
|
||||||
|
#po2lmo $(PKG_BUILD_DIR)/po/zh-cn/diskman.po $(1)/usr/lib/lua/luci/i18n/diskman.zh-cn.lmo
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
50
package/lean/parted/Makefile
Normal file
50
package/lean/parted/Makefile
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2019 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=parted
|
||||||
|
PKG_VERSION:=3.3
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/parted-$(PKG_VERSION)
|
||||||
|
PKG_SOURCE:=parted-$(PKG_VERSION).tar.xz
|
||||||
|
PKG_SOURCE_URL:=@GNU/parted
|
||||||
|
PKG_MD5SUM:=090655d05f3c471aa8e15a27536889ec
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
define Package/parted
|
||||||
|
SECTION:=utils
|
||||||
|
CATEGORY:=Utilities
|
||||||
|
SUBMENU:=Disc
|
||||||
|
TITLE:=parted Partition editor
|
||||||
|
URL:=http://www.gnu.org/software/parted/index.shtml
|
||||||
|
DEPENDS:= +libuuid +libreadline +libncurses +libblkid
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/parted/description
|
||||||
|
parted Partition editor
|
||||||
|
http://www.gnu.org/software/parted/index.shtml
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
$(call Build/Configure/Default, \
|
||||||
|
--without-readline \
|
||||||
|
--disable-device-mapper \
|
||||||
|
--disable-nls \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/parted/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libparted/.libs/*.so* $(1)/usr/lib/
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libparted/fs/.libs/*.so* $(1)/usr/lib/
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/parted/.libs/parted $(1)/usr/sbin/
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/partprobe/.libs/partprobe $(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,parted))
|
Loading…
x
Reference in New Issue
Block a user