From: ms Date: Sat, 20 May 2006 11:34:29 +0000 (+0000) Subject: Hinzugefügt: X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=b34fd95d16b55a0006f73612c3b8203677ed1480 Hinzugefügt: * Pakfire in die ISO gepackt. (Welche nocheinmal kleiner geworden ist.) * Neues Shutdown-Bild Geändert: * Zahlreiche Schönheitsfehler im Pakfire korrigiert. ^^ Gelöscht: * Ein kleines Überbleibsel vom IPCop entfernt. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@128 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- diff --git a/doc/ChangeLog b/doc/ChangeLog index aea002c8a..740c32c6c 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +------------------------------------------------------------------------ +r127 | ms | 2006-05-20 11:34:19 +0200 (Sa, 20 Mai 2006) | 3 lines + +Hinzugefügt: + * Erste Version des Pakfire von Peter + ------------------------------------------------------------------------ r126 | ms | 2006-05-19 16:29:15 +0200 (Fr, 19 Mai 2006) | 3 lines diff --git a/doc/How-to-make-update b/doc/How-to-make-update deleted file mode 100644 index 4be2bf379..000000000 --- a/doc/How-to-make-update +++ /dev/null @@ -1,51 +0,0 @@ -Prerequisites -- have release right on sourceforge to be able to affect uploaded files to a release -- have 'IPCop development Group' private gpg key (and password) to sign the patch, import the key with gpg --import (private key file name) -- you can create your own key with whatever name you want and replace (temporarily!) the pub key in - your box (/root/.gnupg/*) for testing your patch - -Build -- ./make.sh changelog and commit : update doc/Changelog (include in the .iso) -- ./make.sh build -- ./make.sh dist : - build source package by exporting from CVS, - create a check-list of modified files in doc/updated-sources.txt -- manually check all necessary files are include in updates/1.4.x/ROOTFILES.*.1.4.x comparing with /doc/updated-sources.txt -- sign the patch with gpg --local-user "IPCop Development Group" --sign ipcop-update-1.4.x.tgz (or with another name given to the key) -- for the announce, files md5 are obtained with md5sum ipcop-* - -Sourceforge -- in case of test files, rename them with rename 1.4.x 1.4.xtest *1.4.x* -- upload files via ftp to upload.sourceforge.net in incoming directory - (may need to have more than 30s inactivity timeout to be able to connect on sourceforge) -- add a new release - for test file, status active under "IPCop test versions" package - for official release, status active under "IPCop" package - affect uploaded files (web interface Files Release System) on the release - add Changelog and text abstract at the release -- control file size under Files web page once files are affected to the package -- with ssh, update every patch list on shell.sourceforge.net /home/groups/i/ip/ipcop/htdocs/patches preceding the previous v1.4.x version with : - the content of updates/1.4x/information (and add the link to the release on sourceforge at the end of the line) -- add a new entry corresponding to the next version number in the patch list with only "----START LIST----" inside - chmod 664 the file -- In Tracker, Tracker administration, bugs, add a new group corresponding to the version number - -Update CVS : -- with the tag of the release - cvs tag IPCOP_v1_4_(x)_FINAL - -- bump VERSION and PREVIOUSTAG in make.sh -- ./make.sh newupdate - will add a new directory in updates corresponding to the new version number with files: - information (Id number should be 003 for VERSION=1.4.3) - ROOTFILES.alpha-1.4.x - ROOTFILES.i386-1.4.x - setup - .cvsignore (containing patch.tar.gz ) - -www.ipcop.org -- update with doc/packages-list.txt - http://www.ipcop.org/modules.php?op=modload&name=phpWiki&file=index&pagename=IPCopSoftwares - -News -- send news on user devel announce lists (subscribe to announce before if necessary) diff --git a/doc/packages-list.txt b/doc/packages-list.txt index 3b22776be..73aab0108 100644 --- a/doc/packages-list.txt +++ b/doc/packages-list.txt @@ -152,6 +152,7 @@ * openssl-0.9.7i * openswan-1.0.10 * openvpn-2.0.7 + * pakfire * pam_mysql-0.7RC1 * patch-2.5.4 * pciutils-2.1.11 diff --git a/html/cgi-bin/shutdown.cgi b/html/cgi-bin/shutdown.cgi index cd50dd831..6305ca9c6 100644 --- a/html/cgi-bin/shutdown.cgi +++ b/html/cgi-bin/shutdown.cgi @@ -6,8 +6,6 @@ # # (c) The SmoothWall Team # -# $Id: shutdown.cgi,v 1.5.2.10 2006/01/02 16:21:00 eoberlander Exp $ -# use strict; @@ -216,7 +214,7 @@ END
-




+





diff --git a/html/html/images/ipfire_big.gif b/html/html/images/ipfire_big.gif new file mode 100644 index 000000000..a43729fb2 Binary files /dev/null and b/html/html/images/ipfire_big.gif differ diff --git a/lfs/pakfire b/lfs/pakfire new file mode 100644 index 000000000..77f7302b8 --- /dev/null +++ b/lfs/pakfire @@ -0,0 +1,57 @@ +############################################################################### +# 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 # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = + +THISAPP = pakfire +DIR_APP = /opt/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +install : $(TARGET) + +check : + +download : + +md5 : + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && cp -fRv src/pakfire $(DIR_APP) + cd $(DIR_APP) && mv -vf pakfire.conf /etc + cd $(DIR_APP) && chown root.root $(DIR_APP) -R && chmod 755 pakfire lib/* + cd $(DIR_APP) && find $(DIR_APP) -name .svn -exec rm -rf {} \; + @$(POSTBUILD) \ No newline at end of file diff --git a/make.sh b/make.sh index 944b70392..6bf3bebdb 100644 --- a/make.sh +++ b/make.sh @@ -653,7 +653,8 @@ buildipcop() { ipcopmake wireless ipcopmake libsafe ipcopmake 3c5x9setup - echo -ne "`date -u '+%b %e %T'`: Building IPFire modules \n" | tee -a $LOGFILE + echo -ne "`date -u '+%b %e %T'`: Building ### IPFire modules ### \n" | tee -a $LOGFILE + ipcopmake pakfire ## Zuerst die Libs und dann die Programme. Ordnung muss sein! ipcopmake berkeley ipcopmake BerkeleyDB ## The Perl module @@ -673,7 +674,7 @@ buildipcop() { ipcopmake xinetd ipcopmake ghostscript ipcopmake cups -# ipcopmake lpd +# ipcopmake lpd ## Im Moment aus, da CUPS vorhanden ist. ipcopmake samba ipcopmake sudo ipcopmake mc @@ -681,7 +682,7 @@ buildipcop() { ipcopmake openh323 ipcopmake wget ipcopmake bridge-utils - echo -ne "`date -u '+%b %e %T'`: Building Mailserver \n" | tee -a $LOGFILE + echo -ne "`date -u '+%b %e %T'`: Building ### Mailserver ### \n" | tee -a $LOGFILE ipcopmake postfix ipcopmake fetchmail ipcopmake cyrusimap @@ -690,13 +691,13 @@ buildipcop() { ipcopmake razor ipcopmake spamassassin ipcopmake amavisd - echo -ne "`date -u '+%b %e %T'`: Building VoIP-Server \n" | tee -a $LOGFILE + echo -ne "`date -u '+%b %e %T'`: Building ### VoIP-Server ### \n" | tee -a $LOGFILE ipcopmake stund ipcopmake asterisk ipcopmake openvpn ipcopmake edonkeyclc ipcopmake sane - echo -ne "`date -u '+%b %e %T'`: Building MP3-Server \n" | tee -a $LOGFILE + echo -ne "`date -u '+%b %e %T'`: Building ### MP3-Server ### \n" | tee -a $LOGFILE ipcopmake lame ipcopmake gnump3d ipcopmake rsync diff --git a/src/ROOTFILES.i386 b/src/ROOTFILES.i386 index 6df18cb70..a8088a270 100644 --- a/src/ROOTFILES.i386 +++ b/src/ROOTFILES.i386 @@ -26436,3 +26436,8 @@ usr/sbin/visudo #usr/share/man/man8/sudo.8 #usr/share/man/man8/sudoedit.8 #usr/share/man/man8/visudo.8 +## +## pakfire +## +/opt/pakfire +/etc/pakfire.conf diff --git a/src/pakfire/lib/check_pak.sh b/src/pakfire/lib/check_pak.sh index 4a8b11d87..3e5c4f44e 100644 --- a/src/pakfire/lib/check_pak.sh +++ b/src/pakfire/lib/check_pak.sh @@ -1,26 +1,26 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # Verzeichnis von Pakman VERZ=$(get_conf.sh HOME) -# Update Verzeichnis +# Update-Verzeichnis UP_DIR=$(get_conf.sh UP_DIR) # Verzeichnis mit nicht Installierten Paketen NIP_DIR=$(get_conf.sh NIP_DIR) # Verzeichnis mit Installierten Paketen -IP_DIR=$(get_conf.sh ^IP_DIR) +IP_DIR=$(get_conf.sh IP_DIR) # Patchliste -PATCH_LIST=$(get_conf.sh DEST_DIR)$(get_conf.sh LIST_NAME) +PATCH_LIST=$(get_conf.sh DEST_DIR)/$(get_conf.sh LIST_NAME) # Zerlegte Listen -ZERL_PATCH=$(get_conf.sh DEST_DIR)zerl_ +ZERL_PATCH=$(get_conf.sh DEST_DIR)/zerl_ # Listen Verzeichnis LIST_DIR=$(get_conf.sh DEST_DIR) diff --git a/src/pakfire/lib/get_conf.sh b/src/pakfire/lib/get_conf.sh index 46b6dccd6..ffef70e05 100644 --- a/src/pakfire/lib/get_conf.sh +++ b/src/pakfire/lib/get_conf.sh @@ -1,15 +1,15 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # Conf File festlegen -CONF_File=/opt/pakfire/pakfire.conf +CONF_FILE=/opt/pakfire/pakfire.conf -if [ -r $CONF_File ] +if [ -r $CONF_FILE ] then - STRI=$(grep $1 $CONF_File) + STRI=$(grep $1 $CONF_FILE) STRI=${STRI#*=} fi diff --git a/src/pakfire/lib/get_list.sh b/src/pakfire/lib/get_list.sh index 9fd789cfa..1fa815e2f 100644 --- a/src/pakfire/lib/get_list.sh +++ b/src/pakfire/lib/get_list.sh @@ -1,11 +1,11 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # Verzeichnis von Pakman -VERZ=$(/bin/get_conf.sh HOME) +VERZ=$(get_conf.sh HOME) # Version des IPFire ermitteln VERS=$(get_conf.sh VERS print) @@ -20,7 +20,7 @@ LOG_file=$(get_conf.sh LOG) LIST_NAME=$(get_conf.sh LIST_NAME) # Ziel Verzeichnis -DEST_DIR=$(get_conf.sh DEST_DIR) +DEST_DIR=$(get_conf.sh HOME)/list # Host Tester HOST_TEST=$(get_conf.sh HOST_TEST) @@ -33,27 +33,27 @@ fi # Falls URL nicht gesetzt wurde abbruch des Scripts if [ -z $URL ] - then echo "Kann keinen Patchserver finden">>$LOG_file + then echo "Kann keinen Listenserver finden.">>$LOG_file exit 1 fi # Verzeichnis in Zielverzeichnis wechseln für Download cd $DEST_DIR -# Pruefen ob bereits ein File vorhanden ist falls ja dann wird sie nun gelöscht -if [ -f ${DEST_DIR}${LIST_NAME} ] - then rm ${DEST_DIR}${LIST_NAME} +# Pruefen ob bereits ein File vorhanden ist - falls ja, dann wird sie nun gelöscht +if [ -f ${DEST_DIR}/${LIST_NAME} ] + then rm ${DEST_DIR}/${LIST_NAME} fi # Download der Liste if /usr/bin/wget -q $URL/${VERS}/${LIST_NAME} >/dev/null 2>&1 then cd - - echo "Updateliste herunter geladen von $URL">>$LOG_file + echo "Updateliste heruntergeladen von $URL">>$LOG_file exit 0 else cd - - echo "Updateliste konnnte nicht herunter geladen werden von $URL">>$LOG_file + echo "Updateliste konnnte nicht heruntergeladen werden von $URL">>$LOG_file exit 1 fi diff --git a/src/pakfire/lib/get_mirror.sh b/src/pakfire/lib/get_mirror.sh index 29b6623ed..e12c517c2 100644 --- a/src/pakfire/lib/get_mirror.sh +++ b/src/pakfire/lib/get_mirror.sh @@ -1,27 +1,27 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ -# Haupturl +# Haupt-URL http=$(get_conf.sh H_MIRROR) -# Ziel Verzeichnis +# Ziel-Verzeichnis dest=$(get_conf.sh HOME) -# URL Zerleger +# URL-Zerleger URL_ZERL=$(get_conf.sh URL_ZERL) -# Host Tester +# Host-Tester HOST_TEST=$(get_conf.sh HOST_TEST) -# Testen ob Server erreichbar +# Testen ob Server erreichbar ist if ! $HOST_TEST $($URL_ZERL $http get_host) >/dev/null 2>&1 then exit 1 fi -# Verzeichnis wechseln +# Ins Verzeichnis wechseln cd $dest # Überprüfen ob File schon vorhanden ist @@ -29,7 +29,7 @@ if [ -e ${dest}$($URL_ZERL $http get_file) ] then rm ${dest}$($URL_ZERL $http get_file) fi -# File herunter laden +# File herunterladen if /usr/bin/wget -q $http >/dev/null 2>&1 then cd - diff --git a/src/pakfire/lib/get_pak.sh b/src/pakfire/lib/get_pak.sh index 194836810..01c816fc7 100644 --- a/src/pakfire/lib/get_pak.sh +++ b/src/pakfire/lib/get_pak.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # Download Zielverzeichnis diff --git a/src/pakfire/lib/get_pakname.sh b/src/pakfire/lib/get_pakname.sh index 978bfe540..f78dbd748 100644 --- a/src/pakfire/lib/get_pakname.sh +++ b/src/pakfire/lib/get_pakname.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # Update Verzeichnis diff --git a/src/pakfire/lib/test.sh b/src/pakfire/lib/test.sh index 3ce53f751..c7f6763ff 100644 --- a/src/pakfire/lib/test.sh +++ b/src/pakfire/lib/test.sh @@ -1,4 +1,8 @@ #!/bin/bash +############################################################################################ +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # +############################################################################################ echo $? echo $$ diff --git a/src/pakfire/lib/test_host.sh b/src/pakfire/lib/test_host.sh index 7def31f73..2e8edb8ce 100644 --- a/src/pakfire/lib/test_host.sh +++ b/src/pakfire/lib/test_host.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # URL Zerleger diff --git a/src/pakfire/lib/unpak_pak.sh b/src/pakfire/lib/unpak_pak.sh index 252684bcc..8140c9e30 100644 --- a/src/pakfire/lib/unpak_pak.sh +++ b/src/pakfire/lib/unpak_pak.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ # Source Verzeichnis diff --git a/src/pakfire/lib/url_zerl.sh b/src/pakfire/lib/url_zerl.sh index 0da841996..91db43d49 100644 --- a/src/pakfire/lib/url_zerl.sh +++ b/src/pakfire/lib/url_zerl.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################################ -# Version 0.1a, Copyright (C) 2006 Peter Schaelchli Für IPFire besteht KEINERLEI GARANTIE;# -# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen; # +# Version 0.1a, Copyright (C) 2006 by IPFire.org # +# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. # ############################################################################################ protokoll=${1%%:*} diff --git a/src/pakfire/pakfire b/src/pakfire/pakfire index 594ecf17f..af00031aa 100644 --- a/src/pakfire/pakfire +++ b/src/pakfire/pakfire @@ -6,12 +6,12 @@ case "$1" in - renewlist) $(get_conf.sh HOME)/lib/get_mirror.sh + update) $(get_conf.sh HOME)/lib/get_mirror.sh $(get_conf.sh HOME)/lib/get_list.sh $(get_conf.sh HOME)/lib/check_pak.sh - ;; + ;; - *) echo -e "pakfire install [Paket]\npakfire update [Paket]\npakfiren remove [Paket]\npakfire renewlist" + *) echo -e "IPFire - Pakfire\nHilfe:\npakfire install [Paket]\t- Installiert ein neues Paket.\npakfire update\t\t- Lädt die Liste aller Pakete neu.\npakfire remove [Paket]\t- Deinstalliert ein Paket.\npakfire upgrade\t\t- Überprüft nach neuen Updates." esac diff --git a/src/pakfire/pakfire.conf b/src/pakfire/pakfire.conf index e69de29bb..7974f5124 100644 --- a/src/pakfire/pakfire.conf +++ b/src/pakfire/pakfire.conf @@ -0,0 +1,6 @@ +VERS=1.4-beta-1 +HOME=/opt/pakfire +H_MIRROR=http://mirror.ipfire.org/pakfire +HOST_TEST=ping -c 5 +LOG=/var/log/pakfire.log +LIST_NAME=paklist