From 097635b79bc6ddd6066a8369db6e298a25daa96e Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 24 Aug 2004 23:50:14 +0000 Subject: massive changes - sstrip cleanup from mjn3 - various patches from nico and others: http://openwrt.org/forum/viewtopic.php?t=368 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@145 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- obsolete-buildroot/make/MISSING.mk | 3 + obsolete-buildroot/make/chillispot.mk | 74 ++++++++----- obsolete-buildroot/make/dhcp-fwd.mk | 92 ++++++++++++++++ obsolete-buildroot/make/ipkg-utils.mk | 3 +- obsolete-buildroot/make/iproute2.mk | 4 +- obsolete-buildroot/make/iptables.mk | 16 +++ obsolete-buildroot/make/kmod-ipt6.mk | 15 +++ obsolete-buildroot/make/kmod-ipv6.mk | 15 +++ obsolete-buildroot/make/nfs-modules.mk | 49 +++++++++ obsolete-buildroot/make/openwrt.mk | 3 +- obsolete-buildroot/make/ppp-async-module.mk | 41 +++++++ obsolete-buildroot/make/ppp-mppe-module.mk | 41 +++++++ obsolete-buildroot/make/ppp.mk | 160 ++++++++++++++++++++++++++++ obsolete-buildroot/make/pptp-server.mk | 105 ++++++++++++++++++ obsolete-buildroot/make/tun-module.mk | 41 +++++++ 15 files changed, 629 insertions(+), 33 deletions(-) create mode 100644 obsolete-buildroot/make/MISSING.mk create mode 100644 obsolete-buildroot/make/dhcp-fwd.mk create mode 100644 obsolete-buildroot/make/kmod-ipt6.mk create mode 100644 obsolete-buildroot/make/kmod-ipv6.mk create mode 100644 obsolete-buildroot/make/nfs-modules.mk create mode 100644 obsolete-buildroot/make/ppp-async-module.mk create mode 100644 obsolete-buildroot/make/ppp-mppe-module.mk create mode 100644 obsolete-buildroot/make/ppp.mk create mode 100644 obsolete-buildroot/make/pptp-server.mk create mode 100644 obsolete-buildroot/make/tun-module.mk (limited to 'obsolete-buildroot/make') diff --git a/obsolete-buildroot/make/MISSING.mk b/obsolete-buildroot/make/MISSING.mk new file mode 100644 index 000000000..b1cf83d20 --- /dev/null +++ b/obsolete-buildroot/make/MISSING.mk @@ -0,0 +1,3 @@ +## missing variables that should be declared somewhere + +LINUX_VERSION := 2.4.20 diff --git a/obsolete-buildroot/make/chillispot.mk b/obsolete-buildroot/make/chillispot.mk index 206eb2ca1..9cc9a9448 100644 --- a/obsolete-buildroot/make/chillispot.mk +++ b/obsolete-buildroot/make/chillispot.mk @@ -4,7 +4,9 @@ # ############################################################# -CHILLISPOT_VERSION:=0.95 +CHILLISPOT_VERSION:=0.96 +CHILLISPOT_RELEASE:=1 + CHILLISPOT_SOURCE:=chillispot-$(CHILLISPOT_VERSION).tar.gz CHILLISPOT_SITE:=http://www.chillispot.org/download/ CHILLISPOT_CAT:=zcat @@ -12,20 +14,27 @@ CHILLISPOT_DIR:=$(BUILD_DIR)/chillispot-$(CHILLISPOT_VERSION) CHILLISPOT_BINARY:=src/chilli CHILLISPOT_TARGET_BINARY:=usr/sbin/chilli +CHILLISPOT_BUILD_DIR := $(BUILD_DIR)/chillispot_$(CHILLISPOT_VERSION)-$(CHILLISPOT_RELEASE) +CHILLISPOT_IPK_DIR := $(OPENWRT_IPK_DIR)/chillispot +CHILLISPOT_IPK := $(CHILLISPOT_BUILD_DIR)_$(ARCH).ipk + + $(DL_DIR)/$(CHILLISPOT_SOURCE): $(WGET) -P $(DL_DIR) $(CHILLISPOT_SITE)/$(CHILLISPOT_SOURCE) chillispot-source: $(DL_DIR)/$(CHILLISPOT_SOURCE) -$(CHILLISPOT_DIR)/.unpacked: $(DL_DIR)/$(CHILLISPOT_SOURCE) +$(CHILLISPOT_DIR)/.stamp-unpacked: $(DL_DIR)/$(CHILLISPOT_SOURCE) $(CHILLISPOT_CAT) $(DL_DIR)/$(CHILLISPOT_SOURCE) | tar -C $(BUILD_DIR) -xvf - - sed -i -e s:"-ggdb"::g $(CHILLISPOT_DIR)/src/Makefile.in - touch $(CHILLISPOT_DIR)/.unpacked -$(CHILLISPOT_DIR)/.configured: $(CHILLISPOT_DIR)/.unpacked + touch $(CHILLISPOT_DIR)/.stamp-unpacked + +$(CHILLISPOT_DIR)/.stamp-configured: $(CHILLISPOT_DIR)/.stamp-unpacked (cd $(CHILLISPOT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + ac_cv_func_malloc_0_nonnull=yes \ + ac_cv_func_memcmp_working=yes \ ac_cv_func_setvbuf_reversed=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ @@ -44,35 +53,42 @@ $(CHILLISPOT_DIR)/.configured: $(CHILLISPOT_DIR)/.unpacked $(DISABLE_NLS) \ $(DISABLE_LARGEFILE) \ ); - sed -i -e s:"#define HAVE_MALLOC 0":"#define HAVE_MALLOC 1":g \ - -e s:"#define malloc rpl_malloc"::g \ - $(CHILLISPOT_DIR)/config.h - touch $(CHILLISPOT_DIR)/.configured + touch $(CHILLISPOT_DIR)/.stamp-configured -$(CHILLISPOT_DIR)/$(CHILLISPOT_BINARY): $(CHILLISPOT_DIR)/.configured +$(CHILLISPOT_DIR)/.stamp-built: $(CHILLISPOT_DIR)/.stamp-configured $(MAKE) CC=$(TARGET_CC) $(TARGET_CONFIGURE_OPTS) -C $(CHILLISPOT_DIR) + touch $(CHILLISPOT_DIR)/.stamp-built + +$(CHILLISPOT_BUILD_DIR)/CONTROL/control: $(CHILLISPOT_DIR)/.stamp-built + rm -rf $(CHILLISPOT_BUILD_DIR) + mkdir -p $(CHILLISPOT_BUILD_DIR)/usr/sbin + cp -a $(CHILLISPOT_DIR)/src/chilli $(CHILLISPOT_BUILD_DIR)/usr/sbin/ + $(STRIP) $(CHILLISPOT_BUILD_DIR)/usr/sbin/* + mkdir -p $(CHILLISPOT_BUILD_DIR)/etc + cp -a $(CHILLISPOT_DIR)/doc/chilli.conf $(CHILLISPOT_BUILD_DIR)/etc + cp -a $(CHILLISPOT_IPK_DIR)/root/* $(CHILLISPOT_BUILD_DIR)/ + chmod 0755 $(CHILLISPOT_BUILD_DIR)/etc + chmod 0600 $(CHILLISPOT_BUILD_DIR)/etc/chilli.conf + chmod 0755 $(CHILLISPOT_BUILD_DIR)/etc/init.d + chmod 0755 $(CHILLISPOT_BUILD_DIR)/etc/init.d/* + chmod 0755 $(CHILLISPOT_BUILD_DIR)/usr + chmod 0755 $(CHILLISPOT_BUILD_DIR)/usr/sbin + chmod 0755 $(CHILLISPOT_BUILD_DIR)/usr/sbin/* + cp -a $(CHILLISPOT_IPK_DIR)/CONTROL $(CHILLISPOT_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(CHILLISPOT_VERSION)-$(CHILLISPOT_RELEASE)/" $(CHILLISPOT_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(CHILLISPOT_BUILD_DIR)/CONTROL/control + + touch $(CHILLISPOT_BUILD_DIR)/CONTROL/control + + +$(CHILLISPOT_IPK): $(CHILLISPOT_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(CHILLISPOT_BUILD_DIR) + -# This stuff is needed to work around GNU make deficiencies -chillispot-target_binary: $(CHILLISPOT_DIR)/$(CHILLISPOT_BINARY) - @if [ -L $(TARGET_DIR)/$(CHILLISPOT_TARGET_BINARY) ] ; then \ - rm -f $(TARGET_DIR)/$(CHILLISPOT_TARGET_BINARY); fi; - @if [ ! -f $(CHILLISPOT_DIR)/$(CHILLISPOT_BINARY) -o $(TARGET_DIR)/$(CHILLISPOT_TARGET_BINARY) \ - -ot $(CHILLISPOT_DIR)/$(CHILLISPOT_BINARY) ] ; then \ - set -x; \ - $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(CHILLISPOT_DIR) install; \ - $(STRIP) $(TARGET_DIR)/$(CHILLISPOT_TARGET_BINARY) - rm -rf $(TARGET_DIR)/usr/man; fi; - -chillispot: $(CHILLISPOT_DIR)/$(CHILLISPOT_BINARY) - #chillispot-target_binary - $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(CHILLISPOT_DIR) install - $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(CHILLISPOT_DIR)/doc install - $(STRIP) $(TARGET_DIR)/$(CHILLISPOT_TARGET_BINARY) - +chillispot-ipk: ipkg-utils $(CHILLISPOT_IPK) chillispot-clean: - $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(CHILLISPOT_DIR) uninstall - -$(MAKE) -C $(CHILLISPOT_DIR) clean + $(MAKE) -C $(CHILLISPOT_DIR) clean chillispot-dirclean: rm -rf $(CHILLISPOT_DIR) diff --git a/obsolete-buildroot/make/dhcp-fwd.mk b/obsolete-buildroot/make/dhcp-fwd.mk new file mode 100644 index 000000000..b4f0a9a56 --- /dev/null +++ b/obsolete-buildroot/make/dhcp-fwd.mk @@ -0,0 +1,92 @@ +## dhcp-fwd + +DHCP_FWD_VERSION := 0.7 +DHCP_FWD_RELEASE := 1 + +DHCP_FWD_SOURCE := dhcp-forwarder-$(DHCP_FWD_VERSION).tar.bz2 +DHCP_FWD_SITE := http://www-user.tu-chemnitz.de/~ensc/dhcp-fwd/files/ +DHCP_FWD_DIR := $(BUILD_DIR)/dhcp-forwarder-$(DHCP_FWD_VERSION) +DHCP_FWD_CAT := bzcat + +DHCP_FWD_BUILD_DIR := $(BUILD_DIR)/dhcp-fwd_$(DHCP_FWD_VERSION)-$(DHCP_FWD_RELEASE) +DHCP_FWD_IPK_DIR := $(OPENWRT_IPK_DIR)/dhcp-fwd +DHCP_FWD_IPK := $(DHCP_FWD_BUILD_DIR)_$(ARCH).ipk + + +$(DL_DIR)/$(DHCP_FWD_SOURCE): + $(WGET) -P $(DL_DIR) $(DHCP_FWD_SITE)/$(DHCP_FWD_SOURCE) + + +$(DHCP_FWD_DIR)/.stamp-unpacked: $(DL_DIR)/$(DHCP_FWD_SOURCE) + $(DHCP_FWD_CAT) $(DL_DIR)/$(DHCP_FWD_SOURCE) | tar -C $(BUILD_DIR) -xvf - + + touch $(DHCP_FWD_DIR)/.stamp-unpacked + + +$(DHCP_FWD_DIR)/.stamp-configured: $(DHCP_FWD_DIR)/.stamp-unpacked + cd $(DHCP_FWD_DIR) ; \ + rm -rf config.cache ; \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ac_cv_func_malloc_0_nonnull="yes" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --datadir=/usr/share \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --sysconfdir=/etc \ + $(DISABLE_NLS) \ + + touch $(DHCP_FWD_DIR)/.stamp-configured + + +$(DHCP_FWD_DIR)/.stamp-built: $(DHCP_FWD_DIR)/.stamp-configured + cd $(DHCP_FWD_DIR) ; \ + touch config.guess ; \ + touch config.sub ; \ + $(MAKE) \ + CC=$(TARGET_CC) \ + cfg_filename="/etc/dhcp-fwd.conf" \ + all \ + + touch $(DHCP_FWD_DIR)/.stamp-built + + +$(DHCP_FWD_BUILD_DIR)/CONTROL/control: $(DHCP_FWD_DIR)/.stamp-built + rm -rf $(DHCP_FWD_BUILD_DIR) + mkdir -p $(DHCP_FWD_BUILD_DIR)/usr/sbin + cp -a $(DHCP_FWD_DIR)/dhcp-fwd $(DHCP_FWD_BUILD_DIR)/usr/sbin/ + $(STRIP) $(DHCP_FWD_BUILD_DIR)/usr/sbin/* + cp -a $(DHCP_FWD_IPK_DIR)/root/* $(DHCP_FWD_BUILD_DIR)/ + chmod 0755 $(DHCP_FWD_BUILD_DIR)/etc + chmod 0755 $(DHCP_FWD_BUILD_DIR)/etc/init.d + chmod 0755 $(DHCP_FWD_BUILD_DIR)/etc/init.d/* + chmod 0644 $(DHCP_FWD_BUILD_DIR)/etc/dhcp-fwd.conf + chmod 0755 $(DHCP_FWD_BUILD_DIR)/usr + chmod 0755 $(DHCP_FWD_BUILD_DIR)/usr/sbin + chmod 0755 $(DHCP_FWD_BUILD_DIR)/usr/sbin/* + cp -a $(DHCP_FWD_IPK_DIR)/CONTROL $(DHCP_FWD_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(DHCP_FWD_VERSION)-$(DHCP_FWD_RELEASE)/" $(DHCP_FWD_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(DHCP_FWD_BUILD_DIR)/CONTROL/control + + touch $(DHCP_FWD_BUILD_DIR)/CONTROL/control + + +$(DHCP_FWD_IPK): $(DHCP_FWD_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(DHCP_FWD_BUILD_DIR) + + +dhcp-fwd-ipk: ipkg-utils $(DHCP_FWD_IPK) + +dhcp-fwd-clean: + rm -rf $(DHCP_FWD_IPK) + rm -rf $(DHCP_FWD_BUILD_DIR) + rm -rf $(DHCP_FWD_DIR) diff --git a/obsolete-buildroot/make/ipkg-utils.mk b/obsolete-buildroot/make/ipkg-utils.mk index b6f943e47..f8bc2b1d4 100644 --- a/obsolete-buildroot/make/ipkg-utils.mk +++ b/obsolete-buildroot/make/ipkg-utils.mk @@ -10,6 +10,7 @@ IPKG_UTILS_SOURCE:=ipkg-utils-$(IPKG_UTILS_VERSION).tar.gz IPKG_UTILS_DIR:=$(TOOL_BUILD_DIR)/ipkg-utils-$(IPKG_UTILS_VERSION) IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_buildpackage.patch +IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_build_clean.patch $(DL_DIR)/$(IPKG_UTILS_SOURCE): $(WGET) -P $(DL_DIR) $(IPKG_UTILS_SITE)/$(IPKG_UTILS_SOURCE) @@ -30,7 +31,7 @@ $(STAGING_DIR)/bin/ipkg-build: $(IPKG_UTILS_DIR)/.unpacked ipkg-utils: $(STAGING_DIR)/bin/ipkg-build ipkg-utils-clean: - rm -f $(STAGING_DIR)/bin/ipkg-build* + rm -f $(STAGING_DIR)/bin/ipkg* ipkg-utils-dirclean: rm -rf $(IPKG_UTILS_DIR) diff --git a/obsolete-buildroot/make/iproute2.mk b/obsolete-buildroot/make/iproute2.mk index 350b8fb87..86608ea4b 100644 --- a/obsolete-buildroot/make/iproute2.mk +++ b/obsolete-buildroot/make/iproute2.mk @@ -13,7 +13,7 @@ IPROUTE2_DIR=$(BUILD_DIR)/iproute2 IPROUTE2_SOURCE_URL=http://ftp.debian.org/debian/pool/main/i/iproute/ IPROUTE2_SOURCE=iproute_20010824.orig.tar.gz IPROUTE2_PATCH:=iproute_20010824-8.diff.gz -IPROUTE2_PATCH_2:=iproute2-cross-ar-20010824.patch +IPROUTE2_PATCH_2:=iproute2-*.patch IPROUTE2_IPKTARGET=iproute.ipk IPROUTE2_IPKSRC:=iproute-pkg.tgz @@ -36,7 +36,7 @@ $(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PA rm -rf $(IPROUTE2_DIR).orig $(IPROUTE2_DIR) zcat $(DL_DIR)/$(IPROUTE2_SOURCE) | tar -C $(BUILD_DIR) -xvf - #zcat $(DL_DIR)/$(IPROUTE2_PATCH) | patch -p1 -d $(IPROUTE2_DIR) - cat $(SOURCE_DIR)/$(IPROUTE2_PATCH_2) | patch -p1 -d $(IPROUTE2_DIR) + $(SOURCE_DIR)/patch-kernel.sh $(IPROUTE2_DIR) $(SOURCE_DIR) $(IPROUTE2_PATCH_2) # fun sed hacks. $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(IPROUTE2_DIR)/Makefile ifeq ($(ARCH),i386) diff --git a/obsolete-buildroot/make/iptables.mk b/obsolete-buildroot/make/iptables.mk index 886e54213..76eedad0c 100644 --- a/obsolete-buildroot/make/iptables.mk +++ b/obsolete-buildroot/make/iptables.mk @@ -6,6 +6,8 @@ IPTABLES_SOURCE_URL=http://www.netfilter.org/files IPTABLES_SOURCE=iptables-1.2.9.tar.bz2 IPTABLES_BUILD_DIR=$(BUILD_DIR)/iptables-1.2.9 +IP6TABLES_IPK=$(BUILD_DIR)/ip6tables_1.2.9-1_mipsel.ipk +IP6TABLES_IPK_DIR:=$(BUILD_DIR)/ip6tables-1.2.9-ipk $(DL_DIR)/$(IPTABLES_SOURCE): $(WGET) -P $(DL_DIR) $(IPTABLES_SOURCE_URL)/$(IPTABLES_SOURCE) @@ -35,11 +37,25 @@ $(TARGET_DIR)/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \ DESTDIR=$(TARGET_DIR) install $(STRIP) $(TARGET_DIR)/usr/sbin/iptables* + $(STRIP) $(TARGET_DIR)/usr/sbin/ip6tables* $(STRIP) $(TARGET_DIR)/usr/lib/iptables/*.so rm -rf $(TARGET_DIR)/usr/man iptables: $(TARGET_DIR)/sbin/iptables +$(IP6TABLES_IPK): + mkdir -p $(IP6TABLES_IPK_DIR)/CONTROL + mkdir -p $(IP6TABLES_IPK_DIR)/usr/lib/iptables + mkdir -p $(IP6TABLES_IPK_DIR)/usr/sbin + install -m 644 $(OPENWRT_IPK_DIR)/ip6tables/ip6tables.control $(IP6TABLES_IPK_DIR)/CONTROL/control + install -m 755 $(IPTABLES_BUILD_DIR)/ip6tables $(IP6TABLES_IPK_DIR)/usr/sbin + install -m 755 $(IPTABLES_BUILD_DIR)/extensions/libip6t_*.so $(IP6TABLES_IPK_DIR)/usr/lib/iptables/ + $(STRIP) $(IP6TABLES_IPK_DIR)/usr/sbin/ip6tables* + $(STRIP) $(IP6TABLES_IPK_DIR)/usr/lib/iptables/*.so + cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(IP6TABLES_IPK_DIR) + +ip6tables-ipk: iptables $(IP6TABLES_IPK) + iptables-source: $(DL_DIR)/$(IPTABLES_SOURCE) iptables-clean: diff --git a/obsolete-buildroot/make/kmod-ipt6.mk b/obsolete-buildroot/make/kmod-ipt6.mk new file mode 100644 index 000000000..cc8e4271c --- /dev/null +++ b/obsolete-buildroot/make/kmod-ipt6.mk @@ -0,0 +1,15 @@ +KMOD-IPT6:=kmod-ipt6 +KMOD-IPT6_IPK:=$(KMOD-IPT6)_2.4.20-1_mipsel.ipk +KMOD-IPT6_IPK_DIR:=$(BUILD_DIR)/$(KMOD-IPT6)-2.4.20-ipk + +$(BUILD_DIR)/$(KMOD-IPT6_IPK): + mkdir -p $(KMOD-IPT6_IPK_DIR)/CONTROL + mkdir -p $(KMOD-IPT6_IPK_DIR)/lib/modules/2.4.20/kernel/net/ipv6/netfilter + install -m 644 $(OPENWRT_IPK_DIR)/$(KMOD-IPT6)/$(KMOD-IPT6).control $(KMOD-IPT6_IPK_DIR)/CONTROL/control + install -m 644 $(BUILD_DIR)/linux/modules/lib/modules/2.4.20/kernel/net/ipv6/netfilter/* $(KMOD-IPT6_IPK_DIR)/lib/modules/2.4.20/kernel/net/ipv6/netfilter/ + cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(KMOD-IPT6_IPK_DIR) + +kmod-ipt6-ipk: $(BUILD_DIR)/$(KMOD-IPT6_IPK) + +kmod-ipt6-distclean: + rm -rf $(KMOD-IPT6_IPK_DIR) diff --git a/obsolete-buildroot/make/kmod-ipv6.mk b/obsolete-buildroot/make/kmod-ipv6.mk new file mode 100644 index 000000000..62c7b274c --- /dev/null +++ b/obsolete-buildroot/make/kmod-ipv6.mk @@ -0,0 +1,15 @@ +KMOD-IPV6:=kmod-ipv6 +KMOD-IPV6_IPK:=$(KMOD-IPV6)_2.4.20-1_mipsel.ipk +KMOD-IPV6_IPK_DIR:=$(BUILD_DIR)/$(KMOD-IPV6)-2.4.20-ipk + +$(BUILD_DIR)/$(KMOD-IPV6_IPK): + mkdir -p $(KMOD-IPV6_IPK_DIR)/CONTROL + mkdir -p $(KMOD-IPV6_IPK_DIR)/lib/modules/2.4.20/kernel/net/ipv6 + install -m 644 $(OPENWRT_IPK_DIR)/$(KMOD-IPV6)/$(KMOD-IPV6).control $(KMOD-IPV6_IPK_DIR)/CONTROL/control + install -m 644 $(BUILD_DIR)/linux/modules/lib/modules/2.4.20/kernel/net/ipv6/ipv6.o $(KMOD-IPV6_IPK_DIR)/lib/modules/2.4.20/kernel/net/ipv6 + cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(KMOD-IPV6_IPK_DIR) + +kmod-ipv6-ipk: $(BUILD_DIR)/$(KMOD-IPV6_IPK) + +kmod-ipv6-distclean: + rm -rf $(KMOD-IPV6_IPK_DIR) diff --git a/obsolete-buildroot/make/nfs-modules.mk b/obsolete-buildroot/make/nfs-modules.mk new file mode 100644 index 000000000..f00fe7fb9 --- /dev/null +++ b/obsolete-buildroot/make/nfs-modules.mk @@ -0,0 +1,49 @@ +## nfs-modules + +NFS_MODULES_VERSION := $(SNAPSHOT) +NFS_MODULES_RELEASE := 1 + +NFS_MODULES_BUILD_DIR := $(BUILD_DIR)/nfs-modules_$(NFS_MODULES_VERSION)-$(NFS_MODULES_RELEASE) +NFS_MODULES_IPK_DIR := $(OPENWRT_IPK_DIR)/nfs-modules +NFS_MODULES_IPK := $(NFS_MODULES_BUILD_DIR)_$(ARCH).ipk + + +$(NFS_MODULES_BUILD_DIR)/CONTROL/control: $(BASE_DIR)/openwrt-kmodules.tar.bz2 + rm -rf $(NFS_MODULES_BUILD_DIR) + mkdir -p $(NFS_MODULES_BUILD_DIR)/lib/ + bzcat $(BASE_DIR)/openwrt-kmodules.tar.bz2 | tar -C $(NFS_MODULES_BUILD_DIR)/lib/ -xvf - \ + modules/$(LINUX_VERSION)/kernel/fs/lockd/lockd.o \ + modules/$(LINUX_VERSION)/kernel/fs/nfs/nfs.o \ + modules/$(LINUX_VERSION)/kernel/net/sunrpc/sunrpc.o + mv -f \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/lockd/*.o \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/ + mv -f \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/nfs/*.o \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/ + mv -f \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/net/sunrpc/*.o \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/ + rm -rf \ + $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel + chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib + chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules + chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION) + chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/* + cp -a $(NFS_MODULES_IPK_DIR)/CONTROL $(NFS_MODULES_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(NFS_MODULES_VERSION)-$(NFS_MODULES_RELEASE)/" $(NFS_MODULES_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(NFS_MODULES_BUILD_DIR)/CONTROL/control + + touch $(NFS_MODULES_BUILD_DIR)/CONTROL/control + + +$(NFS_MODULES_IPK): $(NFS_MODULES_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(NFS_MODULES_BUILD_DIR) + + +nfs-modules-ipk: ipkg-utils $(NFS_MODULES_IPK) + +nfs-modules-clean: + rm -rf $(NFS_MODULES_IPK) + rm -rf $(NFS_MODULES_BUILD_DIR) + diff --git a/obsolete-buildroot/make/openwrt.mk b/obsolete-buildroot/make/openwrt.mk index 38fa95875..efe6ebedc 100644 --- a/obsolete-buildroot/make/openwrt.mk +++ b/obsolete-buildroot/make/openwrt.mk @@ -213,12 +213,13 @@ openwrt-prune: openwrt-base $(STAGING_DIR)/bin/sstrip rm -f $(TARGET_DIR)/usr/sbin/iptables-save rm -f $(TARGET_DIR)/usr/sbin/iptables-restore rm -f $(TARGET_DIR)/usr/sbin/ip6tables + rm -f $(TARGET_DIR)/usr/lib/iptables/libip6* -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STAGING_DIR)/bin/sstrip 2>/dev/null || true; ###################################################################### $(STAGING_DIR)/bin/sstrip: - $(CC) -o $(STAGING_DIR)/bin/sstrip -I$(STAGING_DIR)/mipsel-linux-uclibc/include $(SOURCE_DIR)/openwrt/tools/sstrip.c + $(CC) -o $(STAGING_DIR)/bin/sstrip $(SOURCE_DIR)/openwrt/tools/sstrip.c wrt-tools: $(CC) -o $(WRT54G_DIR)/release/tools/trx $(SOURCE_DIR)/openwrt/tools/trx.c diff --git a/obsolete-buildroot/make/ppp-async-module.mk b/obsolete-buildroot/make/ppp-async-module.mk new file mode 100644 index 000000000..bdad3076f --- /dev/null +++ b/obsolete-buildroot/make/ppp-async-module.mk @@ -0,0 +1,41 @@ +## ppp-async-module + +PPP_ASYNC_MODULE_VERSION := $(SNAPSHOT) +PPP_ASYNC_MODULE_RELEASE := 1 + +PPP_ASYNC_MODULE_BUILD_DIR := $(BUILD_DIR)/ppp-async-module_$(PPP_ASYNC_MODULE_VERSION)-$(PPP_ASYNC_MODULE_RELEASE) +PPP_ASYNC_MODULE_IPK_DIR := $(OPENWRT_IPK_DIR)/ppp-async-module +PPP_ASYNC_MODULE_IPK := $(PPP_ASYNC_MODULE_BUILD_DIR)_$(ARCH).ipk + + +$(PPP_ASYNC_MODULE_BUILD_DIR)/CONTROL/control: $(BASE_DIR)/openwrt-kmodules.tar.bz2 + rm -rf $(PPP_ASYNC_MODULE_BUILD_DIR) + mkdir -p $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/ + bzcat $(BASE_DIR)/openwrt-kmodules.tar.bz2 | tar -C $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/ -xvf - \ + modules/$(LINUX_VERSION)/kernel/drivers/net/ppp_async.o + mv -f \ + $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/ppp_async.o \ + $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/ + rm -rf \ + $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel + chmod 0755 $(PPP_ASYNC_MODULE_BUILD_DIR)/lib + chmod 0755 $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/modules + chmod 0755 $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION) + chmod 0755 $(PPP_ASYNC_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/* + cp -a $(PPP_ASYNC_MODULE_IPK_DIR)/CONTROL $(PPP_ASYNC_MODULE_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(PPP_ASYNC_MODULE_VERSION)-$(PPP_ASYNC_MODULE_RELEASE)/" $(PPP_ASYNC_MODULE_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPP_ASYNC_MODULE_BUILD_DIR)/CONTROL/control + + touch $(PPP_ASYNC_MODULE_BUILD_DIR)/CONTROL/control + + +$(PPP_ASYNC_MODULE_IPK): $(PPP_ASYNC_MODULE_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(PPP_ASYNC_MODULE_BUILD_DIR) + + +ppp-async-module-ipk: ipkg-utils $(PPP_ASYNC_MODULE_IPK) + +ppp-async-module-clean: + rm -rf $(PPP_ASYNC_MODULE_IPK) + rm -rf $(PPP_ASYNC_MODULE_BUILD_DIR) + diff --git a/obsolete-buildroot/make/ppp-mppe-module.mk b/obsolete-buildroot/make/ppp-mppe-module.mk new file mode 100644 index 000000000..ff1a558d2 --- /dev/null +++ b/obsolete-buildroot/make/ppp-mppe-module.mk @@ -0,0 +1,41 @@ +## ppp-mppe-module + +PPP_MPPE_MODULE_VERSION := $(SNAPSHOT) +PPP_MPPE_MODULE_RELEASE := 1 + +PPP_MPPE_MODULE_BUILD_DIR := $(BUILD_DIR)/ppp-mppe-module_$(PPP_MPPE_MODULE_VERSION)-$(PPP_MPPE_MODULE_RELEASE) +PPP_MPPE_MODULE_IPK_DIR := $(OPENWRT_IPK_DIR)/ppp-mppe-module +PPP_MPPE_MODULE_IPK := $(PPP_MPPE_MODULE_BUILD_DIR)_$(ARCH).ipk + + +$(PPP_MPPE_MODULE_BUILD_DIR)/CONTROL/control: $(BASE_DIR)/openwrt-kmodules.tar.bz2 + rm -rf $(PPP_MPPE_MODULE_BUILD_DIR) + mkdir -p $(PPP_MPPE_MODULE_BUILD_DIR)/lib/ + bzcat $(BASE_DIR)/openwrt-kmodules.tar.bz2 | tar -C $(PPP_MPPE_MODULE_BUILD_DIR)/lib/ -xvf - \ + modules/$(LINUX_VERSION)/kernel/drivers/net/ppp_mppe_mppc.o + mv -f \ + $(PPP_MPPE_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/ppp_mppe_mppc.o \ + $(PPP_MPPE_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/ + rm -rf \ + $(PPP_MPPE_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel + chmod 0755 $(PPP_MPPE_MODULE_BUILD_DIR)/lib + chmod 0755 $(PPP_MPPE_MODULE_BUILD_DIR)/lib/modules + chmod 0755 $(PPP_MPPE_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION) + chmod 0755 $(PPP_MPPE_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/* + cp -a $(PPP_MPPE_MODULE_IPK_DIR)/CONTROL $(PPP_MPPE_MODULE_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(PPP_MPPE_MODULE_VERSION)-$(PPP_MPPE_MODULE_RELEASE)/" $(PPP_MPPE_MODULE_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPP_MPPE_MODULE_BUILD_DIR)/CONTROL/control + + touch $(PPP_MPPE_MODULE_BUILD_DIR)/CONTROL/control + + +$(PPP_MPPE_MODULE_IPK): $(PPP_MPPE_MODULE_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(PPP_MPPE_MODULE_BUILD_DIR) + + +ppp-mppe-module-ipk: ipkg-utils $(PPP_MPPE_MODULE_IPK) + +ppp-mppe-module-clean: + rm -rf $(PPP_MPPE_MODULE_IPK) + rm -rf $(PPP_MPPE_MODULE_BUILD_DIR) + diff --git a/obsolete-buildroot/make/ppp.mk b/obsolete-buildroot/make/ppp.mk new file mode 100644 index 000000000..36481bb75 --- /dev/null +++ b/obsolete-buildroot/make/ppp.mk @@ -0,0 +1,160 @@ +## ppp & ppp-radius-plugin + +PPP_VERSION := 2.4.2 +PPP_RELEASE := 1 + +PPP_SOURCE:=ppp-$(PPP_VERSION).tar.gz +PPP_SITE:=ftp://ftp.samba.org/pub/ppp +PPP_DIR:=$(BUILD_DIR)/ppp-$(PPP_VERSION) +PPP_CAT:=zcat + +PPP_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/ppp + +PPP_BUILD_DIR := $(BUILD_DIR)/ppp_$(PPP_VERSION)-$(PPP_RELEASE) +PPP_IPK_DIR := $(OPENWRT_IPK_DIR)/ppp +PPP_IPK := $(PPP_BUILD_DIR)_$(ARCH).ipk + +PPP_RADIUS_PLUGIN_BUILD_DIR := $(BUILD_DIR)/ppp-radius-plugin_$(PPP_VERSION)-$(PPP_RELEASE) +PPP_RADIUS_PLUGIN_IPK_DIR := $(OPENWRT_IPK_DIR)/ppp-radius-plugin +PPP_RADIUS_PLUGIN_IPK := $(PPP_RADIUS_PLUGIN_BUILD_DIR)_$(ARCH).ipk + + +$(DL_DIR)/$(PPP_SOURCE): + $(WGET) -P $(DL_DIR) $(PPP_SITE)/$(PPP_SOURCE) + + +$(PPP_DIR)/.stamp-unpacked: $(DL_DIR)/$(PPP_SOURCE) + $(PPP_CAT) $(DL_DIR)/$(PPP_SOURCE) | tar -C $(BUILD_DIR) -xvf - + + touch $(PPP_DIR)/.stamp-unpacked + + +$(PPP_DIR)/.stamp-patched: $(PPP_DIR)/.stamp-unpacked + $(SOURCE_DIR)/patch-kernel.sh $(PPP_DIR) $(PPP_PATCH_DIR) + + touch $(PPP_DIR)/.stamp-patched + + +$(PPP_DIR)/.stamp-configured: $(PPP_DIR)/.stamp-patched + cd $(PPP_DIR)/pppd/plugins/radius/radiusclient ; \ + rm -rf config.cache ; \ + $(TARGET_CONFIGURE_OPTS) \ + ac_cv_func_setvbuf_reversed=no \ + ac_cv_func_uname=no \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + $(DISABLE_NLS) \ + --disable-shared \ + --enable-static \ + + cd $(PPP_DIR) ; \ + rm -rf config.cache ; \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --sysconfdir=/etc \ + $(DISABLE_NLS) \ + + touch $(PPP_DIR)/.stamp-configured + + +$(PPP_DIR)/.stamp-built: $(PPP_DIR)/.stamp-configured + cd $(PPP_DIR) ; \ + $(MAKE) \ + CC=$(TARGET_CC) \ + COPTS="$(TARGET_CFLAGS)" \ + all + + touch $(PPP_DIR)/.stamp-built + + +$(PPP_BUILD_DIR)/CONTROL/control: $(PPP_DIR)/.stamp-built + rm -rf $(PPP_BUILD_DIR) + mkdir -p $(PPP_BUILD_DIR)/usr/sbin + cp -a $(PPP_DIR)/pppd/pppd $(PPP_BUILD_DIR)/usr/sbin/ + $(STRIP) $(PPP_BUILD_DIR)/usr/sbin/* + cp -a $(PPP_IPK_DIR)/root/* $(PPP_BUILD_DIR)/ + chmod 0755 $(PPP_BUILD_DIR)/etc + chmod 0755 $(PPP_BUILD_DIR)/etc/ppp + chmod 0600 $(PPP_BUILD_DIR)/etc/ppp/chap-secrets + chmod 0644 $(PPP_BUILD_DIR)/etc/ppp/options + chmod 0755 $(PPP_BUILD_DIR)/etc/ppp/peers + chmod 0755 $(PPP_BUILD_DIR)/usr + chmod 0755 $(PPP_BUILD_DIR)/usr/sbin + chmod 0755 $(PPP_BUILD_DIR)/usr/sbin/* + cp -a $(PPP_IPK_DIR)/CONTROL $(PPP_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(PPP_VERSION)-$(PPP_RELEASE)/" $(PPP_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPP_BUILD_DIR)/CONTROL/control + + touch $(PPP_BUILD_DIR)/CONTROL/control + + +$(PPP_IPK): $(PPP_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(PPP_BUILD_DIR) + + +$(PPP_RADIUS_PLUGIN_BUILD_DIR)/CONTROL/control: $(PPP_DIR)/.stamp-built + rm -rf $(PPP_RADIUS_PLUGIN_BUILD_DIR) + mkdir -p $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr/lib/pppd/$(PPP_VERSION) + cp -a $(PPP_DIR)/pppd/plugins/radius/radius.so $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr/lib/pppd/$(PPP_VERSION)/ + $(STRIP) $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr/lib/pppd/$(PPP_VERSION)/* + cp -a $(PPP_RADIUS_PLUGIN_IPK_DIR)/root/* $(PPP_RADIUS_PLUGIN_BUILD_DIR)/ + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/etc + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/etc/ppp + chmod 0644 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/etc/ppp/radius.conf + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/etc/ppp/radius + chmod 0644 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/etc/ppp/radius/dict* + chmod 0600 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/etc/ppp/radius/servers + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr/lib + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr/lib/pppd + chmod 0755 $(PPP_RADIUS_PLUGIN_BUILD_DIR)/usr/lib/pppd/$(PPP_VERSION) + cp -a $(PPP_RADIUS_PLUGIN_IPK_DIR)/CONTROL $(PPP_RADIUS_PLUGIN_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(PPP_VERSION)-$(PPP_RELEASE)/" $(PPP_RADIUS_PLUGIN_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPP_RADIUS_PLUGIN_BUILD_DIR)/CONTROL/control + + touch $(PPP_RADIUS_PLUGIN_BUILD_DIR)/CONTROL/control + + +$(PPP_RADIUS_PLUGIN_IPK): $(PPP_RADIUS_PLUGIN_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(PPP_RADIUS_PLUGIN_BUILD_DIR) + + +ppp-ipk: ipkg-utils $(PPP_IPK) $(PPP_RADIUS_PLUGIN_IPK) + +ppp-ipk-clean: + rm -rf $(PPP_IPK) $(PPP_RADIUS_PLUGIN_IPK) + rm -rf $(PPP_BUILD_DIR) $(PPP_RADIUS_PLUGIN_BUILD_DIR) + +ppp-clean: + cd $(PPP_DIR) ; \ + $(MAKE) clean + +ppp-dirclean: + rm -rf $(PPP_DIR) + + diff --git a/obsolete-buildroot/make/pptp-server.mk b/obsolete-buildroot/make/pptp-server.mk new file mode 100644 index 000000000..d394c2686 --- /dev/null +++ b/obsolete-buildroot/make/pptp-server.mk @@ -0,0 +1,105 @@ +## pptp-server + +PPTPD_VERSION := 1.1.3 +PPTPD_RELEASE := 1 + +PPTPD_SOURCE := pptpd-1.1.3-20030409.tar.gz +PPTPD_SITE := http://unc.dl.sourceforge.net/sourceforge/poptop/ +PPTPD_DIR := $(BUILD_DIR)/poptop +PPTPD_CAT := zcat + +PPTPD_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/pptp-server + +PPTPD_BUILD_DIR := $(BUILD_DIR)/pptp-server_$(PPTPD_VERSION)-$(PPTPD_RELEASE) +PPTPD_IPK_DIR := $(OPENWRT_IPK_DIR)/pptp-server +PPTPD_IPK := $(PPTPD_BUILD_DIR)_$(ARCH).ipk + + +$(DL_DIR)/$(PPTPD_SOURCE): + $(WGET) -P $(DL_DIR) $(PPTPD_SITE)/$(PPTPD_SOURCE) + + +$(PPTPD_DIR)/.stamp-unpacked: $(DL_DIR)/$(PPTPD_SOURCE) + $(PPTPD_CAT) $(DL_DIR)/$(PPTPD_SOURCE) | tar -C $(BUILD_DIR) -xvf - + + touch $(PPTPD_DIR)/.stamp-unpacked + + +$(PPTPD_DIR)/.stamp-patched: $(PPTPD_DIR)/.stamp-unpacked + $(SOURCE_DIR)/patch-kernel.sh $(PPTPD_DIR) $(PPTPD_PATCH_DIR) + + touch $(PPTPD_DIR)/.stamp-patched + + +$(PPTPD_DIR)/.stamp-configured: $(PPTPD_DIR)/.stamp-patched + cd $(PPTPD_DIR) ; \ + rm -rf config.cache ; \ + aclocal ; \ + autoconf ; \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --datadir=/usr/share \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --sysconfdir=/etc \ + $(DISABLE_NLS) \ + --with-pppd-ip-alloc \ + + touch $(PPTPD_DIR)/.stamp-configured + + +$(PPTPD_DIR)/.stamp-built: $(PPTPD_DIR)/.stamp-configured + cd $(PPTPD_DIR) ; \ + touch config.guess ; \ + touch config.sub ; \ + $(MAKE) \ + CC=$(TARGET_CC) \ + COPTS="$(TARGET_CFLAGS)" \ + all + + touch $(PPTPD_DIR)/.stamp-built + + +$(PPTPD_BUILD_DIR)/CONTROL/control: $(PPTPD_DIR)/.stamp-built + rm -rf $(PPTPD_BUILD_DIR) + mkdir -p $(PPTPD_BUILD_DIR)/usr/sbin + cp -a $(PPTPD_DIR)/pptpctrl $(PPTPD_BUILD_DIR)/usr/sbin/ + cp -a $(PPTPD_DIR)/pptpd $(PPTPD_BUILD_DIR)/usr/sbin/ + $(STRIP) $(PPTPD_BUILD_DIR)/usr/sbin/* + cp -a $(PPTPD_IPK_DIR)/root/* $(PPTPD_BUILD_DIR)/ + chmod 0755 $(PPTPD_BUILD_DIR)/etc + chmod 0755 $(PPTPD_BUILD_DIR)/etc/init.d + chmod 0755 $(PPTPD_BUILD_DIR)/etc/init.d/* + chmod 0755 $(PPTPD_BUILD_DIR)/etc/ppp + chmod 0644 $(PPTPD_BUILD_DIR)/etc/ppp/pptp-server-options + chmod 0644 $(PPTPD_BUILD_DIR)/etc/pptpd.conf + chmod 0755 $(PPTPD_BUILD_DIR)/usr + chmod 0755 $(PPTPD_BUILD_DIR)/usr/sbin + chmod 0755 $(PPTPD_BUILD_DIR)/usr/sbin/* + cp -a $(PPTPD_IPK_DIR)/CONTROL $(PPTPD_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(PPTPD_VERSION)-$(PPTPD_RELEASE)/" $(PPTPD_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(PPTPD_BUILD_DIR)/CONTROL/control + + touch $(PPTPD_BUILD_DIR)/CONTROL/control + + +$(PPTPD_IPK): $(PPTPD_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(PPTPD_BUILD_DIR) + + +pptp-server-ipk: ipkg-utils $(PPTPD_IPK) + +pptp-server-clean: + rm -rf $(PPTPD_IPK) + rm -rf $(PPTPD_BUILD_DIR) + rm -rf $(PPTPD_DIR) diff --git a/obsolete-buildroot/make/tun-module.mk b/obsolete-buildroot/make/tun-module.mk new file mode 100644 index 000000000..e78fc8e88 --- /dev/null +++ b/obsolete-buildroot/make/tun-module.mk @@ -0,0 +1,41 @@ +## tun-module + +TUN_MODULE_VERSION := $(SNAPSHOT) +TUN_MODULE_RELEASE := 1 + +TUN_MODULE_BUILD_DIR := $(BUILD_DIR)/tun-module_$(TUN_MODULE_VERSION)-$(TUN_MODULE_RELEASE) +TUN_MODULE_IPK_DIR := $(OPENWRT_IPK_DIR)/tun-module +TUN_MODULE_IPK := $(TUN_MODULE_BUILD_DIR)_$(ARCH).ipk + + +$(TUN_MODULE_BUILD_DIR)/CONTROL/control: $(BASE_DIR)/openwrt-kmodules.tar.bz2 + rm -rf $(TUN_MODULE_BUILD_DIR) + mkdir -p $(TUN_MODULE_BUILD_DIR)/lib/ + bzcat $(BASE_DIR)/openwrt-kmodules.tar.bz2 | tar -C $(TUN_MODULE_BUILD_DIR)/lib/ -xvf - \ + modules/$(LINUX_VERSION)/kernel/drivers/net/tun.o + mv -f \ + $(TUN_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/tun.o \ + $(TUN_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/ + rm -rf \ + $(TUN_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel + chmod 0755 $(TUN_MODULE_BUILD_DIR)/lib + chmod 0755 $(TUN_MODULE_BUILD_DIR)/lib/modules + chmod 0755 $(TUN_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION) + chmod 0755 $(TUN_MODULE_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/* + cp -a $(TUN_MODULE_IPK_DIR)/CONTROL $(TUN_MODULE_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(TUN_MODULE_VERSION)-$(TUN_MODULE_RELEASE)/" $(TUN_MODULE_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(TUN_MODULE_BUILD_DIR)/CONTROL/control + + touch $(TUN_MODULE_BUILD_DIR)/CONTROL/control + + +$(TUN_MODULE_IPK): $(TUN_MODULE_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(TUN_MODULE_BUILD_DIR) + + +tun-module-ipk: ipkg-utils $(TUN_MODULE_IPK) + +tun-module-clean: + rm -rf $(TUN_MODULE_IPK) + rm -rf $(TUN_MODULE_BUILD_DIR) + -- cgit v1.2.3