source: freewrt/package/pptpd/Makefile@ 2400aa1

freewrt_2_0
Last change on this file since 2400aa1 was 65d016f, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix half of the init scripts not conforming to
our standard. thx very much ulmen!

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1000 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 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:= pptpd
10PKG_VERSION:= 1.3.0
11PKG_RELEASE:= 3
12PKG_MD5SUM:= 75d494e881f7027f4e60b114163f6b67
13PKG_INIT:= 60
14
15PKG_SOURCE_URL:= @SF/poptop
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18include $(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)
Note: See TracBrowser for help on using the repository browser.