3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=bfe529edb9b6c97bc03d213676b1f35d
10 PKG_SOURCE_URL
:=http
://www.hsc.fr
/ressources
/outils
/ssltunnel
/download
11 PKG_SOURCE
:=${PKG_NAME}-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,SSLTUNNEL
,ssltunnel
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 BUILD_CC
=$(TARGET_CC
) HOSTCC
=$(HOSTCC
) \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
49 $(PKG_BUILD_DIR
)/.built
:
50 rm -rf
$(PKG_INSTALL_DIR
)
51 mkdir
-p
$(PKG_INSTALL_DIR
)
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 CCOPT
="$(TARGET_CFLAGS)" INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 install -m0755
-d
$(IDIR_SSLTUNNEL
)/usr
/bin
60 install -m0755
-d
$(IDIR_SSLTUNNEL
)/usr
/sbin
61 install -m0755
-d
$(IDIR_SSLTUNNEL
)/usr
/lib
62 install -m0755
$(PKG_INSTALL_DIR
)/usr
/bin
/pppclient
$(IDIR_SSLTUNNEL
)/usr
/bin
/
63 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppwho
$(IDIR_SSLTUNNEL
)/usr
/sbin
/
64 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppserver
$(IDIR_SSLTUNNEL
)/usr
/lib
/
65 $(RSTRIP
) $(IDIR_SSLTUNNEL
)
66 $(IPKG_BUILD
) $(IDIR_SSLTUNNEL
) $(PACKAGE_DIR
)
69 make
-C
$(PKG_BUILD_DIR
) clean
70 rm $(PKG_BUILD_DIR
)/.built