3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3dcf1cd7efcbe8db3148fc288d429db1
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
)
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,OPENSWAN
,openswan
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 FLAGS
:= $(TARGET_CFLAGS
) -I
$(PKG_BUILD_DIR
)/linux
/include -L
$(STAGING_DIR
)/usr
/lib
-I
$(STAGING_DIR
)/usr
/include
21 $(PKG_BUILD_DIR
)/.built
:
22 # $(MAKE) -C $(PKG_BUILD_DIR) \
23 # $(TARGET_CONFIGURE_OPTS) \
24 # KERNELSRC="$(LINUX_DIR)" \
26 # USERCOMPILE="$(FLAGS)" \
28 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
29 $(TARGET_CONFIGURE_OPTS
) \
30 KERNELSRC
="$(LINUX_DIR)" \
32 USERCOMPILE
="$(FLAGS)" \
33 EXTRA_INCLUDE
="-I$(STAGING_DIR)/usr/include" \
34 EXTRA_LIBS
="-L$(STAGING_DIR)/usr/lib" \
35 IPSECDIR
="/usr/lib/ipsec" \
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 $(TARGET_CONFIGURE_OPTS
) \
42 DESTDIR
="$(IDIR_OPENSWAN)" \
43 KERNELSRC
="$(LINUX_DIR)" \
45 USERCOMPILE
="$(FLAGS)" \
46 IPSECDIR
="/usr/lib/ipsec" \
49 -$(STRIP
) $(IDIR_OPENSWAN
)/usr
/lib
/ipsec
/*
50 -$(STRIP
) $(IDIR_OPENSWAN
)/usr
/libexec
/ipsec
/*
51 rm -rf
$(IDIR_OPENSWAN
)/usr
/share
52 rm -rf
$(IDIR_OPENSWAN
)/usr
/man
53 rm -rf
$(IDIR_OPENSWAN
)/var
54 rm -rf
$(IDIR_OPENSWAN
)/etc
/rc.d
/rc
*.d
55 mkdir
-p
$(IDIR_OPENSWAN
)/etc
/init.d
56 ln
-sf ..
/rc.d
/init.d
/ipsec
$(IDIR_OPENSWAN
)/etc
/init.d
/S60ipsec
57 find
$(PKG_BUILD_DIR
) -name \
*.old | xargs
rm -rf
58 mkdir
-p
$(PACKAGE_DIR
)
59 $(IPKG_BUILD
) $(IDIR_OPENSWAN
) $(PACKAGE_DIR
)