fix dnet-config (remove references to /usr/{include,lib}),
[openwrt.git] / openwrt / package / rp-pppoe / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=rp-pppoe
6 PKG_VERSION:=3.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=
9
10 PKG_SOURCE_URL:=http://roaringpenguin.com/penguin/pppoe/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,PPPOE_CLIENT,pppoe-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,PPPOE_RELAY,pppoe-relay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,PPPOE_SERVER,pppoe-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22 $(eval $(call PKG_template,PPPOE_SNIFF,pppoe-sniff,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR)/src ; rm -rf config.{cache,status}; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 ac_cv_func_setvbuf_reversed=no \
29 ac_cv_sizeof_unsigned_short=2 \
30 ac_cv_sizeof_unsigned_int=4 \
31 ac_cv_sizeof_unsigned_long=4 \
32 ac_cv_linux_kernel_pppoe=yes \
33 ac_cv_pack_bitfields_reversed=yes \
34 ./configure \
35 --target=$(GNU_TARGET_NAME) \
36 --host=$(GNU_TARGET_NAME) \
37 --build=$(GNU_HOST_NAME) \
38 --program-prefix="" \
39 --program-suffix="" \
40 --prefix=/usr \
41 --exec-prefix=/usr \
42 --bindir=/usr/bin \
43 --datadir=/usr/share \
44 --includedir=/usr/include \
45 --infodir=/usr/share/info \
46 --libdir=/usr/lib \
47 --libexecdir=/usr/lib \
48 --localstatedir=/var \
49 --mandir=/usr/share/man \
50 --sbindir=/usr/sbin \
51 --sysconfdir=/etc \
52 $(DISABLE_LARGEFILE) \
53 $(DISABLE_NLS) \
54 )
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 $(MAKE) -C $(PKG_BUILD_DIR)/src \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 all install
61 touch $@
62
63 $(IPKG_PPPOE_CLIENT):
64 install -d -m0755 $(IDIR_PPPOE_CLIENT)/etc/init.d
65 install -m0755 ./files/pppoe-client.init $(IDIR_PPPOE_CLIENT)/etc/init.d/pppoe-client
66 install -d -m0755 $(IDIR_PPPOE_CLIENT)/etc/ppp
67 install -m0644 $(PKG_INSTALL_DIR)/etc/pppoe.conf $(IDIR_PPPOE_CLIENT)/etc/
68 install -d -m0755 $(IDIR_PPPOE_CLIENT)/usr/sbin
69 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe $(IDIR_PPPOE_CLIENT)/usr/sbin/
70 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/adsl-* $(IDIR_PPPOE_CLIENT)/usr/sbin/
71 $(RSTRIP) $(IDIR_PPPOE_CLIENT)
72 $(IPKG_BUILD) $(IDIR_PPPOE_CLIENT) $(PACKAGE_DIR)
73
74 $(IPKG_PPPOE_RELAY):
75 install -d -m0755 $(IDIR_PPPOE_RELAY)/etc/default
76 install -m0755 ./files/pppoe-relay.default $(IDIR_PPPOE_RELAY)/etc/default/pppoe-relay
77 install -d -m0755 $(IDIR_PPPOE_RELAY)/etc/init.d
78 install -m0755 ./files/pppoe-relay.init $(IDIR_PPPOE_RELAY)/etc/init.d/pppoe-relay
79 install -d -m0755 $(IDIR_PPPOE_RELAY)/usr/sbin
80 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe-relay $(IDIR_PPPOE_RELAY)/usr/sbin/
81 $(RSTRIP) $(IDIR_PPPOE_RELAY)
82 $(IPKG_BUILD) $(IDIR_PPPOE_RELAY) $(PACKAGE_DIR)
83
84 $(IPKG_PPPOE_SERVER):
85 install -d -m0755 $(IDIR_PPPOE_SERVER)/etc/default
86 install -m0755 ./files/pppoe-server.default $(IDIR_PPPOE_SERVER)/etc/default/pppoe-server
87 install -d -m0755 $(IDIR_PPPOE_SERVER)/etc/init.d
88 install -m0755 ./files/pppoe-server.init $(IDIR_PPPOE_SERVER)/etc/init.d/pppoe-server
89 install -d -m0755 $(IDIR_PPPOE_SERVER)/etc/ppp
90 install -m0644 $(PKG_INSTALL_DIR)/etc/ppp/pppoe-server-options $(IDIR_PPPOE_SERVER)/etc/ppp/
91 install -d -m0755 $(IDIR_PPPOE_SERVER)/usr/sbin
92 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe-server $(IDIR_PPPOE_SERVER)/usr/sbin/
93 $(RSTRIP) $(IDIR_PPPOE_SERVER)
94 $(IPKG_BUILD) $(IDIR_PPPOE_SERVER) $(PACKAGE_DIR)
95
96 $(IPKG_PPPOE_SNIFF):
97 install -d -m0755 $(IDIR_PPPOE_SNIFF)/usr/sbin
98 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe-sniff $(IDIR_PPPOE_SNIFF)/usr/sbin/
99 $(RSTRIP) $(IDIR_PPPOE_SNIFF)
100 $(IPKG_BUILD) $(IDIR_PPPOE_SNIFF) $(PACKAGE_DIR)
101
This page took 0.042023 seconds and 5 git commands to generate.