source: packages/net/rp-pppoe/Makefile

Last change on this file was 35647, checked in by luka, 5 years ago

[packages] rp-pppoe: upgrade to version 3.11

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 3.8 KB
Line 
1#
2# Copyright (C) 2006-2013 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=rp-pppoe
11PKG_VERSION:=3.11
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://roaringpenguin.com/files/download
16PKG_MD5SUM:=13b5900c56bd602df6cc526e5e520722
17
18PKG_BUILD_DEPENDS:=ppp
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/rp-pppoe/Default
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+ppp
26  TITLE:=PPPoE (PPP over Ethernet)
27  URL:=http://roaringpenguin.com/products/pppoe
28  SUBMENU:=dial-in/up
29endef
30
31define Package/rp-pppoe/Default/description
32  Dubbed RP-PPPoE, this open-source product is ideal for Linux users with
33  a DSL "modem" whose Internet service provider uses PPPoE.
34endef
35
36define Package/rp-pppoe-client
37  $(call Package/rp-pppoe/Default)
38  DEPENDS += @BROKEN
39  TITLE+= client
40endef
41
42define Package/rp-pppoe-client/description
43$(call Package/rp-pppoe/Default/description)
44 .
45 This package contains pppoe-connect.
46endef
47
48define Package/rp-pppoe-relay
49  $(call Package/rp-pppoe/Default)
50  TITLE+= relay
51endef
52
53define Package/rp-pppoe-relay/description
54$(call Package/rp-pppoe/Default/description)
55 .
56 This package contains pppoe-relay.
57endef
58
59define Package/rp-pppoe-server
60  $(call Package/rp-pppoe/Default)
61  TITLE+= server
62endef
63
64define Package/rp-pppoe-server/conffiles
65/etc/ppp/pppoe-server-options
66/etc/default/pppoe-server
67endef
68
69define Package/rp-pppoe-server/description
70$(call Package/rp-pppoe/Default/description)
71 .
72 This package contains pppoe-server.
73endef
74
75define Package/rp-pppoe-sniff
76  $(call Package/rp-pppoe/Default)
77  TITLE+= sniffer
78endef
79
80define Package/rp-pppoe-sniff/description
81$(call Package/rp-pppoe/Default/description)
82 .
83 This package contains pppoe-sniff.
84endef
85
86TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/src/libevent
87CONFIGURE_PATH := ./src
88CONFIGURE_ARGS += ac_cv_path_PPPD=/usr/sbin/pppd --enable-plugin=$(STAGING_DIR)/usr/include/
89MAKE_FLAGS := DESTDIR="$(PKG_INSTALL_DIR)" install
90MAKE_PATH := ./src
91
92define Package/rp-pppoe-client/install
93        $(INSTALL_DIR) $(1)/etc/init.d
94        $(INSTALL_BIN) ./files/pppoe-client.init $(1)/etc/init.d/pppoe-client
95        $(INSTALL_DIR) $(1)/etc/ppp
96        $(CP) $(PKG_INSTALL_DIR)/etc/ppp/pppoe.conf $(1)/etc/ppp/
97        $(INSTALL_DIR) $(1)/usr/sbin
98        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe $(1)/usr/sbin/
99        $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/pppoe-connect $(1)/usr/sbin/
100        $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/pppoe-start $(1)/usr/sbin/
101        $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/pppoe-stop $(1)/usr/sbin/
102        $(SED) 's,modprobe,insmod,g' $(1)/usr/sbin/pppoe-connect
103endef
104
105define Package/rp-pppoe-relay/install
106        $(INSTALL_DIR) $(1)/etc/default
107        $(INSTALL_BIN) ./files/pppoe-relay.default $(1)/etc/default/pppoe-relay
108        $(INSTALL_DIR) $(1)/etc/init.d
109        $(INSTALL_BIN) ./files/pppoe-relay.init $(1)/etc/init.d/pppoe-relay
110        $(INSTALL_DIR) $(1)/usr/sbin
111        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-relay $(1)/usr/sbin/
112endef
113
114define Package/rp-pppoe-server/install
115        $(INSTALL_DIR) $(1)/etc/default
116        $(INSTALL_BIN) ./files/pppoe-server.default $(1)/etc/default/pppoe-server
117        $(INSTALL_DIR) $(1)/etc/init.d
118        $(INSTALL_BIN) ./files/pppoe-server.init $(1)/etc/init.d/pppoe-server
119        $(INSTALL_DIR) $(1)/etc/ppp
120        $(INSTALL_DIR) $(1)/etc/ppp/plugins
121        $(CP) $(PKG_INSTALL_DIR)/etc/ppp/pppoe-server-options $(1)/etc/ppp/
122        $(INSTALL_DIR) $(1)/usr/sbin
123        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-server $(1)/usr/sbin/
124        $(CP) $(PKG_INSTALL_DIR)/etc/ppp/plugins/rp-pppoe.so $(1)/etc/ppp/plugins/
125endef
126
127define Package/rp-pppoe-sniff/install
128        $(INSTALL_DIR) $(1)/usr/sbin
129        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-sniff $(1)/usr/sbin/
130endef
131
132$(eval $(call BuildPackage,rp-pppoe-client))
133$(eval $(call BuildPackage,rp-pppoe-relay))
134$(eval $(call BuildPackage,rp-pppoe-server))
135$(eval $(call BuildPackage,rp-pppoe-sniff))
Note: See TracBrowser for help on using the repository browser.