Skip to content

Instantly share code, notes, and snippets.

@bitdust
Created September 9, 2015 12:32
Show Gist options
  • Save bitdust/15f1acc12c9089eb7900 to your computer and use it in GitHub Desktop.
Save bitdust/15f1acc12c9089eb7900 to your computer and use it in GitHub Desktop.
Makefile for openwrt-njit8021xclient
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=njit8021xclient
PKG_RELEASE:=reload
PKG_VERSION:=1.3
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)
#its not cool in xd.
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
#PKG_MD5SUM:=1b19ac98ba90e18aff7aeefa431753e2
include $(INCLUDE_DIR)/package.mk
define Package/njit8021xclient
SECTION:=net
CATEGORY:=Network
TITLE:=NJIT 802.1X client program
# URL:=http://liuqun.github.com/njit8021xclient
# WARMING! the code in liuqun's github can't work in xd.
DEPENDS:=+libpcap
PKG_BUILD_DEPENDS:=+libopenssl
endef
define Package/njit8021xclient/description
802.1X client from Nanjing Institude of Technology & xd,
compatable with H3C iNode 802.1X client.
Support H3C/iNode's private authentication protocol V2.40-V3.60
endef
CONFIGURE_ARGS += \
--program-prefix="njit-" \
$(NULL)
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./patch/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
$(call Build/Configure/Default)
endef
define Package/njit8021xclient/install
$(MAKE) -C $(PKG_BUILD_DIR) install-exec DESTDIR=$(1)
endef
define Package/njit8021xclient/conffiles
/etc/config/njit8021xclient.conf
endef
$(eval $(call BuildPackage,njit8021xclient))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment