2 # Copyright (C) 2008-2013 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.bz2
15 PKG_SOURCE_URL
:=http
://pkg-shadow.alioth.debian.org
/releases
16 PKG_MD5SUM
:=a00449aa439c69287b6d472191dc2247
22 PKG_BUILD_DEPENDS
:=libintl
24 include $(INCLUDE_DIR
)/package.mk
27 chage groupadd groupdel groupmod groups passwd su \
28 useradd userdel usermod
39 define Package
/shadow
/Default
42 TITLE
:=The PLD Linux shadow utilities
43 URL
:=http
://pkg-shadow.alioth.debian.org
/
47 $(call Package
/shadow
/Default
)
48 DEPENDS
:=$(foreach u
,$(SHADOW_APPLETS
),+shadow-
$(u
))
51 define Package
/shadow
/description
52 Full versions of standard shadow utilities. Normally
, you would not
53 use this package
, since the functionality in BusyBox is more than
54 sufficient and much smaller.
57 define Package
/shadow
/install
62 define Package
/shadow-common
63 $(call Package
/shadow
/Default
)
64 TITLE
:=Shared definitions for the PLD Linux shadow utilities
69 define Package
/shadow-
$(1)
70 $(call Package
/shadow
/Default
)
71 TITLE
:=Utility
$(1) from the PLD Linux shadow utilities
72 DEPENDS
:=+shadow-common
75 define Package
/shadow-
$(1)/description
76 Full version of standard
$(1) utility. Normally
, you would not use this
77 package
, since the functionality in BusyBox is more than sufficient.
81 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call GenPlugin
,$(u
))))
84 define Package
/shadow-common
/conffiles
88 define Package
/shadow-common
/install
89 $(INSTALL_DIR
) $(1)/etc
90 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/login.defs
$(1)/etc
/
95 define Package
/shadow-
$(1)/install
96 [ -x
"$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
97 $(INSTALL_DIR
) $$(1)/usr
/sbin
; \
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/$(1) $$(1)/usr
/sbin
/; \
100 $(INSTALL_DIR
) $$(1)/usr
/bin
; \
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/; \
105 $$(eval
$$(call BuildPackage
,shadow-
$(1)))
108 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call BuildPlugin
,$(u
))))
110 $(eval
$(call BuildPackage
,shadow
))
111 $(eval
$(call BuildPackage
,shadow-common
))