| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= srelay
|
|---|
| 10 | PKG_VERSION:= 0.4.6
|
|---|
| 11 | PKG_RELEASE:= 2
|
|---|
| 12 | PKG_MD5SUM:= 4a9f3298b38d8588f0ffde31b946a47f
|
|---|
| 13 | PKG_INIT:= 60
|
|---|
| 14 |
|
|---|
| 15 | PKG_SOURCE_URL:= @SF/socks-relay
|
|---|
| 16 |
|
|---|
| 17 | include $(TOPDIR)/mk/package.mk
|
|---|
| 18 |
|
|---|
| 19 | $(eval $(call PKG_template,SRELAY,srelay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.configured:
|
|---|
| 22 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 23 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 24 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --program-prefix="" \
|
|---|
| 30 | --program-suffix="" \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --datadir=/usr/share \
|
|---|
| 35 | --includedir=/usr/include \
|
|---|
| 36 | --infodir=/usr/share/info \
|
|---|
| 37 | --libdir=/usr/lib \
|
|---|
| 38 | --libexecdir=/usr/lib \
|
|---|
| 39 | --localstatedir=/var \
|
|---|
| 40 | --mandir=/usr/share/man \
|
|---|
| 41 | --sbindir=/usr/sbin \
|
|---|
| 42 | --sysconfdir=/etc \
|
|---|
| 43 | --disable-thread \
|
|---|
| 44 | --disable-nls \
|
|---|
| 45 | );
|
|---|
| 46 | touch $@
|
|---|
| 47 |
|
|---|
| 48 | $(WRKBUILD)/.built:
|
|---|
| 49 | rm -rf $(WRKINST)
|
|---|
| 50 | mkdir -p $(WRKINST)
|
|---|
| 51 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 52 | CC=$(TARGET_CC) \
|
|---|
| 53 | all
|
|---|
| 54 | $(CP) $(WRKBUILD)/srelay $(WRKINST)
|
|---|
| 55 | touch $@
|
|---|
| 56 |
|
|---|
| 57 | $(IPKG_SRELAY):
|
|---|
| 58 | $(INSTALL_DIR) $(IDIR_SRELAY)/usr/bin
|
|---|
| 59 | $(INSTALL_DIR) $(IDIR_SRELAY)/etc/init.d
|
|---|
| 60 | $(INSTALL_BIN) $(WRKINST)/srelay $(IDIR_SRELAY)/usr/bin/
|
|---|
| 61 | $(INSTALL_BIN) ./files/srelay.init \
|
|---|
| 62 | $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT)srelay
|
|---|
| 63 | $(INSTALL_DATA) ./files/srelay.conf $(IDIR_SRELAY)/etc
|
|---|
| 64 | $(RSTRIP) $(IDIR_SRELAY)
|
|---|
| 65 | $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR)
|
|---|