Use urandom for dropbear keying
[gumsense-br.git] / package / uptimed / uptimed.mk
blobbaf92af45ca8f0ec069d3e30c5e3f995cbe73423
1 #############################################################
3 # uptimed
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
9 UPTIMED_CAT:=bzcat
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)" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share/misc \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 --disable-shared \
42 --enable-static \
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
51 install -m 0700 $< $@
52 $(STRIP) $@
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) $@
57 $(STRIP) $@
59 $(TARGET_DIR)/etc/init.d/$(UPTIME_INIT_SCRIPT): package/uptimed/S99uptimed
60 mkdir -p /etc/init.d
61 install -m 0644 $(UPTIMED_DIR)/etc/uptimed.conf-dist $(TARGET_DIR)/etc/uptimed.conf
62 install -m 0755 $< $@
64 uptimed: uclibc $(TARGET_DIR)/usr/sbin/$(UPTIMED_BINARY) $(TARGET_DIR)/usr/bin/$(UPRECORDS_BINARY) $(TARGET_DIR)/etc/init.d/$(UPTIME_INIT_SCRIPT)
66 uptimed-clean:
67 -$(MAKE) -C $(UPTIMED_DIR) clean
69 uptimed-dirclean:
70 rm -rf $(UPTIMED_DIR)
72 #############################################################
74 # Toplevel Makefile options
76 #############################################################
77 ifeq ($(strip $(BR2_PACKAGE_UPTIMED)),y)
78 TARGETS+=uptimed
79 endif