X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2FmISDN;fp=lfs%2Fnash;h=b48d83b97c4df7612257bde023ebf2191836bc72;hb=8bba296515ab256155d6dc649f7a2ad26baa5929;hp=73adec1a9ae4458e418f16c1e5e3759e6a39c859;hpb=afbda81596e83cc832cc0faeb44ea3e2359a80f8;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/lfs/nash b/lfs/mISDN similarity index 72% rename from lfs/nash rename to lfs/mISDN index 73adec1a9..b48d83b97 100644 --- a/lfs/nash +++ b/lfs/mISDN @@ -26,9 +26,11 @@ include Config -VER = ipfire +VER = 1_1_3 -THISAPP = nash +THISAPP = mISDNuser-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) @@ -36,22 +38,41 @@ TARGET = $(DIR_INFO)/$(THISAPP) # Top-level Rules ############################################################################### +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 546c42271307b0ffe1dd55fd899adda8 + install : $(TARGET) -check : +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) -download : +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) -md5 : +$(subst %,%_MD5,$(objects)) : + @$(MD5) ############################################################################### # Installation Details ############################################################################### -$(TARGET) : +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) - @rm -rf $(DIR_APP) && mkdir $(DIR_APP) && cp -R $(DIR_SRC)/src/nash/* $(DIR_APP) - cd $(DIR_APP) && make - cd $(DIR_APP) && install -m 0755 nash mkinitrd /sbin + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && make MISDNDIR=/usr/src/linux + cd $(DIR_APP) && make install MISDNDIR=/usr/src/linux @rm -rf $(DIR_APP) @$(POSTBUILD)