2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.cycom.se
/uploads
/36/19
17 PKG_MD5SUM
:=b400d03c0e39e3e78a7327ba78f789f0
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/rrs
/Default
25 TITLE
:=A reverse
(connecting
) remote
shell
26 URL
:=http
://www.cycom.se
/dl
/rrs
/
30 $(call Package
/rrs
/Default
)
34 TITLE
+= (with SSL support
)
35 URL
:=http
://www.cycom.se
/dl
/rrs
/
38 define Package
/rrs-nossl
39 $(call Package
/rrs
/Default
)
42 TITLE
+= (without SSL support
)
48 $(STAMP_BUILT
)-$(2): $(STAMP_PREPARED
)
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
52 LDFLAGS
="$(TARGET_LDFLAGS) -nodefaultlibs $(4) -luClibc++ -lm -lutil" \
53 LDFLAGSNOSSL
="$(TARGET_LDFLAGS) -nodefaultlibs $(4) -luClibc++ -lm -lutil" \
55 ( cd
$(PKG_BUILD_DIR
); mv
-f rrs rrs-
$(2); )
58 $(STAMP_BUILT
): $(STAMP_BUILT
)-$(2)
60 define Package
/$(1)/install
61 $(INSTALL_DIR
) $$(1)/usr
/bin
62 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rrs-
$(2) $$(1)/usr
/bin
/rrs
68 define Build
/Configure
74 ifneq ($(SDK
)$(CONFIG_PACKAGE_rrs
),)
76 $(call Build
/Template
,rrs
,with-ssl
,generic
,-lcrypto
-lssl
)
79 $(eval
$(Build
/with-ssl
))
81 ifneq ($(SDK
)$(CONFIG_PACKAGE_rrs-nossl
),)
82 define Build
/without-ssl
83 $(call Build
/Template
,rrs-nossl
,without-ssl
,generic-nossl
,)
86 $(eval
$(Build
/without-ssl
))
89 $(eval
$(call BuildPackage
,rrs
))
90 $(eval
$(call BuildPackage
,rrs-nossl
))