############################################################################### # This file is part of the IPCop Firewall. # # # # IPCop is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation; either version 2 of the License, or # # (at your option) any later version. # # # # IPCop is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with IPCop; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # # Makefiles are based on LFSMake, which is # # Copyright (C) 2002 Rod Roard # # # # Modifications by: # # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> # # - Modified Makefile for IPCop build # # # # $Id: Exp $ # # ############################################################################### ############################################################################### # Definitions ############################################################################### include Config # http://rhlx01.fht-esslingen.de/~andi/acx100/acx100-0.2.0pre8_plus_fixes_3.tar.gz # http://prdownloads.sourceforge.net/acx100/acx100-0.2.0pre6.tar.gz?download # $(URL_SFNET)/acx100 VER = 0.2.0pre8_plus_fixes_5 THISAPP = acx100 DL_FILE = $(THISAPP)-$(VER).tar.gz DL_FROM = http://rhlx01.fht-esslingen.de/~andi/acx100 DIR_APP = $(DIR_SRC)/$(THISAPP)-$(VER) TARGET = $(DIR_INFO)/$(THISAPP)-$(VER) ############################################################################### # Top-level Rules ############################################################################### install : $(TARGET) check : @echo "====================================== Checking $(DL_FILE) ..." @cd $(DIR_TMP) && wget --spider -nv $(DL_FROM)/$(DL_FILE) download : $(DIR_DL)/$(DL_FILE) $(DIR_DL)/$(DL_FIRMWARE) uninstall : @echo "You don't want to uninstall this." versions : @cd $(DIR_TMP) && rm -f .listing && echo " " && \ echo "This makefile works with $(THISAPP)." && \ echo "Versions at $(DL_FROM)/ are:" && \ echo " " && \ wget -q --dont-remove-listing $(DL_FROM)/gurgle* && \ grep 'tar.gz' .listing | grep -v 'doc' | cut -c 33- && \ echo " " && rm -f .listing ############################################################################### # Downloading ############################################################################### $(DIR_DL)/$(DL_FILE) : @echo "====================================== Downloading $(DL_FILE) ..." @cd $(DIR_TMP) && wget -c -nv $(DL_FROM)/$(DL_FILE) @mv $(DIR_TMP)/$(DL_FILE) $(DIR_DL) ############################################################################### # Installation Details ############################################################################### $(TARGET) : $(DIR_DL)/$(DL_FILE) @$(PREBUILD) rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xfz $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && sed -i \ -e 's/`uname -r`/$(KVER)/' \ -e "s%^ECHO=.*$$%ECHO='/bin/echo -e'%" Configure cd $(DIR_APP) && make cd $(DIR_APP) && install -c -m 0664 -o root -g root src/acx_pci.o /lib/modules/$(KVER)/misc # cd $(DIR_APP) && make install find /lib/modules/$(KVER)/ -name '*.o' -a -type f | xargs gzip -f9 @rm -rf $(DIR_APP) @$(POSTBUILD)