[packages] shadow: remove redundant autoreconf
[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_FIXUP:=libtool
19 PKG_REMOVE_FILES:=aclocal.m4 ltmain.sh
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 UTILS := \
26 groupadd groupdel groupmod useradd userdel usermod
27
28 define Package/shadow
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=The PLD Linux shadow utilities
32 URL:=http://ftp.pld-linux.org/software/shadow/
33 DEPENDS:=$(foreach u,$(UTILS),+shadow-$(u))
34 endef
35
36 define Package/shadow/description
37 Full versions of standard shadow utilities. Normally, you would not
38 use this package, since the functionality in BusyBox is more than
39 sufficient and much smaller.
40 endef
41
42 define Package/shadow/install
43 true
44 endef
45
46
47 define program
48 define Package/shadow-$(1)
49 SECTION:=utils
50 CATEGORY:=Utilities
51 TITLE:=Utility $(1) from the PLD Linux shadow utilities
52 URL:=http://ftp.pld-linux.org/software/shadow/
53 endef
54
55 define Package/shadow-$(1)/description
56 Full version of standard $(1) utility. Normally, you would not use this
57 package, since the functionality in BusyBox is more than sufficient.
58 endef
59
60 define Package/shadow-$(1)/install
61 [ -x "$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \
62 $(INSTALL_DIR) $$(1)/usr/sbin; \
63 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(1) $$(1)/usr/sbin/; \
64 } || { \
65 $(INSTALL_DIR) $$(1)/usr/bin; \
66 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/; \
67 }
68 endef
69
70 $$(eval $$(call BuildPackage,shadow-$(1)))
71 endef
72
73 $(eval $(call BuildPackage,shadow))
74 $(foreach u,$(UTILS),$(eval $(call program,$(u))))