mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
49 lines
886 B
Makefile
49 lines
886 B
Makefile
#
|
|
# Copyright (c) 2015 Justin Liu
|
|
# Author: Justin Liu <rssnsj@gmail.com>
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ipset-lists
|
|
PKG_VERSION:=20161112
|
|
PKG_RELEASE:=
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ipset-lists
|
|
CATEGORY:=Network
|
|
TITLE:=Service for IPSET address tables
|
|
MAINTAINER:=Justin Liu <rssnsj@gmail.com>
|
|
DEPENDS:=+ipset +luci
|
|
endef
|
|
|
|
define Package/ipset-lists/conffiles
|
|
/etc/gfwlist/china-banned
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Build/Compile/Default
|
|
|
|
endef
|
|
Build/Compile = $(Build/Compile/Default)
|
|
|
|
define Package/ipset-lists/install
|
|
$(CP) -a files/* $(1)/
|
|
endef
|
|
|
|
define Package/ipset-lists/postinst
|
|
#!/bin/sh
|
|
if [ -e /etc/openwrt_release ]; then
|
|
/etc/init.d/ipset.sh restart
|
|
/etc/init.d/ipset.sh enable || :
|
|
fi
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ipset-lists))
|