2 # Copyright (C) 2014 Openwrt.org
4 # This is free software, licensed under the GNU General Public License v2.
6 include $(TOPDIR
)/rules.mk
11 PKG_LICENCE
:=GPL-3.0
-or-later
13 include $(INCLUDE_DIR
)/package.mk
18 SUBMENU
:=Routing and Redirection
19 TITLE
:=BCP38 compliance
20 URL
:=https
://github.com
/dtaht
/ceropackages-3.10
21 MAINTAINER
:=Toke Høiland-Jørgensen
<toke@toke.dk
>
26 define Package
/bcp38
/description
27 bcp38 implements IETF BCP38 for home routers.
28 See https
://tools.ietf.org
/html
/bcp38.
30 This package provides BCP38 for IPv4 only
- IPv6 uses source
31 specific default routes
, so no firewall configuration is needed.
34 define Package
/bcp38
/conffiles
41 define Build
/Configure
47 define Package
/bcp38
/install
48 $(INSTALL_DIR
) $(1)/etc
/config
49 $(INSTALL_CONF
) .
/files
/bcp38.config
$(1)/etc
/config
/bcp38
50 $(INSTALL_DIR
) $(1)/usr
/lib
/bcp38
51 $(INSTALL_BIN
) .
/files
/run.sh
$(1)/usr
/lib
/bcp38
/run.sh
52 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
53 $(INSTALL_BIN
) .
/files
/bcp38.defaults
$(1)/etc
/uci-defaults
/bcp38
54 $(INSTALL_DIR
) $(1)/etc
/init.d
55 $(INSTALL_BIN
) .
/files
/bcp38.init
$(1)/etc
/init.d
/bcp38
58 define Package
/bcp38
/postinst
60 [ -x
/etc
/uci-defaults
/bcp38
] && /etc
/uci-defaults
/bcp38 || exit
0
63 define Package
/bcp38
/postrm
65 uci delete firewall.bcp38
69 $(eval
$(call BuildPackage
,bcp38
))