coreutils: update to version 8.7
[openwrt/svn-archive/archive.git] / utils / shadow / Makefile
1 #
2 # Copyright (C) 2008-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shadow
11 PKG_VERSION:=4.0.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://ftp.pld-linux.org/software/shadow
16 PKG_MD5SUM:=4fa404ebb4e29828232b3c9a2abddefd
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 UTILS := \
23 groupadd groupdel groupmod useradd userdel usermod
24
25 define Package/shadow
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=The PLD Linux shadow utilities
29 URL:=http://ftp.pld-linux.org/software/shadow/
30 DEPENDS:=$(foreach u,$(UTILS),+shadow-$(u))
31 endef
32
33 define Package/shadow/description
34 Full versions of standard shadow utilities. Normally, you would not
35 use this package, since the functionality in BusyBox is more than
36 sufficient and much smaller.
37 endef
38
39 define Package/shadow/install
40 true
41 endef
42
43
44 define program
45 define Package/shadow-$(1)
46 SECTION:=utils
47 CATEGORY:=Utilities
48 TITLE:=Utility $(1) from the PLD Linux shadow utilities
49 URL:=http://ftp.pld-linux.org/software/shadow/
50 endef
51
52 define Package/shadow-$(1)/description
53 Full version of standard $(1) utility. Normally, you would not use this
54 package, since the functionality in BusyBox is more than sufficient.
55 endef
56
57 define Package/shadow-$(1)/install
58 [ -x "$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
59 $(INSTALL_DIR) $$(1)/usr/sbin; \
60 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(1) $$(1)/usr/sbin/; \
61 } || { \
62 $(INSTALL_DIR) $$(1)/usr/bin; \
63 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/; \
64 }
65 endef
66
67 $$(eval $$(call BuildPackage,shadow-$(1)))
68 endef
69
70 $(eval $(call BuildPackage,shadow))
71 $(foreach u,$(UTILS),$(eval $(call program,$(u))))