add new wl integration patches, fixes tc issues
[openwrt.git] / openwrt / package / l2tpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=l2tpd
6 PKG_VERSION:=0.70pre
7 PKG_UPSTREAM_VERSION:=0.70-pre20031121
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=3f2707b6e16a8cb72e7bf64f574202fa
10
11 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/l2tpd
12 PKG_SOURCE:=$(PKG_NAME)_$(PKG_UPSTREAM_VERSION).orig.tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).orig
16
17 IPKG_L2TPD:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
18 IDIR_L2TPD:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME)
19 INFO_L2TPD:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list
20
21 $(DL_DIR)/$(PKG_SOURCE):
22 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
23
24 $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
25 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
26 $(PATCH) $(PKG_BUILD_DIR) ./patches
27 touch $(PKG_BUILD_DIR)/.prepared
28
29 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.prepared
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 $(TARGET_CONFIGURE_OPTS) \
32 CC=$(TARGET_CC) \
33 CFLAGS="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION"
34
35 $(IPKG_L2TPD): $(PKG_BUILD_DIR)/$(PKG_NAME)
36 $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_L2TPD) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
37 mkdir -p $(IDIR_L2TPD)/usr/sbin
38 cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_L2TPD)/usr/sbin/
39 $(STRIP) $(IDIR_L2TPD)/usr/sbin/*
40 mkdir -p $(PACKAGE_DIR)
41 $(IPKG_BUILD) $(IDIR_L2TPD) $(PACKAGE_DIR)
42
43 $(INFO_L2TPD): $(IPKG_L2TPD)
44 $(IPKG) install $(IPKG_L2TPD)
45
46 source: $(DL_DIR)/$(PKG_SOURCE)
47 prepare: $(PKG_BUILD_DIR)/.prepared
48 compile: $(IPKG_L2TPD)
49 install: $(INFO_L2TPD)
50
51 clean:
52 rm -rf $(PKG_BUILD_DIR) $(IPKG_L2TPD)
This page took 0.052364 seconds and 5 git commands to generate.