# 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 $
-# #
###############################################################################
###############################################################################
THISAPP = hddtemp-$(VER)
DL_FILE = $(THISAPP).tar.bz2
-DL_FROM = http://www.guzu.net/linux
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
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)
md5 : $(subst %,%_MD5,$(objects))
-dist:
- make-packages.sh hddtemp $(THISAPP)
-
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(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) && 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 && make install
@rm -rf $(DIR_APP)
- @$(POSTBUILD)
\ No newline at end of file
+ @$(POSTBUILD)