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