# Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

# proxy for PCP, Francis_Dupont@isc.org, September 2010

# $Id: Makefile 877 2010-09-28 14:30:48Z fdupont $

include $(TOPDIR)/rules.mk

PKG_NAME:=pcpproxy
PKG_VERSION:=1.1b2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME).c


include $(INCLUDE_DIR)/package.mk

PKG_UNPACK:=$(CP) files/$(PKG_SOURCE) files/Makefile $(PKG_BUILD_DIR)

define Package/$(PKG_NAME)
        SECTION:=net
        CATEGORY:=AFTR
        MAINTAINER:=Francis Dupont <fdupont@isc.org>
        TITLE:=proxy for PCP
        URL:=https://www.isc.org/software/aftr
endef

define Build/Patch
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
