diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-26 11:45:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-26 11:45:55 +0000 |
commit | 08782ae7d8812933ad3f932132955ea1c0fb1e52 (patch) | |
tree | 1808993dc06e0c9a473c2e77236ce5d31039466d /make/tinylogin.mk | |
parent | 057adc1c84e0082cdf88da23a32bf2098680ff4e (diff) | |
download | buildroot-novena-08782ae7d8812933ad3f932132955ea1c0fb1e52.tar.gz buildroot-novena-08782ae7d8812933ad3f932132955ea1c0fb1e52.zip |
Major rework
Diffstat (limited to 'make/tinylogin.mk')
-rw-r--r-- | make/tinylogin.mk | 38 |
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) |