use /dev/urandom instead of /dev/random for openswan ipsec keygen
[openwrt.git] / package / popt / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := popt
6 PKG_VERSION := 1.7
7 PKG_RELEASE := 4
8 PKG_MD5SUM := 5988e7aeb0ae4dac8d83561265984cc9
9
10 PKG_SOURCE_SITE := ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/ \
11 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
12 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_CAT := zcat
14 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
15 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
16 PKG_IPK := $(PACKAGE_DIR)/lib$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17
18 $(DL_DIR)/$(PKG_SOURCE_FILE):
19 mkdir -p $(DL_DIR)
20 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
21
22 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
23 mkdir -p $(TOOL_BUILD_DIR)
24 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
25 # $(PATCH) $(PKG_BUILD_DIR) ./patches
26 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
27 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
28 touch $(PKG_BUILD_DIR)/ipkg/rules
29
30 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
31 cd $(PKG_BUILD_DIR); \
32 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
33 INSTALL_DIR="$(STAGING_DIR)" \
34 ./ipkg/rules package
35
36 $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list: $(PKG_IPK)
37 $(IPKG) install $(PKG_IPK)
38
39 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
40 prepare: $(PKG_BUILD_DIR)/ipkg/rules
41 compile: $(PKG_IPK)
42 install: $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list
43
44 clean:
45 -cd $(PKG_BUILD_DIR); \
46 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
47 INSTALL_DIR="$(STAGING_DIR)" \
48 ./ipkg/rules clean
49 rm -rf $(PKG_BUILD_DIR)
50 rm -r $(PKG_IPK)
51
This page took 0.036822 seconds and 5 git commands to generate.