mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Hinzugefuegt:
* Yasuc * Wireless Tools (reanimiert) Updates: * fcron * pulsar * unicorn Fixes: * readline * lfs/Config git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@276 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
20
lfs/Config
20
lfs/Config
@@ -86,25 +86,27 @@ ifeq "$(ROOT)" ""
|
||||
define POSTBUILD
|
||||
@echo "Install done; saving file list to $(DIR_INFO)/$(THISAPP) ..."
|
||||
@$(FIND_FILES) > $(DIR_SRC)/lsalrnew
|
||||
@diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' | sort > $(TARGET)_1
|
||||
@diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' | sort > $(TARGET)_diff
|
||||
@cp -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr
|
||||
@rm -f $(DIR_SRC)/lsalrnew
|
||||
sed -i -e 's+.\/++' $(TARGET)_1
|
||||
sed -i -e 's+.\/++' $(TARGET)_diff
|
||||
# compare roofile ( same name as lfs script) with the list of installed files
|
||||
# special cases
|
||||
# - on a partial rebuild without a new file inside TARGET_1, just touch TARGET
|
||||
if [ -s "$(TARGET)_1" ]; then \
|
||||
# - on a partial rebuild without a new file inside TARGET_diff, just touch TARGET
|
||||
if [ -s "$(TARGET)_diff" ]; then \
|
||||
ROOTFILE=$(DIR_SRC)/src/ROOTFILES.$(MACHINE); \
|
||||
for line in `cat $(TARGET)_1`; do \
|
||||
if grep -qE "^#$$line$$" $$ROOTFILE ; then echo "#$$line" >> $(TARGET); \
|
||||
elif grep -qE "^$$line$$" $$ROOTFILE ; then echo "$$line" >> $(TARGET); \
|
||||
sed "s/KVER/$(KVER)/g" $$ROOTFILE > $(TARGET)_rootfile; \
|
||||
for line in `cat $(TARGET)_diff`; do \
|
||||
if grep -qE "^#$$line$$" $(TARGET)_rootfile ; then echo "#$$line" >> $(TARGET); \
|
||||
elif grep -qE "^$$line$$" $(TARGET)_rootfile ; then echo "$$line" >> $(TARGET); \
|
||||
else echo "+$$line" >> $(TARGET); \
|
||||
fi; \
|
||||
done; \
|
||||
rm -f $(TARGET)_rootfile; \
|
||||
else \
|
||||
touch $(TARGET); \
|
||||
fi
|
||||
@rm -f $(TARGET)_1
|
||||
@rm -f $(TARGET)_diff
|
||||
endef
|
||||
else
|
||||
define POSTBUILD
|
||||
@@ -130,7 +132,7 @@ define MD5
|
||||
# error mean file signature don't match the one in lfs script
|
||||
[ "$($@_MD5)" = `md5sum $(DIR_DL)/$@ | awk '{ print $$1 }'` ]
|
||||
echo "$@ checksum OK"
|
||||
echo "$@" >>$(DIR_INFO)/_build.packages-list.log
|
||||
echo "$@" >>$(DIR_INFO)/_build.othersrc-list.log
|
||||
endef
|
||||
|
||||
define PAK
|
||||
|
||||
28
lfs/fcron
28
lfs/fcron
@@ -22,7 +22,7 @@
|
||||
# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
|
||||
# - Modified Makefile for IPCop build #
|
||||
# #
|
||||
# $Id: fcron,v 1.5.2.4 2005/02/05 15:38:14 gespinasse Exp $
|
||||
# $Id: fcron,v 1.5.2.5 2006/09/07 00:27:44 franck78 Exp $
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 2.0.2
|
||||
VER = 3.0.1
|
||||
|
||||
THISAPP = fcron-$(VER)
|
||||
DL_FILE = $(THISAPP).src.tar.gz
|
||||
@@ -48,7 +48,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 416c55d8a484eb6c9907828009fd649c
|
||||
$(DL_FILE)_MD5 = 8e5dcb3a646c11294294895954ef0a48
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -78,12 +78,22 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && ./configure --prefix=/usr --disable-nls \
|
||||
--without-sendmail \
|
||||
--with-spooldir=/var/spool/cron \
|
||||
--with-username=cron --with-groupname=cron
|
||||
cd $(DIR_APP) && yes 'n' | make
|
||||
cd $(DIR_APP) && yes 'n' | make install
|
||||
cd $(DIR_APP) && ./configure \
|
||||
--prefix=/usr \
|
||||
--disable-nls \
|
||||
--without-sendmail \
|
||||
--with-spooldir=/var/spool/cron \
|
||||
--with-fifodir=/var/run \
|
||||
--with-username=cron \
|
||||
--with-groupname=cron \
|
||||
--with-run-non-privileged=no \
|
||||
--with-fcrondyn=no \
|
||||
--with-sysfcrontab=no \
|
||||
--with-boot-install=no \
|
||||
--with-pam=no \
|
||||
--with-selinux=no
|
||||
cd $(DIR_APP) && make
|
||||
cd $(DIR_APP) && make install
|
||||
echo "root" > /etc/fcron.allow
|
||||
echo "all" > /etc/fcron.deny
|
||||
chmod u-s /usr/bin/fcrontab /usr/bin/fcronsighup
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
|
||||
# - Modified Makefile for IPCop build #
|
||||
# #
|
||||
# $Id: makedev,v 1.11.2.3 2005/02/05 15:38:15 gespinasse Exp $
|
||||
# $Id: makedev,v 1.11.2.4 2006/09/06 05:33:17 gespinasse Exp $
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
@@ -117,6 +117,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
mknod /dev/usb/ttyACM$$i c 166 $$i; \
|
||||
done
|
||||
|
||||
# Wanpipe
|
||||
for i in `seq 0 7`; do \
|
||||
rm -f /dev/ttyWP$$i; \
|
||||
mknod -m 666 /dev/ttyWP$$i c 240 $$i; \
|
||||
done
|
||||
|
||||
# Add a symlink to the default floppy dev. updfstab will change it to USB if
|
||||
# necessary, but it must be present if it appears in /etc/mtab
|
||||
cd /dev && ln -sf fd0 floppy
|
||||
|
||||
18
lfs/pulsar
18
lfs/pulsar
@@ -22,7 +22,7 @@
|
||||
# 17-03-2004 Mark Wormgoor < mark@wormgoor.com> #
|
||||
# - Modified Makefile for IPCop build #
|
||||
# #
|
||||
# $Id: pulsar,v 1.1.2.17 2005/07/05 15:11:12 gespinasse Exp $
|
||||
# $Id: pulsar,v 1.1.2.18 2006/08/23 07:03:38 gespinasse Exp $
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 4.0.19
|
||||
VER = 4.0.21
|
||||
|
||||
THISAPP = pulsar-$(VER)
|
||||
DL_FILE = $(THISAPP).tgz
|
||||
@@ -52,7 +52,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 224fb4855c34e1982049bd01ba3d2732
|
||||
$(DL_FILE)_MD5 = a78649a0d9a0791edab6a43f3083f1fb
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -84,19 +84,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && mv libpulsar_fw3.a libpulsar_fw.a
|
||||
cd $(DIR_APP) && cp makefile.2.4 makefile
|
||||
ifeq "$(SMP)" ""
|
||||
cd $(DIR_APP) && sed -i \
|
||||
-e 's/$$(shell uname -m)/$(MACHINE)/' \
|
||||
-e 's/$$(shell uname -r)/$(KVER)/' \
|
||||
-e 's%^.*DEST_KERNEL_MAIN =.*$$%DEST_KERNEL_MAIN = 2.4%' makefile
|
||||
else
|
||||
cd $(DIR_APP) && sed -i \
|
||||
-e 's/$$(shell uname -m)/$(MACHINE)/' \
|
||||
-e 's/$$(shell uname -r)/$(KVER)-smp/' \
|
||||
-e 's%^.*DEST_KERNEL_MAIN =.*$$%DEST_KERNEL_MAIN = 2.4%' makefile
|
||||
endif
|
||||
cd $(DIR_APP) && sed -i \
|
||||
-e 's%^.*CC.*=.*$$%CC = $(KGCC)%' \
|
||||
-e 's%-falign-loops=2 -falign-jumps=2 -falign-functions=2%-DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h%' makefile
|
||||
cd $(DIR_APP) && make clean
|
||||
cd $(DIR_APP) && make pulsar_atm.o
|
||||
|
||||
@@ -72,7 +72,7 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 -i $(DIR_DL)/readline-5.1-fixes-3.patch
|
||||
cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/patches/readline-5.1-fixes-3.patch
|
||||
cd $(DIR_APP) && sed -i '/MV.*old/d' Makefile.in
|
||||
cd $(DIR_APP) && sed -i '/{OLDSUFF}/c:' support/shlib-install
|
||||
cd $(DIR_APP) && ./configure --prefix=/usr --libdir=/lib
|
||||
|
||||
23
lfs/unicorn
23
lfs/unicorn
@@ -22,7 +22,7 @@
|
||||
# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
|
||||
# - Modified Makefile for IPCop build #
|
||||
# #
|
||||
# $Id: unicorn,v 1.13.2.8 2005/02/05 15:38:16 gespinasse Exp $
|
||||
# $Id: unicorn,v 1.13.2.9 2006/08/23 07:03:38 gespinasse Exp $
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 0.9.0
|
||||
VER = 0.9.3
|
||||
|
||||
THISAPP = bast-$(VER)
|
||||
DL_FILE = $(THISAPP).tgz
|
||||
DL_FILE = A1012-A1006-A904-A888-A983-$(VER).tgz
|
||||
DL_FROM = http://www.bewan.com/bewan/drivers
|
||||
DIR_APP = $(DIR_SRC)/unicorn
|
||||
ifeq "$(SMP)" ""
|
||||
@@ -52,7 +52,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 8b4f880e79d9d23029cc8f85e2f6478a
|
||||
$(DL_FILE)_MD5 = ff9829f03168279a079d05aea780ee99
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -82,20 +82,13 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
sed -i -e 's%^CC=gcc.*$$%CC=$(KGCC)%' $(DIR_APP)/unicorn_pci/Makefile
|
||||
sed -i -e 's%^CC=gcc.*$$%CC=$(KGCC)%' $(DIR_APP)/unicorn_usb/Makefile
|
||||
sed -i -e 's%^PATCHLEVEL.*$$%PATCHLEVEL=4%' $(DIR_APP)/unicorn_pci/Makefile
|
||||
sed -i -e 's%^PATCHLEVEL.*$$%PATCHLEVEL=4%' $(DIR_APP)/unicorn_usb/Makefile
|
||||
sed -i -e 's%^COPTIONS.*$$%CXX=$(KGCC) -x c++%' $(DIR_APP)/unicorn_pci/Makefile
|
||||
ifeq "$(SMP)" ""
|
||||
sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)%' $(DIR_APP)/unicorn_usb/Makefile
|
||||
sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)%' $(DIR_APP)/unicorn_pci/Makefile
|
||||
cd $(DIR_APP) && make PATCHLEVEL=4 KVERS=$(KVER) modules
|
||||
cd $(DIR_APP) && make KVERS=$(KVER) only_modules_install
|
||||
else
|
||||
sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)-smp%' $(DIR_APP)/unicorn_usb/Makefile
|
||||
sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)-smp%' $(DIR_APP)/unicorn_pci/Makefile
|
||||
cd $(DIR_APP) && make PATCHLEVEL=4 KVERS=$(KVER)-smp modules
|
||||
cd $(DIR_APP) && make KVERS=$(KVER)-smp only_modules_install
|
||||
endif
|
||||
cd $(DIR_APP) && make modules
|
||||
cd $(DIR_APP) && make only_modules_install
|
||||
ifeq "$(SMP)" ""
|
||||
find /lib/modules/$(KVER)/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
cd $(DIR_APP)/tools && sed -i 's%^prefix=.*$$%prefix=/usr%' Makefile
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 27
|
||||
VER = 28
|
||||
|
||||
THISAPP = wireless_tools.$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
@@ -42,7 +42,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 29891b66f23565e7e381d28404abb29a
|
||||
$(DL_FILE)_MD5 = 599c94497f9c9073c7b052d3dcb7cd16
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
|
||||
83
lfs/yasuc
Normal file
83
lfs/yasuc
Normal file
@@ -0,0 +1,83 @@
|
||||
###############################################################################
|
||||
# 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 <rod@sunsetsystems.com> #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = 0.4.1
|
||||
|
||||
THISAPP = yasuc-$(VER)
|
||||
DL_FILE = $(THISAPP)_x86_linux.tar.bz2
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/dist/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = yasuc
|
||||
PAK_VER = 1
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 7cdf8534c6b9acba168c14594082d039
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
||||
|
||||
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
|
||||
md5 : $(subst %,%_MD5,$(objects))
|
||||
|
||||
dist:
|
||||
@$(PAK)
|
||||
|
||||
###############################################################################
|
||||
# Downloading, checking, md5sum
|
||||
###############################################################################
|
||||
|
||||
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
||||
@$(CHECK)
|
||||
|
||||
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
||||
@$(LOAD)
|
||||
|
||||
$(subst %,%_MD5,$(objects)) :
|
||||
@$(MD5)
|
||||
|
||||
###############################################################################
|
||||
# Installation Details
|
||||
###############################################################################
|
||||
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && cp -f yasuc /usr/bin/yasuc
|
||||
chmod 755 /usr/bin/yasuc
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
Reference in New Issue
Block a user