Created
September 8, 2015 09:06
-
-
Save wicast/71c054585508235df7af to your computer and use it in GitHub Desktop.
OpenWrt mentohust makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2006-2011 Xmlad.com | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=mentohust | |
PKG_VERSION:=0.3.1 | |
PKG_RELEASE:=1 | |
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |
PKG_SOURCE_URL:=https://github.com/HustLion/mentohust/releases/download/v1.0.0/ | |
PKG_INSTALL:=1 | |
include $(INCLUDE_DIR)/package.mk | |
define Package/mentohust | |
SECTION:=net | |
CATEGORY:=Network | |
DEPENDS:=+libpcap | |
TITLE:=An CERNET client daemon | |
URL:=https://github.com/HustLion/mentohust | |
SUBMENU:=CERNET | |
endef | |
define Package/mentohust/description | |
An CERNET client daemon, | |
Most usually used in China collages. | |
endef | |
define Build/Prepare | |
$(call Build/Prepare/Default) | |
$(SED) 's/dhclient/udhcpc -i/g' $(PKG_BUILD_DIR)/src/myconfig.c | |
endef | |
CONFIGURE_ARGS += \ | |
--disable-encodepass \ | |
--disable-notify | |
# XXX: CFLAGS are already set by Build/Compile/Default | |
MAKE_FLAGS+= \ | |
OFLAGS="" | |
define Package/mentohust/conffiles | |
/etc/mentohust.conf | |
endef | |
define Package/mentohust/install | |
$(INSTALL_DIR) $(1)/usr/sbin | |
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mentohust $(1)/usr/sbin/ | |
chmod 755 $(1)/usr/sbin/ | |
$(INSTALL_DIR) $(1)/etc | |
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/mentohust.conf $(1)/etc/ | |
endef | |
$(eval $(call BuildPackage,mentohust)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment