From e40667f915e5fef0243d122fd70f4ff7b304e5eb Mon Sep 17 00:00:00 2001 From: jow Date: Sat, 6 Nov 2010 14:46:37 +0000 Subject: [PATCH] [packages] shadow: add missing Makefile git-svn-id: svn://svn.openwrt.org/openwrt/packages@23894 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/shadow/Makefile | 71 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 utils/shadow/Makefile diff --git a/utils/shadow/Makefile b/utils/shadow/Makefile new file mode 100644 index 000000000..2a4ae49fd --- /dev/null +++ b/utils/shadow/Makefile @@ -0,0 +1,71 @@ +# +# Copyright (C) 2008-2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=shadow +PKG_VERSION:=4.0.3 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://ftp.pld-linux.org/software/shadow +PKG_MD5SUM:=4fa404ebb4e29828232b3c9a2abddefd + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +UTILS := \ + groupadd groupdel groupmod useradd userdel usermod + +define Package/shadow + SECTION:=utils + CATEGORY:=Utilities + TITLE:=The PLD Linux shadow utilities + URL:=http://ftp.pld-linux.org/software/shadow/ + DEPENDS:=$(foreach u,$(UTILS),+shadow-$(u)) +endef + +define Package/shadow/description + Full versions of standard shadow utilities. Normally, you would not + use this package, since the functionality in BusyBox is more than + sufficient and much smaller. +endef + +define Package/shadow/install + true +endef + + +define program + define Package/shadow-$(1) + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Utility $(1) from the PLD Linux shadow utilities + URL:=http://ftp.pld-linux.org/software/shadow/ + endef + + define Package/shadow-$(1)/description + Full version of standard $(1) utility. Normally, you would not use this + package, since the functionality in BusyBox is more than sufficient. + endef + + define Package/shadow-$(1)/install + [ -x "$(PKG_INSTALL_DIR)/usr/sbin/$(1)" ] && { \ + $(INSTALL_DIR) $$(1)/usr/sbin; \ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(1) $$(1)/usr/sbin/; \ + } || { \ + $(INSTALL_DIR) $$(1)/usr/bin; \ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/; \ + } + endef + + $$(eval $$(call BuildPackage,shadow-$(1))) +endef + +$(eval $(call BuildPackage,shadow)) +$(foreach u,$(UTILS),$(eval $(call program,$(u))))