blob: 1145bf3774118b39c059518fd289fbb1fdf3dd47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
# This is free software, licensed under the Apache 2.0 license.
include $(TOPDIR)/rules.mk
PKG_NAME:=freifunk-policyrouting
PKG_RELEASE:=3
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/freifunk-policyrouting
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=9. Freifunk
TITLE:=Freifunk policy routing addon
DEPENDS:=+ip
endef
define Package/freifunk-policyrouting/description
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.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/freifunk-policyrouting/install
$(CP) ./files/* $(1)/
endef
define Package/freifunk-policyrouting/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
/etc/init.d/freifunk-policyrouting enabled || /etc/init.d/freifunk-policyrouting enable
exit 0
}
endef
$(eval $(call BuildPackage,freifunk-policyrouting))
|