summaryrefslogtreecommitdiffstats
path: root/make/tinylogin.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/tinylogin.mk')
-rw-r--r--make/tinylogin.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/make/tinylogin.mk b/make/tinylogin.mk
new file mode 100644
index 000000000..653f37921
--- /dev/null
+++ b/make/tinylogin.mk
@@ -0,0 +1,38 @@
+#############################################################
+#
+# tinylogin
+#
+#############################################################
+TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin-1.00
+# FIXME - this changes daily. we should use a stable tarball and cvs up if desired
+#TINYLOGIN_SOURCE=tinylogin-snapshot.tar.bz2
+TINYLOGIN_SOURCE:=tinylogin-1.00.tar.bz2
+TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads
+
+$(DL_DIR)/$(TINYLOGIN_SOURCE):
+ wget -P $(DL_DIR) --passive-ftp $(TINYLOGIN_SITE)/$(TINYLOGIN_SOURCE)
+
+tinylogin-source: $(DL_DIR)/$(TINYLOGIN_SOURCE)
+
+$(TINYLOGIN_DIR)/Config.h: $(DL_DIR)/$(TINYLOGIN_SOURCE)
+ bzcat $(DL_DIR)/$(TINYLOGIN_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ perl -i -p -e "s/\`id -u\` -ne 0/0 == 1/;" \
+ -e "s/4755 --owner=root --group=root/755/" \
+ $(TINYLOGIN_DIR)/install.sh
+ # date test this one
+ touch $(TINYLOGIN_DIR)/Config.h
+
+$(TINYLOGIN_DIR)/tinylogin: $(TINYLOGIN_DIR)/Config.h
+ make CROSS="$(TARGET_CROSS)" -C $(TINYLOGIN_DIR)
+
+$(TARGET_DIR)/bin/tinylogin: $(TINYLOGIN_DIR)/tinylogin
+ make CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(TINYLOGIN_DIR) install
+
+tinylogin: uclibc $(TARGET_DIR)/bin/tinylogin
+
+tinylogin-clean:
+ rm -f $(TARGET_DIR)/bin/tinylogin
+ -make -C $(TINYLOGIN_DIR) clean
+
+tinylogin-dirclean:
+ rm -rf $(TINYLOGIN_DIR)