2 # Copyright (C) 2008-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=http
://pkg-shadow.alioth.debian.org
/releases
16 PKG_HASH
:=3b0893d1476766868cd88920f4f1231c4795652aa407569faff802bcda0f3d41
17 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
18 PKG_LICENSE
:=BSD-3-Clause
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/nls.mk
28 chage chpasswd chfn chsh expiry faillog gpasswd \
29 groupadd groupdel groupmems groupmod groups \
30 lastlog login newgrp nologin passwd su \
31 useradd userdel usermod vipw
41 --disable-subordinate-ids \
43 define Package
/shadow
/Default
46 TITLE
:=The PLD Linux shadow utilities
47 URL
:=http
://pkg-shadow.alioth.debian.org
/
51 $(call Package
/shadow
/Default
)
53 DEPENDS
:=$(foreach u
,$(SHADOW_APPLETS
),+shadow-
$(u
))
57 define Package
/shadow
/description
58 Full versions of standard shadow utilities. Normally
, you would not
59 use this package
, since the functionality in BusyBox is more than
60 sufficient and much smaller.
63 define Package
/shadow
/install
67 define Package
/shadow-utils
68 $(call Package
/shadow
/Default
)
71 define Package
/shadow-utils
/config
72 menu
"Select shadow utilities"
73 depends on PACKAGE_shadow-utils
76 bool
"Include all PLD shadow utilities"
82 $(foreach u
,$(SHADOW_APPLETS
), \
83 config PACKAGE_shadow-
$(u
)
84 prompt
"Full PLD version of $(u) utility"
92 Package
/shadow-utils
/description
= $(Package
/shadow
/description
)
94 define Package
/shadow-common
95 $(call Package
/shadow
/Default
)
96 TITLE
:=Shared definitions for the PLD Linux shadow utilities
97 DEPENDS
:=$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
102 define Package
/shadow-
$(1)
103 $(call Package
/shadow
/Default
)
104 TITLE
:=Utility
$(1) from the PLD Linux shadow utilities
105 DEPENDS
:=+shadow-common
109 define Package
/shadow-
$(1)/description
110 Full version of standard
$(1) utility. Normally
, you would not use this
111 package
, since the functionality in BusyBox is more than sufficient.
115 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call GenPlugin
,$(u
))))
117 define Package
/shadow-common
/conffiles
121 define Package
/shadow-common
/install
122 $(INSTALL_DIR
) $(1)/etc
123 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/login.defs
$(1)/etc
/
126 define Package
/shadow-utils
/install
131 define Package
/shadow-
$(1)/install
132 [ -x
"$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
133 $(INSTALL_DIR
) $$(1)/usr
/sbin
; \
134 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/$(1) $$(1)/usr
/sbin
/; \
136 $(INSTALL_DIR
) $$(1)/usr
/bin
; \
137 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/; \
141 $$(eval
$$(call BuildPackage
,shadow-
$(1)))
144 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call BuildPlugin
,$(u
))))
146 $(eval
$(call BuildPackage
,shadow-utils
))
147 $(eval
$(call BuildPackage
,shadow-common
))
148 $(eval
$(call BuildPackage
,shadow
))