1 # Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
2 # This is free software, licensed under the Apache 2.0 license.
4 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:=freifunk-policyrouting
9 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
11 include $(INCLUDE_DIR
)/package.mk
13 define Package
/freifunk-policyrouting
17 TITLE
:=Freifunk policy routing addon
21 define Package
/freifunk-policyrouting
/description
22 Allows you to send your own traffic via your own default gateway while sending traffic received from the mesh to a gateway in the mesh.
26 mkdir
-p
$(PKG_BUILD_DIR
)
29 define Build
/Configure
35 define Package
/freifunk-policyrouting
/install
39 define Package
/freifunk-policyrouting
/postinst
41 [ -n
"$${IPKG_INSTROOT}" ] ||
{
42 /etc
/init.d
/freifunk-policyrouting enabled ||
/etc
/init.d
/freifunk-policyrouting enable
47 $(eval
$(call BuildPackage
,freifunk-policyrouting
))