3 include $(TOPDIR
)/rules.mk
7 PKG_UPSTREAM_VERSION
:=0.70-pre20031121
9 PKG_MD5SUM
:=3f2707b6e16a8cb72e7bf64f574202fa
11 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/l
/l2tpd
12 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_UPSTREAM_VERSION
).orig.
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_UPSTREAM_VERSION
).orig
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
21 $(DL_DIR
)/$(PKG_SOURCE
):
22 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
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
29 $(PKG_BUILD_DIR
)/$(PKG_NAME
): $(PKG_BUILD_DIR
)/.prepared
30 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
31 $(TARGET_CONFIGURE_OPTS
) \
33 CFLAGS
="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION"
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
)
43 $(INFO_L2TPD
): $(IPKG_L2TPD
)
44 $(IPKG
) install $(IPKG_L2TPD
)
46 source
: $(DL_DIR
)/$(PKG_SOURCE
)
47 prepare
: $(PKG_BUILD_DIR
)/.prepared
48 compile
: $(IPKG_L2TPD
)
49 install: $(INFO_L2TPD
)
52 rm -rf
$(PKG_BUILD_DIR
) $(IPKG_L2TPD
)