Remove executable bit from the Makefile, also definitively closes #724
[packages.git] / net / pptpd / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id:$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pptpd
12 PKG_VERSION:=1.3.0
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67
15
16 PKG_SOURCE_URL:=@SF/poptop
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/pptpd
27   SECTION:=net
28   CATEGORY:=Network
29   DEPENDS:=+kmod-ppp +kmod-gre
30   TITLE:=PopTop pptp server
31   DESCRIPTION:=PopTop pptp server
32 endef
33
34
35 define Build/Configure
36 $(call Build/Configure/Default,--with-pppd-ip-alloc --with-bcrelay)
37 endef
38
39 define Build/Compile
40   $(call Build/Compile/Default, \
41                 CFLAGS="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \
42                 DESTDIR="$(PKG_INSTALL_DIR)" \
43                 INSTALL="install" \
44                 all install \
45   )
46 endef
47
48 define Package/pptpd/install
49         install -d -m0755 $(1)/etc
50         install -m0644 ./files/pptpd.conf $(1)/etc/
51         install -d -m0755 $(1)/etc/init.d
52         install -m0755 ./files/pptpd.init $(1)/etc/init.d/S50pptpd
53         install -d -m0755 $(1)/etc/ppp
54         install -m0644 ./files/options.pptpd $(1)/etc/ppp/
55         install -d -m0755 $(1)/usr/sbin
56         install -d -m0755 $(1)/usr/lib/pptpd
57         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(1)/usr/sbin/
58         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(1)/usr/sbin/
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd
60         $(STRIP) $1/usr/sbin/*
61         $(STRIP) $1/usr/lib/pptpd/*
62 endef
63
64 $(eval $(call BuildPackage,pptpd))