Browse Source

shadow: create utility sub-menu

Signed-off-by: Ted Hess <thess@kitschensync.net>
lilik-openwrt-22.03
Ted Hess 10 years ago
parent
commit
c2745855c6
1 changed files with 36 additions and 4 deletions
  1. +36
    -4
      utils/shadow/Makefile

+ 36
- 4
utils/shadow/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=shadow PKG_NAME:=shadow
PKG_VERSION:=4.2.1 PKG_VERSION:=4.2.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://pkg-shadow.alioth.debian.org/releases PKG_SOURCE_URL:=http://pkg-shadow.alioth.debian.org/releases
@ -48,7 +48,9 @@ endef
define Package/shadow define Package/shadow
$(call Package/shadow/Default) $(call Package/shadow/Default)
TITLE+= (all)
DEPENDS:=$(foreach u,$(SHADOW_APPLETS),+shadow-$(u)) DEPENDS:=$(foreach u,$(SHADOW_APPLETS),+shadow-$(u))
HIDDEN:=1
endef endef
define Package/shadow/description define Package/shadow/description
@ -61,18 +63,48 @@ define Package/shadow/install
true true
endef endef
define Package/shadow-utils/install
endef
define Package/shadow-utils
$(call Package/shadow/Default)
DEPENDS:=+ALL:shadow
endef
define Package/shadow-utils/config
menu "Select shadow utilities"
depends on PACKAGE_shadow-utils
config shadow-all
bool "Include all PLD shadow utilities"
select PACKAGE_shadow
comment "Utilities"
$(foreach u,$(SHADOW_APPLETS), \
config PACKAGE_shadow-$(u)
prompt "Full PLD version of $(u) utility"
)
endmenu
endef
Package/shadow-utils/description = $(Package/shadow/description)
define Package/shadow-common define Package/shadow-common
$(call Package/shadow/Default) $(call Package/shadow/Default)
TITLE:=Shared definitions for the PLD Linux shadow utilities TITLE:=Shared definitions for the PLD Linux shadow utilities
HIDDEN:=1
endef endef
define GenPlugin define GenPlugin
define Package/shadow-$(1) define Package/shadow-$(1)
$(call Package/shadow/Default) $(call Package/shadow/Default)
TITLE:=Utility $(1) from the PLD Linux shadow utilities TITLE:=Utility $(1) from the PLD Linux shadow utilities
DEPENDS:=+shadow-common DEPENDS:=+shadow-common
HIDDEN:=1
endef endef
define Package/shadow-$(1)/description define Package/shadow-$(1)/description
@ -83,7 +115,6 @@ endef
$(foreach u,$(SHADOW_APPLETS),$(eval $(call GenPlugin,$(u)))) $(foreach u,$(SHADOW_APPLETS),$(eval $(call GenPlugin,$(u))))
define Package/shadow-common/conffiles define Package/shadow-common/conffiles
/etc/login.defs /etc/login.defs
endef endef
@ -110,5 +141,6 @@ endef
$(foreach u,$(SHADOW_APPLETS),$(eval $(call BuildPlugin,$(u)))) $(foreach u,$(SHADOW_APPLETS),$(eval $(call BuildPlugin,$(u))))
$(eval $(call BuildPackage,shadow))
$(eval $(call BuildPackage,shadow-utils))
$(eval $(call BuildPackage,shadow-common)) $(eval $(call BuildPackage,shadow-common))
$(eval $(call BuildPackage,shadow))

Loading…
Cancel
Save