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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/rrs
/Default
28 TITLE
:=A reverse
(connecting
) remote
shell
29 URL
:=http
://www.cycom.se
/dl
/rrs
/
33 $(call Package
/rrs
/Default
)
35 TITLE
+= (with SSL support
)
38 define Package
/rrs-nossl
39 TITLE
+= (without SSL support
)
44 CONFIG_PACKAGE_rrs-nossl
:=m
47 define Build
/Compile
/Template
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++" \
51 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic $(3) -lutil -lm -lc" \
53 ( cd
$(PKG_BUILD_DIR
); mv rrs rrs-
$(1); )
56 ifneq ($(CONFIG_PACKAGE_rrs
),)
57 define Build
/Compile
/with-ssl
58 $(call Build
/Compile
/Template
,ssl
,generic
,-lcrypto
-lssl
)
62 ifneq ($(CONFIG_PACKAGE_rrs-nossl
),)
63 define Build
/Compile
/without-ssl
64 $(call Build
/Compile
/Template
,nossl
,generic-nossl
,)
69 $(call Build
/Compile
/with-ssl
)
70 $(call Build
/Compile
/without-ssl
)
73 define Package
/rrs
/install
74 install -d
-m0755
$(1)/usr
/bin
75 install -m0755
$(PKG_BUILD_DIR
)/rrs-ssl
$(1)/usr
/bin
/rrs
78 define Package
/rrs-nossl
/install
79 install -d
-m0755
$(1)/usr
/bin
80 install -m0755
$(PKG_BUILD_DIR
)/rrs-nossl
$(1)/usr
/bin
/rrs
83 $(eval
$(call BuildPackage
,rrs
))
84 $(eval
$(call BuildPackage
,rrs-nossl
))