3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=75d494e881f7027f4e60b114163f6b67
10 PKG_SOURCE_URL
:=@SF
/poptop
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
,PPTPD
,pptpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
36 --infodir=/usr
/share
/info \
38 --libexecdir
=/usr
/lib \
39 --localstatedir
=/var \
40 --mandir=/usr
/share
/man \
43 $(DISABLE_LARGEFILE
) \
45 --with-pppd-ip-alloc \
49 $(PKG_BUILD_DIR
)/.built
:
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
52 CFLAGS
="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 install -d
-m0755
$(IDIR_PPTPD
)/etc
60 install -m0644 .
/files
/pptpd.conf
$(IDIR_PPTPD
)/etc
/
61 install -d
-m0755
$(IDIR_PPTPD
)/etc
/init.d
62 install -m0755 .
/files
/pptpd.init
$(IDIR_PPTPD
)/etc
/init.d
/pptpd
63 install -d
-m0755
$(IDIR_PPTPD
)/etc
/ppp
64 install -m0644 .
/files
/options.pptpd
$(IDIR_PPTPD
)/etc
/ppp
/
65 install -d
-m0755
$(IDIR_PPTPD
)/usr
/sbin
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pptpd
$(IDIR_PPTPD
)/usr
/sbin
/
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pptpctrl
$(IDIR_PPTPD
)/usr
/sbin
/
68 $(RSTRIP
) $(IDIR_PPTPD
)
69 $(IPKG_BUILD
) $(IDIR_PPTPD
) $(PACKAGE_DIR
)