3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=6cbba783658eb62b87cbf4937f5e8464
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)" \
27 EXTRA_INCLUDE
="-I$(STAGING_DIR)/usr/include" \
28 EXTRA_LIBS
="-L$(STAGING_DIR)/usr/lib" \
29 IPSECDIR
="/usr/lib/ipsec" \
34 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 $(TARGET_CONFIGURE_OPTS
) \
36 DESTDIR
="$(IDIR_OPENSWAN)" \
37 KERNELSRC
="$(LINUX_DIR)" \
39 USERCOMPILE
="$(FLAGS)" \
40 IPSECDIR
="/usr/lib/ipsec" \
43 -$(STRIP
) $(IDIR_OPENSWAN
)/usr
/lib
/ipsec
/*
44 -$(STRIP
) $(IDIR_OPENSWAN
)/usr
/libexec
/ipsec
/*
45 rm -rf
$(IDIR_OPENSWAN
)/usr
/share
46 rm -rf
$(IDIR_OPENSWAN
)/usr
/man
47 rm -rf
$(IDIR_OPENSWAN
)/var
48 rm -rf
$(IDIR_OPENSWAN
)/etc
/rc.d
/rc
*.d
49 mkdir
-p
$(IDIR_OPENSWAN
)/etc
/init.d
50 ln
-sf ..
/rc.d
/init.d
/ipsec
$(IDIR_OPENSWAN
)/etc
/init.d
/S60ipsec
51 find
$(PKG_BUILD_DIR
) -name \
*.old | xargs
rm -rf
52 mkdir
-p
$(PACKAGE_DIR
)
53 $(IPKG_BUILD
) $(IDIR_OPENSWAN
) $(PACKAGE_DIR
)