Ticket #9256: apf.patch

File apf.patch, 1.1 KB (added by obsy, 7 years ago)
  • feeds/packages/net/apf/Makefile

     
     1include $(TOPDIR)/rules.mk 
     2 
     3PKG_NAME:=apf 
     4PKG_VERSION:=0.8.4 
     5PKG_RELEASE:=1 
     6 
     7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     8PKG_SOURCE_URL:=http://gray-world.net/projects/af/ 
     9PKG_MD5SUM:=4411785b05ec59e955152fe4e61705b1 
     10 
     11PKG_INSTALL:=1 
     12 
     13include $(INCLUDE_DIR)/package.mk 
     14 
     15CONFIGURE_VARS += \ 
     16        LDFLAGS="$$$$LDFLAGS -lcrypto -lssl -lz" 
     17 
     18define Package/apf 
     19  SECTION:=net 
     20  CATEGORY:=Network 
     21  TITLE:=Active port forwarder 
     22  URL:=http://gray-world.net/pr_af.shtml 
     23  DEPENDS:=+libopenssl 
     24endef 
     25 
     26define Package/apf/install 
     27        $(INSTALL_DIR) $(1)/usr/bin 
     28        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/af{client,server} $(1)/usr/bin/ 
     29        $(INSTALL_DIR) $(1)/etc 
     30        $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/afclient_example.conf $(1)/etc/afclient.conf 
     31        $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/afserver_example.conf $(1)/etc/afserver.conf 
     32endef 
     33 
     34$(eval $(call BuildPackage,apf))