disable speedbooster if wds is enabled
[openwrt.git] / package / pptpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=pptpd
6 PKG_VERSION:=1.2.3
7 PKG_RELEASE:=2
8 PKG_MD5SUM:=a521e40ca304b0c125cc25f9b9d03324
9
10 PKG_SOURCE_URL:=@SF/poptop
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,PPTPD,pptpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_LARGEFILE) \
44 $(DISABLE_NLS) \
45 --with-pppd-ip-alloc \
46 )
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 CC=$(TARGET_CC) \
52 CFLAGS="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 INSTALL="install" \
55 all install
56 touch $@
57
58 $(IPKG_PPTPD):
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 -fpR $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(IDIR_PPTPD)/usr/sbin/
67 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(IDIR_PPTPD)/usr/sbin/
68 $(RSTRIP) $(IDIR_PPTPD)
69 $(IPKG_BUILD) $(IDIR_PPTPD) $(PACKAGE_DIR)
This page took 0.040123 seconds and 5 git commands to generate.