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 include $(INCLUDE_DIR)/package.mk
25 chage groupadd groupdel groupmod groups passwd su \
26 useradd userdel usermod
37 define Package/shadow/Default
40 TITLE:=The PLD Linux shadow utilities
41 URL:=http://pkg-shadow.alioth.debian.org/
45 $(call Package/shadow/Default)
49 define Package/shadow/description
50 Full versions of standard shadow utilities. Normally, you would not
51 use this package, since the functionality in BusyBox is more than
52 sufficient and much smaller.
55 define Package/shadow/install
60 define Package/shadow-common
61 $(call Package/shadow/Default)
62 TITLE:=Shared definitions for the PLD Linux shadow utilities
68 define Package/shadow-$(1)
69 $(call Package/shadow/Default)
70 TITLE:=Utility $(1) from the PLD Linux shadow utilities
71 DEPENDS:=shadow +shadow-common
74 define Package/shadow-$(1)/description
75 Full version of standard $(1) utility. Normally, you would not use this
76 package, since the functionality in BusyBox is more than sufficient.
80 $(foreach u,$(SHADOW_APPLETS),$(eval $(call GenPlugin,$(u))))
83 define Package/shadow-common/conffiles
87 define Package/shadow-common/install
88 $(INSTALL_DIR) $(1)/etc
89 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/login.defs $(1)/etc/
94 define Package/shadow-$(1)/install
95 [ -x "$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
96 $(INSTALL_DIR) $$(1)/usr/sbin; \
97 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(1) $$(1)/usr/sbin/; \
99 $(INSTALL_DIR) $$(1)/usr/bin; \
100 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/; \
104 $$(eval $$(call BuildPackage,shadow-$(1)))
107 $(foreach u,$(SHADOW_APPLETS),$(eval $(call BuildPlugin,$(u))))
109 $(eval $(call BuildPackage,shadow))
110 $(eval $(call BuildPackage,shadow-common))