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
17 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
23 PKG_BUILD_DEPENDS
:=libintl
25 include $(INCLUDE_DIR
)/package.mk
28 chage groupadd groupdel groupmod groups passwd su \
29 useradd userdel usermod
40 define Package
/shadow
/Default
43 TITLE
:=The PLD Linux shadow utilities
44 URL
:=http
://pkg-shadow.alioth.debian.org
/
48 $(call Package
/shadow
/Default
)
49 DEPENDS
:=$(foreach u
,$(SHADOW_APPLETS
),+shadow-
$(u
))
52 define Package
/shadow
/description
53 Full versions of standard shadow utilities. Normally
, you would not
54 use this package
, since the functionality in BusyBox is more than
55 sufficient and much smaller.
58 define Package
/shadow
/install
63 define Package
/shadow-common
64 $(call Package
/shadow
/Default
)
65 TITLE
:=Shared definitions for the PLD Linux shadow utilities
70 define Package
/shadow-
$(1)
71 $(call Package
/shadow
/Default
)
72 TITLE
:=Utility
$(1) from the PLD Linux shadow utilities
73 DEPENDS
:=+shadow-common
76 define Package
/shadow-
$(1)/description
77 Full version of standard
$(1) utility. Normally
, you would not use this
78 package
, since the functionality in BusyBox is more than sufficient.
82 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call GenPlugin
,$(u
))))
85 define Package
/shadow-common
/conffiles
89 define Package
/shadow-common
/install
90 $(INSTALL_DIR
) $(1)/etc
91 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/login.defs
$(1)/etc
/
96 define Package
/shadow-
$(1)/install
97 [ -x
"$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
98 $(INSTALL_DIR
) $$(1)/usr
/sbin
; \
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/$(1) $$(1)/usr
/sbin
/; \
101 $(INSTALL_DIR
) $$(1)/usr
/bin
; \
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/; \
106 $$(eval
$$(call BuildPackage
,shadow-
$(1)))
109 $(foreach u
,$(SHADOW_APPLETS
),$(eval
$(call BuildPlugin
,$(u
))))
111 $(eval
$(call BuildPackage
,shadow
))
112 $(eval
$(call BuildPackage
,shadow-common
))