1# Copyright (c) 2021-2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13import("//build/ohos.gni") 14import("//foundation/communication/netmanager_base/netmanager_base_config.gni") 15 16ohos_prebuilt_etc("netmanager_trust") { 17 source = "netmanager_trust.json" 18 module_install_dir = "profile" 19 part_name = "netmanager_base" 20 subsystem_name = "communication" 21} 22 23ohos_prebuilt_etc("netsysnative_trust") { 24 source = "netsysnative_trust.json" 25 module_install_dir = "profile" 26 part_name = "netmanager_base" 27 subsystem_name = "communication" 28} 29 30## Install netmanager_base.rc/netmanager_base.rc to /system/etc/init 31ohos_prebuilt_etc("netmanager_base.rc") { 32 source = "netmanager_base.cfg" 33 relative_install_dir = "init" 34 part_name = "netmanager_base" 35 subsystem_name = "communication" 36} 37 38## Install netsysnative.rc/netsysnative.rc to /system/etc/init 39ohos_prebuilt_etc("netsysnative.rc") { 40 source = "netsysnative.cfg" 41 relative_install_dir = "init" 42 part_name = "netmanager_base" 43 subsystem_name = "communication" 44} 45 46## Install resolv.conf to /system/etc 47ohos_prebuilt_etc("resolv.conf") { 48 source = "resolv.conf" 49 part_name = "netmanager_base" 50 subsystem_name = "communication" 51} 52 53## Install xtables.lock to /system/etc 54ohos_prebuilt_etc("xtables.lock") { 55 source = "xtables.lock" 56 part_name = "netmanager_base" 57 subsystem_name = "communication" 58} 59 60## Install netdetectionurl.conf to /system/etc 61ohos_prebuilt_etc("netdetectionurl.conf") { 62 source = "netdetectionurl.conf" 63 part_name = "netmanager_base" 64 subsystem_name = "communication" 65} 66 67## Install initHosts to /system/etc 68ohos_prebuilt_etc("initHosts") { 69 source = "initHosts" 70 part_name = "netmanager_base" 71 subsystem_name = "communication" 72} 73 74## Install detectionconfig.conf to /system/etc 75ohos_prebuilt_etc("detectionconfig.conf") { 76 source = "detectionconfig.conf" 77 part_name = "netmanager_base" 78 subsystem_name = "communication" 79} 80 81ohos_prebuilt_etc("hosts") { 82 source = "hosts" 83 symlink_path = "../../data/service/el1/network/hosts_user/hosts" 84 part_name = "netmanager_base" 85 subsystem_name = "communication" 86} 87 88group("hosts_lnk") { 89 if (netmanager_base_enable_feature_hosts) { 90 deps = [ ":hosts" ] 91 } 92} 93