split patch; start irq cleanup
[openwrt.git] / openwrt / package / openswan / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=openswan
6 PKG_VERSION:=2.4.4
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=bd1a46c64727674149de61da2a32ca63
9
10 PKG_SOURCE_URL:=http://www.openswan.org/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,OPENSWAN,openswan,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 FLAGS := $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/linux/include -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 $(TARGET_CONFIGURE_OPTS) \
27 KERNELSRC="$(LINUX_DIR)" \
28 ARCH="mips" \
29 USERCOMPILE="$(FLAGS)" \
30 EXTRA_INCLUDE="-I$(STAGING_DIR)/usr/include" \
31 EXTRA_LIBS="-L$(STAGING_DIR)/usr/lib" \
32 IPSECDIR="/usr/lib/ipsec" \
33 INC_USRLOCAL="/usr" \
34 programs
35 touch $@
36
37 $(IPKG_OPENSWAN):
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 DESTDIR="$(IDIR_OPENSWAN)" \
41 KERNELSRC="$(LINUX_DIR)" \
42 ARCH="mips" \
43 USERCOMPILE="$(FLAGS)" \
44 IPSECDIR="/usr/lib/ipsec" \
45 INC_USRLOCAL="/usr" \
46 install
47 -$(STRIP) $(IDIR_OPENSWAN)/usr/lib/ipsec/*
48 -$(STRIP) $(IDIR_OPENSWAN)/usr/libexec/ipsec/*
49 rm -rf $(IDIR_OPENSWAN)/usr/share
50 rm -rf $(IDIR_OPENSWAN)/usr/man
51 rm -rf $(IDIR_OPENSWAN)/var
52 rm -rf $(IDIR_OPENSWAN)/etc/rc.d/rc*.d
53 mkdir -p $(IDIR_OPENSWAN)/etc/init.d
54 ln -sf ../rc.d/init.d/ipsec $(IDIR_OPENSWAN)/etc/init.d/S60ipsec
55 find $(PKG_BUILD_DIR) -name \*.old | xargs rm -rf
56 mkdir -p $(PACKAGE_DIR)
57 $(IPKG_BUILD) $(IDIR_OPENSWAN) $(PACKAGE_DIR)
This page took 0.05656 seconds and 5 git commands to generate.