summaryrefslogtreecommitdiffstats
path: root/package/pptp-linux/pptp-linux.mk
blob: ee0fab6cfe81711593bfcdc433b075795937b429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
################################################################################
#
# pptp-linux
#
################################################################################

PPTP_LINUX_VERSION = 1.7.2
PPTP_LINUX_SITE = http://downloads.sourceforge.net/project/pptpclient/pptp/pptp-$(PPTP_LINUX_VERSION)
PPTP_LINUX_SOURCE = pptp-$(PPTP_LINUX_VERSION).tar.gz
PPTP_LINUX_MAKE = $(MAKE1)
PPTP_LINUX_LICENSE = GPLv2+
PPTP_LINUX_LICENSE_FILES = COPYING

define PPTP_LINUX_BUILD_CMDS
	$(MAKE) -C $(@D) OPTIMIZE= DEBUG= \
		CC="$(TARGET_CC)" \
		CFLAGS="$(TARGET_CFLAGS)" \
		LDFLAGS="$(TARGET_LDFLAGS)"
endef

define PPTP_LINUX_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0755 -D $(@D)/pptp $(TARGET_DIR)/usr/sbin/pptp
	$(INSTALL) -m 0644 -D $(@D)/pptp.8 $(TARGET_DIR)/usr/share/man/man8/pptp.8
endef

define PPTP_LINUX_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/sbin/pptp
	rm -f $(TARGET_DIR)/usr/share/man/man8/pptp.8
endef

$(eval $(generic-package))
OpenPOWER on IntegriCloud