2002-04-26 13:45:55 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# tinylogin
|
|
|
|
#
|
|
|
|
#############################################################
|
2003-01-10 02:22:53 +01:00
|
|
|
# Enable this to use the tinylogin daily snapshot
|
|
|
|
USE_TINYLOGIN_SNAPSHOT=true
|
|
|
|
|
|
|
|
ifeq ($(USE_TINYLOGIN_SNAPSHOT),true)
|
|
|
|
# Be aware that this changes daily....
|
|
|
|
TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin
|
|
|
|
TINYLOGIN_SOURCE:=tinylogin-snapshot.tar.bz2
|
2003-02-12 10:26:13 +01:00
|
|
|
TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads/snapshots
|
2003-01-10 02:22:53 +01:00
|
|
|
else
|
2003-01-03 12:40:33 +01:00
|
|
|
TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin-1.4
|
|
|
|
TINYLOGIN_SOURCE:=tinylogin-1.4.tar.bz2
|
2003-02-12 10:26:13 +01:00
|
|
|
TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads
|
2003-01-10 02:22:53 +01:00
|
|
|
endif
|
2002-04-26 13:45:55 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(TINYLOGIN_SOURCE):
|
2002-11-21 00:16:10 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(TINYLOGIN_SITE)/$(TINYLOGIN_SOURCE)
|
2002-04-26 13:45:55 +02:00
|
|
|
|
|
|
|
tinylogin-source: $(DL_DIR)/$(TINYLOGIN_SOURCE)
|
|
|
|
|
|
|
|
$(TINYLOGIN_DIR)/Config.h: $(DL_DIR)/$(TINYLOGIN_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
bzcat $(DL_DIR)/$(TINYLOGIN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s/\`id -u\` -ne 0/0 == 1/" \
|
2003-11-13 07:16:59 +01:00
|
|
|
$(TINYLOGIN_DIR)/install.sh
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s/4755 --owner=root --group=root/755/" \
|
2002-04-26 13:45:55 +02:00
|
|
|
$(TINYLOGIN_DIR)/install.sh
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s/^DOSTATIC.*/DOSTATIC=false/g;" $(TINYLOGIN_DIR)/Makefile
|
|
|
|
$(SED) "s/^DODEBUG.*/DODEBUG=false/g;" $(TINYLOGIN_DIR)/Makefile
|
2002-04-26 13:45:55 +02:00
|
|
|
# date test this one
|
|
|
|
touch $(TINYLOGIN_DIR)/Config.h
|
|
|
|
|
|
|
|
$(TINYLOGIN_DIR)/tinylogin: $(TINYLOGIN_DIR)/Config.h
|
2004-03-05 20:13:13 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" \
|
|
|
|
CFLAGS_EXTRA="$(TARGET_CFLAGS)" -C $(TINYLOGIN_DIR)
|
2002-04-26 13:45:55 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/bin/tinylogin: $(TINYLOGIN_DIR)/tinylogin
|
2003-11-01 06:34:41 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" \
|
2004-03-05 20:13:13 +01:00
|
|
|
PREFIX="$(TARGET_DIR)" -C $(TINYLOGIN_DIR) \
|
|
|
|
CFLAGS_EXTRA="$(TARGET_CFLAGS)" install
|
2002-04-26 13:45:55 +02:00
|
|
|
|
|
|
|
tinylogin: uclibc $(TARGET_DIR)/bin/tinylogin
|
|
|
|
|
|
|
|
tinylogin-clean:
|
|
|
|
rm -f $(TARGET_DIR)/bin/tinylogin
|
2003-01-17 09:09:39 +01:00
|
|
|
-$(MAKE) -C $(TINYLOGIN_DIR) clean
|
2002-04-26 13:45:55 +02:00
|
|
|
|
|
|
|
tinylogin-dirclean:
|
|
|
|
rm -rf $(TINYLOGIN_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_TINYLOGIN)),y)
|
|
|
|
TARGETS+=tinylogin
|
|
|
|
endif
|