From 5a1e655ed23f9ba6c179a8761ac230e4da06c145 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Jun 2010 21:57:27 +0000 Subject: [PATCH 1/1] [packages] add "pwcrypt", a cli wrapper around the crypt() call (#7490) SVN-Revision: 21862 --- utils/pwcrypt/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 utils/pwcrypt/Makefile diff --git a/utils/pwcrypt/Makefile b/utils/pwcrypt/Makefile new file mode 100644 index 0000000000..75e33fcd6b --- /dev/null +++ b/utils/pwcrypt/Makefile @@ -0,0 +1,36 @@ +# +# Copyright (C) 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:=pwcrypt +PKG_VERSION:=1.2.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://xjack.org/pwcrypt/downloads +PKG_MD5SUM:=381a60c8debe5b21c935b19684de + +include $(INCLUDE_DIR)/package.mk + +define Package/pwcrypt + SECTION:=utils + CATEGORY:=Utilities + TITLE:=A utility to create crypted passwords from plaintext + URL:=http://xjack.org/pwcrypt +endef + +define Package/pwcrypt/description + A wrapper for the unix crypt() function. Supports crypt and MD5 hashing +endef + +define Package/pwcrypt/install + $(INSTALL_DIR) $(1)/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pwcrypt $(1)/sbin/ +endef + +$(eval $(call BuildPackage,pwcrypt)) -- 2.30.2