| 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 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= pptpd
|
|---|
| 10 | PKG_VERSION:= 1.3.0
|
|---|
| 11 | PKG_RELEASE:= 3
|
|---|
| 12 | PKG_MD5SUM:= 75d494e881f7027f4e60b114163f6b67
|
|---|
| 13 | PKG_INIT:= 60
|
|---|
| 14 |
|
|---|
| 15 | PKG_SOURCE_URL:= @SF/poptop
|
|---|
| 16 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 17 |
|
|---|
| 18 | include $(TOPDIR)/mk/package.mk
|
|---|
| 19 |
|
|---|
| 20 | $(eval $(call PKG_template,PPTPD,pptpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 21 |
|
|---|
| 22 | $(WRKBUILD)/.configured:
|
|---|
| 23 | (cd $(WRKBUILD); rm -rf config.{cache,status}; \
|
|---|
| 24 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 25 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 26 | ./configure \
|
|---|
| 27 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 29 | --build=$(GNU_HOST_NAME) \
|
|---|
| 30 | --program-prefix="" \
|
|---|
| 31 | --program-suffix="" \
|
|---|
| 32 | --prefix=/usr \
|
|---|
| 33 | --exec-prefix=/usr \
|
|---|
| 34 | --bindir=/usr/bin \
|
|---|
| 35 | --datadir=/usr/share \
|
|---|
| 36 | --includedir=/usr/include \
|
|---|
| 37 | --infodir=/usr/share/info \
|
|---|
| 38 | --libdir=/usr/lib \
|
|---|
| 39 | --libexecdir=/usr/lib \
|
|---|
| 40 | --localstatedir=/var \
|
|---|
| 41 | --mandir=/usr/share/man \
|
|---|
| 42 | --sbindir=/usr/sbin \
|
|---|
| 43 | --sysconfdir=/etc \
|
|---|
| 44 | --disable-nls \
|
|---|
| 45 | )
|
|---|
| 46 | touch $@
|
|---|
| 47 |
|
|---|
| 48 | $(WRKBUILD)/.built:
|
|---|
| 49 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 50 | CC=$(TARGET_CC) \
|
|---|
| 51 | CFLAGS="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \
|
|---|
| 52 | DESTDIR="$(WRKINST)" \
|
|---|
| 53 | INSTALL="install" \
|
|---|
| 54 | all install
|
|---|
| 55 | touch $@
|
|---|
| 56 |
|
|---|
| 57 | $(IPKG_PPTPD):
|
|---|
| 58 | install -d -m0755 $(IDIR_PPTPD)/etc
|
|---|
| 59 | install -m0644 ./files/pptpd.conf $(IDIR_PPTPD)/etc/
|
|---|
| 60 | install -d -m0755 $(IDIR_PPTPD)/etc/init.d
|
|---|
| 61 | install -m0755 ./files/pptpd.init \
|
|---|
| 62 | $(IDIR_PPTPD)/etc/init.d/S$(PKG_INIT)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) $(WRKINST)/usr/sbin/pptpd $(IDIR_PPTPD)/usr/sbin/
|
|---|
| 67 | $(CP) $(WRKINST)/usr/sbin/pptpctrl $(IDIR_PPTPD)/usr/sbin/
|
|---|
| 68 | $(RSTRIP) $(IDIR_PPTPD)
|
|---|
| 69 | $(IPKG_BUILD) $(IDIR_PPTPD) $(PACKAGE_DIR)
|
|---|