]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/hddtemp
Zwischencommit fuer LFS.
[people/pmueller/ipfire-2.x.git] / lfs / hddtemp
index a9dcdbfa75b4555dbff422b15eb6f9c106eafc69..3a9769a45f0b07d3a15ce371742cfc7866fff3ba 100644 (file)
 # Makefiles are based on LFSMake, which is                                    #
 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com>                        #
 #                                                                             #
-# Modifications by:                                                           #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com>                               #
-#          - Modified Makefile for IPCop build                                #
-#                                                                             #
-# $Id: ntp,v 1.6.2.3 2005/02/05 15:38:15 gespinasse Exp $
-#                                                                             #
 ###############################################################################
 
 ###############################################################################
@@ -44,11 +38,14 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE)
+objects = $(DL_FILE) \
+               hddtemp.db
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+hddtemp.db = $(DL_FROM)/hddtemp.db
 
 $(DL_FILE)_MD5 = bbf8be4539495e18bec54af77511a680
+hddtemp.db_MD5 = 5321858f8c028d4b1a91a8a5f951f2f8
 
 install : $(TARGET)
 
@@ -58,9 +55,6 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
-       make-packages.sh hddtemp $(THISAPP)
-
 ###############################################################################
 # Downloading, checking, md5sum
 ###############################################################################
@@ -81,8 +75,8 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
-#      cd $(DIR_APP) && wget http://www.guzu.net/linux/hddtemp.db && cp hddtemp.db /etc/hddtemp.db
-       cd $(DIR_APP) && ./configure --with-db-path=/etc/hddtemp.db
-       cd $(DIR_APP) && make && make install
+       cd $(DIR_APP) && cp -fv $(DIR_DL)/hddtemp.db /etc/hddtemp.db
+       cd $(DIR_APP) && ./configure --prefix=/usr --with-db-path=/etc/hddtemp.db
+       cd $(DIR_APP) && make $(MAKETUNING) && make install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)