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
)
32 TITLE
+= (with SSL support
)
35 define Package
/rrs-nossl
36 $(call Package
/rrs
/Default
)
38 TITLE
+= (without SSL support
)
43 CONFIG_PACKAGE_rrs-nossl
:=m
46 define Build
/Compile
/Template
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++" \
50 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic $(3) -lutil -lm -lc" \
52 ( cd
$(PKG_BUILD_DIR
); mv rrs rrs-
$(1); )
55 ifneq ($(CONFIG_PACKAGE_rrs
),)
56 define Build
/Compile
/with-ssl
57 $(call Build
/Compile
/Template
,ssl
,generic
,-lcrypto
-lssl
)
61 ifneq ($(CONFIG_PACKAGE_rrs-nossl
),)
62 define Build
/Compile
/without-ssl
63 $(call Build
/Compile
/Template
,nossl
,generic-nossl
,)
68 $(call Build
/Compile
/with-ssl
)
69 $(call Build
/Compile
/without-ssl
)
72 define Package
/rrs
/install
73 $(INSTALL_DIR
) $(1)/usr
/bin
74 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rrs-ssl
$(1)/usr
/bin
/rrs
77 define Package
/rrs-nossl
/install
78 $(INSTALL_DIR
) $(1)/usr
/bin
79 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rrs-nossl
$(1)/usr
/bin
/rrs
82 $(eval
$(call BuildPackage
,rrs
))
83 $(eval
$(call BuildPackage
,rrs-nossl
))