2 # Copyright (C) 2008-2012 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 include $(INCLUDE_DIR
)/package.mk
25 groupadd groupdel groupmod useradd userdel usermod \
40 TITLE
:=The PLD Linux shadow utilities
41 URL
:=http
://pkg-shadow.alioth.debian.org
/
42 DEPENDS
:=$(foreach u
,$(UTILS
),+shadow-
$(u
))
45 define Package
/shadow
/description
46 Full versions of standard shadow utilities. Normally
, you would not
47 use this package
, since the functionality in BusyBox is more than
48 sufficient and much smaller.
51 define Package
/shadow
/install
56 define Package
/shadow-common
59 TITLE
:=Shared definitions for the shadow utilities
60 URL
:=http
://pkg-shadow.alioth.debian.org
/
63 define Package
/shadow-common
/conffiles
67 define Package
/shadow-common
/install
68 $(INSTALL_DIR
) $(1)/etc
69 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/login.defs
$(1)/etc
/
74 define Package
/shadow-
$(1)
77 TITLE
:=Utility
$(1) from the PLD Linux shadow utilities
78 URL
:=http
://pkg-shadow.alioth.debian.org
/
79 DEPENDS
:=+shadow-common
82 define Package
/shadow-
$(1)/description
83 Full version of standard
$(1) utility. Normally
, you would not use this
84 package
, since the functionality in BusyBox is more than sufficient.
87 define Package
/shadow-
$(1)/install
88 [ -x
"$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
89 $(INSTALL_DIR
) $$(1)/usr
/sbin
; \
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/$(1) $$(1)/usr
/sbin
/; \
92 $(INSTALL_DIR
) $$(1)/usr
/bin
; \
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) $$(1)/usr
/bin
/; \
97 $$(eval
$$(call BuildPackage
,shadow-
$(1)))
100 $(eval
$(call BuildPackage
,shadow
))
101 $(eval
$(call BuildPackage
,shadow-common
))
102 $(foreach u
,$(UTILS
),$(eval
$(call program
,$(u
))))