1 #############################################################
5 #############################################################
6 UPTIMED_SOURCE
:=uptimed-0.3
.3.
tar.bz2
7 UPTIMED_SITE
:=http
://www.rungie.com
/files
/
8 UPTIMED_DIR
:=$(BUILD_DIR
)/uptimed-0.3
.3
10 UPTIMED_BINARY
:=uptimed
11 UPRECORDS_BINARY
:=uprecords
12 UPTIME_INIT_SCRIPT
:=S99uptimed
14 $(DL_DIR
)/$(UPTIMED_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(UPTIMED_SITE
)/$(UPTIMED_SOURCE
)
17 uptimed-source
: $(DL_DIR
)/$(UPTIMED_SOURCE
)
19 $(UPTIMED_DIR
)/.unpacked
: $(DL_DIR
)/$(UPTIMED_SOURCE
)
20 $(UPTIMED_CAT
) $(DL_DIR
)/$(UPTIMED_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
21 touch
$(UPTIMED_DIR
)/.unpacked
23 $(UPTIMED_DIR
)/.configured
: $(UPTIMED_DIR
)/.unpacked
24 (cd
$(UPTIMED_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share
/misc \
38 --localstatedir
=/var \
44 touch
$(UPTIMED_DIR
)/.configured
46 $(UPTIMED_DIR
)/src
/$(UPTIMED_BINARY
): $(UPTIMED_DIR
)/.configured
47 $(MAKE
) -C
$(UPTIMED_DIR
)
49 $(TARGET_DIR
)/usr
/sbin
/$(UPTIMED_BINARY
): $(UPTIMED_DIR
)/src
/$(UPTIMED_BINARY
)
50 mkdir
-p
$(TARGET_DIR
)/usr
/sbin
$(TARGET_DIR
)/var
/spool
/uptimed
54 $(TARGET_DIR
)/usr
/bin
/$(UPRECORDS_BINARY
): $(UPTIMED_DIR
)/src
/$(UPTIMED_BINARY
)
55 mkdir
-p
$(TARGET_DIR
)/usr
/bin
56 install -m
0700 $(UPTIMED_DIR
)/src
/$(UPRECORDS_BINARY
) $@
59 $(TARGET_DIR
)/etc
/init.d
/$(UPTIME_INIT_SCRIPT
): package
/uptimed
/S99uptimed
61 install -m
0644 $(UPTIMED_DIR
)/etc
/uptimed.conf-dist
$(TARGET_DIR
)/etc
/uptimed.conf
64 uptimed
: uclibc
$(TARGET_DIR
)/usr
/sbin
/$(UPTIMED_BINARY
) $(TARGET_DIR
)/usr
/bin
/$(UPRECORDS_BINARY
) $(TARGET_DIR
)/etc
/init.d
/$(UPTIME_INIT_SCRIPT
)
67 -$(MAKE
) -C
$(UPTIMED_DIR
) clean
72 #############################################################
74 # Toplevel Makefile options
76 #############################################################
77 ifeq ($(strip $(BR2_PACKAGE_UPTIMED
)),y
)