English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/busybox/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2766 - (show annotations) (download)
Mon Jun 11 23:24:02 2007 UTC (6 years, 8 months ago) by tha
File size: 2530 byte(s)
fixed a lot of startup or shutdown related problems
- added start/stop logik to S10boot, S20jggsclean & S98done
- fixed check for empty variable in vlan.pre-up (ugly erros in log)
- aiccu only gets killed when it was really running before
  (otherwise it logs ugly messages to syslog)
- ntpclient packages now has an init.d script and some
  reasonable default flags. if present, the serverhost comes
  from /etc/ntpd.conf
- removed hotplug ntpclient script, I think it never worked
  correctly
- ntpclient & openntpd are waiting 15 seconds in autostart
  mode before they are executed. in bridging-wlan/lan-mode
  this seems to be neccessary, because otherwise ntp(client)
  cannot sync (network not really up?)
- shorewall only executes "shorewall stop" if it was started
  before.
- fixed rcK script: the -k2 option was useless in our case (thx tg)


1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:= busybox
10 PKG_RELEASE:= 9
11 PKG_VERSION:= 1.1.3
12 PKG_MD5SUM:= 19a0b475169335f17e421cf644616fe7
13 PKG_INIT:= 60
14
15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:= http://www.busybox.net/downloads
17
18 include $(TOPDIR)/mk/package.mk
19
20 $(eval $(call PKG_template,BUSYBOX,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(WRKBUILD)/.configured:
23 $(CP) files/ipkg/*.c $(WRKBUILD)/archival
24 $(CP) files/ipkg/libipkg $(WRKBUILD)/archival
25 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(WRKBUILD)/.config
26 yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(WRKBUILD) oldconfig
27 touch $@
28
29 $(WRKBUILD)/.built:
30 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
31 EXTRA_CFLAGS="$(TARGET_CFLAGS)" ARCH="$(ARCH)" -C $(WRKBUILD)
32 touch $@
33
34 $(IPKG_BUSYBOX):
35 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
36 EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(WRKBUILD) install
37 $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/init.d/
38 $(INSTALL_BIN) ./files/syslog.init \
39 $(IDIR_BUSYBOX)/etc/init.d/S05syslog
40 $(INSTALL_BIN) ./files/network.init \
41 $(IDIR_BUSYBOX)/etc/init.d/S40network
42 $(INSTALL_BIN) ./files/crond.init \
43 $(IDIR_BUSYBOX)/etc/init.d/S$(PKG_INIT)crond
44 $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/network
45 $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/network/if-pre-up.d
46 $(INSTALL_BIN) ./files/vlan.pre-up \
47 $(IDIR_BUSYBOX)/etc/network/if-pre-up.d/01-vlan
48 $(INSTALL_BIN) ./files/watchdog.if-pre-up \
49 $(IDIR_BUSYBOX)/etc/network/if-pre-up.d/00-watchdog
50 $(INSTALL_BIN) ./files/bridge.pre-up \
51 $(IDIR_BUSYBOX)/etc/network/if-pre-up.d/03-bridge
52 $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/network/if-up.d
53 $(INSTALL_BIN) ./files/bridge.up \
54 $(IDIR_BUSYBOX)/etc/network/if-up.d/02-bridge
55 $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/network/if-down.d
56 $(INSTALL_BIN) ./files/watchdog.if-down \
57 $(IDIR_BUSYBOX)/etc/network/if-down.d/watchdog
58 $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/network/if-post-down.d
59 $(INSTALL_DIR) $(IDIR_BUSYBOX)/sbin
60 $(INSTALL_BIN) ./files/if-watchdog \
61 $(IDIR_BUSYBOX)/sbin/if-watchdog
62 ifneq ($(strip ${BUSYBOX_CONFIG_HALT}),)
63 ifneq ($(strip ${BUSYBOX_CONFIG_FEATURE_FWCF_REBOOT}),)
64 cd ${IDIR_BUSYBOX}/sbin && rm -f halt poweroff reboot
65 endif
66 endif
67 $(RSTRIP) $(IDIR_BUSYBOX)
68 $(IPKG_BUILD) $(IDIR_BUSYBOX) $(PACKAGE_DIR)

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20