4d8dcb1b16254e5e7132b51ee3c287f98a3f4aaf
[openwrt/svn-archive/archive.git] / utils / pwgen / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pwgen
12 PKG_VERSION:=2.05
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=b94546a346cb352054ea2d3d09f7f885
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pwgen
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Automatic Password generator
27 URL:=http://sourceforge.net/projects/pwgen/
28 endef
29
30 define Package/pwgen/description
31 pwgen generates random, meaningless but pronounceable passwords.
32 These passwords contain either only lowercase letters, or upper
33 and lower case mixed, or digits thrown in.
34 Uppercase letters and digits are placed in a way that eases
35 remembering their position when memorizing only the word.
36
37 E.g. to generate a WPA preshared-key do:
38 pwgen -c -n -s 63 1
39 endef
40
41 # uses GNU configure
42
43 define Package/pwgen/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pwgen $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,pwgen))