shairplay: remove
[feed/packages.git] / net / eoip / Makefile
1 #
2 # Copyright (C) 2020 Bogdan Shatik <bogdikxxx@mail.ru>
3 #
4 # This is free software, licensed under the GNU General Public License v3.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=eoip
11 PKG_VERSION:=0.5
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Bogdan Shatik <bogdikxxx@mail.ru>
14 PKG_LICENSE:=GPL-3.0-or-later
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://github.com/bogdik/openwrt-linux-eoip/releases/download/0.5/
17 PKG_HASH:=22f6f3864665adef26c7fbd57543a396108ba2dff1282af8143f18bc2a9912f8
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/eoip
24 TITLE:=Mikrotik-compatible userspace EoIP tunnel
25 URL:=https://code.google.com/p/linux-eoip/
26 SECTION:=net
27 CATEGORY:=Network
28 SUBMENU:=VPN
29 DEPENDS:=+kmod-tun +libpthread +liblzo
30 endef
31
32 define Package/eoip/conffiles
33 /etc/config/eoip
34 endef
35
36 define Package/eoip/description
37 linux-eoip can create ethernet tunnels compatible with Mikrotik EoIP tunnel.
38 At current moment it is easiest way to create stateless tunnel with Mikrotik.
39 endef
40
41 CONFIGURE_ARGS += \
42 --with-kernel="$(LINUX_DIR)" \
43 --with-zlib="$(STAGING_DIR)/usr" \
44 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
45
46 define Package/eoip/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eoip $(1)/usr/bin/
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DATA) ./files/eoip.config $(1)/etc/config/eoip
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/eoip.init $(1)/etc/init.d/eoip
53 endef
54
55 $(eval $(call BuildPackage,eoip))