# 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 $
# #
###############################################################################
include Config
-VER = 1.5.2
+VER = ipfire1
-THISAPP = pwlib_$(VER)
+THISAPP = pwlib-$(VER)
DL_FILE = $(THISAPP).tar.gz
-DL_FROM = http://www.openh323.org/bin
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/pwlib
TARGET = $(DIR_INFO)/$(THISAPP)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 0fa33ba1b32b254abe0b731a52c0f2f9
+$(DL_FILE)_MD5 = 2e2eecdc3ba54bdc973892ef9eea45c8
install : $(TARGET)
md5 : $(subst %,%_MD5,$(objects))
+dist:
+ make-packages.sh pwlib $(THISAPP)-ipfire-beta-1
+
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
- @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- mv /usr/include/ldap.h /
+ rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xfz $(DIR_DL)/$(DL_FILE)
+ if [ -f /usr/include/ldap.h ]; then mv -f /usr/include/ldap.h / ; fi
cd $(DIR_APP) && ./configure --prefix=/usr
- mv /ldap.h /usr/include
+ if [ -f /ldap.h ]; then mv -f /ldap.h /usr/include/ ; fi
cd $(DIR_APP) && make opt && make install
@$(POSTBUILD)