3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4a9f3298b38d8588f0ffde31b946a47f
10 PKG_SOURCE_URL
:=@SF
/socks-relay
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
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,SRELAY
,srelay
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
35 --datadir=/usr
/share \
36 --includedir=/usr
/include \
37 --infodir=/usr
/share
/info \
39 --libexecdir
=/usr
/lib \
40 --localstatedir
=/var \
41 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
50 $(PKG_BUILD_DIR
)/.built
:
51 rm -rf
$(PKG_INSTALL_DIR
)
52 mkdir
-p
$(PKG_INSTALL_DIR
)
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 cp
$(PKG_BUILD_DIR
)/srelay
$(PKG_INSTALL_DIR
)
60 install -m0755
-d
$(IDIR_SRELAY
)/usr
/bin
61 install -m0755
-d
$(IDIR_SRELAY
)/etc
/init.d
62 cp
-fpR
$(PKG_INSTALL_DIR
)/srelay
$(IDIR_SRELAY
)/usr
/bin
/
63 cp
-fpR files
/srelay.init
$(IDIR_SRELAY
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)srelay
64 cp
-fpR files
/srelay.conf
$(IDIR_SRELAY
)/etc
65 chmod
755 $(IDIR_SRELAY
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)srelay
66 $(RSTRIP
) $(IDIR_SRELAY
)
67 $(IPKG_BUILD
) $(IDIR_SRELAY
) $(PACKAGE_DIR
)