source: freewrt/package/rp-pppoe/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 3.6 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= rp-pppoe
10PKG_VERSION:= 3.5
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 97972f8f8f6a3ab9b7070333a6a29c4b
13
14PKG_SOURCE_URL:= http://roaringpenguin.com/penguin/pppoe/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.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$(WRKBUILD)/.configured:
25 (cd $(WRKBUILD)/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 --enable-largefile \
53 --disable-nls \
54 )
55 touch $@
56
57$(WRKBUILD)/.built:
58 $(MAKE) -C $(WRKBUILD)/src \
59 DESTDIR="$(WRKINST)" \
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 $(WRKINST)/etc/pppoe.conf $(IDIR_PPPOE_CLIENT)/etc/
68 install -d -m0755 $(IDIR_PPPOE_CLIENT)/usr/sbin
69 $(CP) $(WRKINST)/usr/sbin/pppoe $(IDIR_PPPOE_CLIENT)/usr/sbin/
70 $(CP) $(WRKINST)/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) $(WRKINST)/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 $(WRKINST)/etc/ppp/pppoe-server-options $(IDIR_PPPOE_SERVER)/etc/ppp/
91 install -d -m0755 $(IDIR_PPPOE_SERVER)/usr/sbin
92 $(CP) $(WRKINST)/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) $(WRKINST)/usr/sbin/pppoe-sniff $(IDIR_PPPOE_SNIFF)/usr/sbin/
99 $(RSTRIP) $(IDIR_PPPOE_SNIFF)
100 $(IPKG_BUILD) $(IDIR_PPPOE_SNIFF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.