2 # Copyright (C) 2008-2014 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 PKG_BUILD_DEPENDS
:=libintl libiconv
26 include $(INCLUDE_DIR
)/package.mk
29 chage groupadd groupdel groupmod groups passwd su \
30 useradd userdel usermod
40 --disable-subordinate-ids \
42 define Package
/shadow
/Default
45 TITLE
:=The PLD Linux shadow utilities
46 URL
:=http
://pkg-shadow.alioth.debian.org
/
50 $(call Package
/shadow
/Default
)
52 DEPENDS
:=$(foreach u
,$(SHADOW_APPLETS
),+shadow-
$(u
))
56 define Package
/shadow
/description
57 Full versions of standard shadow utilities. Normally
, you would not
58 use this package
, since the functionality in BusyBox is more than
59 sufficient and much smaller.
62 define Package
/shadow
/install
66 define Package
/shadow-utils
67 $(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"
81 $(foreach u
,$(SHADOW_APPLETS
), \
82 config PACKAGE_shadow-
$(u
)
83 prompt
"Full PLD version of $(u) utility"
91 Package
/shadow-utils
/description
= $(Package
/shadow
/description
)
93 define Package
/shadow-common
94 $(call Package
/shadow
/Default
)
95 TITLE
:=Shared definitions for the PLD Linux shadow utilities
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
))