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_MD5SUM
:=2bfafe7d4962682d31b5eba65dba4fc8
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 groupadd groupdel groupmod groups passwd su \
29 useradd userdel usermod
39 --disable-subordinate-ids \
41 define Package
/shadow
/Default
44 TITLE
:=The PLD Linux shadow utilities
45 URL
:=http
://pkg-shadow.alioth.debian.org
/
49 $(call Package
/shadow
/Default
)
51 DEPENDS
:=$(foreach u
,$(SHADOW_APPLETS
),+shadow-
$(u
))
55 define Package
/shadow
/description
56 Full versions of standard shadow utilities. Normally
, you would not
57 use this package
, since the functionality in BusyBox is more than
58 sufficient and much smaller.
61 define Package
/shadow
/install
65 define Package
/shadow-utils
66 $(call Package
/shadow
/Default
)
69 define Package
/shadow-utils
/config
70 menu
"Select shadow utilities"
71 depends on PACKAGE_shadow-utils
74 bool
"Include all PLD shadow utilities"
80 $(foreach u
,$(SHADOW_APPLETS
), \
81 config PACKAGE_shadow-
$(u
)
82 prompt
"Full PLD version of $(u) utility"
90 Package
/shadow-utils
/description
= $(Package
/shadow
/description
)
92 define Package
/shadow-common
93 $(call Package
/shadow
/Default
)
94 TITLE
:=Shared definitions for the PLD Linux shadow utilities
95 DEPENDS
:=$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
100 define Package
/shadow-
$(1)
101 $(call Package
/shadow
/Default
)
102 TITLE
:=Utility
$(1) from the PLD Linux shadow utilities
103 DEPENDS
:=+shadow-common
107 define Package
/shadow-
$(1)/description
108 Full version of standard
$(1) utility. Normally
, you would not use this
109 package
, since the functionality in BusyBox is more than sufficient.
113 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call GenPlugin
,$(u
))))
115 define Package
/shadow-common
/conffiles
119 define Package
/shadow-common
/install
120 $(INSTALL_DIR
) $(1)/etc
121 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/login.defs
$(1)/etc
/
124 define Package
/shadow-utils
/install
129 define Package
/shadow-
$(1)/install
130 [ -x
"$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
131 $(INSTALL_DIR
) $$(1)/usr
/sbin
; \
132 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/$(1) $$(1)/usr
/sbin
/; \
134 $(INSTALL_DIR
) $$(1)/usr
/bin
; \
135 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/; \
139 $$(eval
$$(call BuildPackage
,shadow-
$(1)))
142 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call BuildPlugin
,$(u
))))
144 $(eval
$(call BuildPackage
,shadow-utils
))
145 $(eval
$(call BuildPackage
,shadow-common
))
146 $(eval
$(call BuildPackage
,shadow
))