2011-04-19 14:36:45 +00:00
|
|
|
#
|
2014-03-08 00:58:02 +00:00
|
|
|
# Copyright (C) 2011-2014 OpenWrt.org
|
2011-04-19 14:36:45 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=apf
|
|
|
|
PKG_VERSION:=0.8.4
|
2014-03-08 00:58:02 +00:00
|
|
|
PKG_RELEASE:=3
|
2011-04-19 14:36:45 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://gray-world.net/projects/af/
|
|
|
|
PKG_MD5SUM:=4411785b05ec59e955152fe4e61705b1
|
2014-03-08 00:58:02 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-04-19 14:36:45 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -lcrypto -lssl -lz"
|
|
|
|
|
|
|
|
define Package/apf
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Active port forwarder
|
|
|
|
URL:=http://gray-world.net/pr_af.shtml
|
2012-06-13 00:22:25 +00:00
|
|
|
DEPENDS:=+libopenssl +libpthread
|
2011-04-19 14:36:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/apf/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/af{client,server} $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/afclient_example.conf $(1)/etc/afclient.conf
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/afserver_example.conf $(1)/etc/afserver.conf
|
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/apf/conffiles
|
|
|
|
/etc/afclient.conf
|
|
|
|
/etc/afserver.conf
|
|
|
|
endef
|
|
|
|
|
2011-04-19 14:36:45 +00:00
|
|
|
$(eval $(call BuildPackage,apf))
|