3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0e45d11cb4fa6c56cce6b1d119733ed9
10 PKG_SOURCE_URL
:=@SF
/rp-l2tp
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,RP_L2TPD
,rp-l2tpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,RP_L2TPD_MOD_CMD
,rp-l2tpd-mod-cmd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,RP_L2TPD_MOD_PPP
,rp-l2tpd-mod-ppp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
:
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 $(TARGET_CONFIGURE_OPTS
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 install -d
-m0755
$(IDIR_RP_L2TPD
)/etc
61 $(CP
) $(PKG_INSTALL_DIR
)/etc
/l2tp.conf.example
$(IDIR_RP_L2TPD
)/etc
/l2tp.conf
62 install -d
-m0755
$(IDIR_RP_L2TPD
)/etc
/init.d
63 install -m0755 .
/files
/rp-l2tpd.init
$(IDIR_RP_L2TPD
)/etc
/init.d
/rp-l2tpd
64 install -d
-m0755
$(IDIR_RP_L2TPD
)/usr
/lib
/l2tp
65 install -d
-m0755
$(IDIR_RP_L2TPD
)/usr
/sbin
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/l2tpd
$(IDIR_RP_L2TPD
)/usr
/sbin
/
67 $(RSTRIP
) $(IDIR_RP_L2TPD
)
68 $(IPKG_BUILD
) $(IDIR_RP_L2TPD
) $(PACKAGE_DIR
)
70 $(IPKG_RP_L2TPD_MOD_CMD
):
71 install -d
-m0755
$(IDIR_RP_L2TPD_MOD_CMD
)/usr
/lib
/l2tp
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/l2tp
/cmd.so
$(IDIR_RP_L2TPD_MOD_CMD
)/usr
/lib
/l2tp
/
73 install -d
-m0755
$(IDIR_RP_L2TPD_MOD_CMD
)/usr
/sbin
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/l2tp-control
$(IDIR_RP_L2TPD_MOD_CMD
)/usr
/sbin
/
75 $(RSTRIP
) $(IDIR_RP_L2TPD_MOD_CMD
)
76 $(IPKG_BUILD
) $(IDIR_RP_L2TPD_MOD_CMD
) $(PACKAGE_DIR
)
78 $(IPKG_RP_L2TPD_MOD_PPP
):
79 install -d
-m0755
$(IDIR_RP_L2TPD_MOD_PPP
)/usr
/lib
/l2tp
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/l2tp
/sync-pppd.so
$(IDIR_RP_L2TPD_MOD_PPP
)/usr
/lib
/l2tp
/
81 $(RSTRIP
) $(IDIR_RP_L2TPD_MOD_PPP
)
82 $(IPKG_BUILD
) $(IDIR_RP_L2TPD_MOD_PPP
) $(PACKAGE_DIR
)