Geaendert:

* Pakete haben jetzt die Endung .ipfire
  * Kleiner Logikfehler im ConnScheduler

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@264 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2006-08-30 18:29:15 +00:00
parent 8a7ededb09
commit d535503d95
8 changed files with 22 additions and 15 deletions

View File

@@ -6,7 +6,7 @@
get_list () {
PURL=`cat $CACHE_DIR/$SERVERS_LIST`
PURL=`cat ${CACHE_DIR}$SERVERS_LIST`
if [ "$PURL" ]; then
url=$(. $HOST_TEST "$PURL")

View File

@@ -7,15 +7,17 @@ get_mirror() {
cd $PAKHOME/cache
if [ -e $PAKHOME/cache/$SERVERS_LIST ]
then rm -f $PAKHOME/cache/$SERVERS_LIST
fi
#if [ -e $PAKHOME/cache/$SERVERS_LIST ]
# then rm -f $PAKHOME/cache/$SERVERS_LIST
#fi
if /usr/bin/wget -q $H_MIRROR >/dev/null 2>&1
if /usr/bin/wget $H_MIRROR >$LOG 2>&1
then
pakfire_logger "Got servers!"
cd -
return 0
else
pakfire_logger "Got no servers!"
cd -
return 1
fi

View File

@@ -15,7 +15,7 @@ fi
. $DB_DIR/$1
FILE="$1-${VER}_${IPFVER}.tar.gz"
FILE="$1-${VER}_${IPFVER}.ipfire"
if [ ! -f $CACHE_DIR/$FILE ]; then
cd /var/tmp
@@ -24,7 +24,7 @@ if [ ! -f $CACHE_DIR/$FILE ]; then
then
if [ "`md5sum $FILE`" = "`cat ${FILE}.md5`" ]; then
mv -f /var/tmp/$FILE{,.md5} $CACHE_DIR
pakfire_logger "MD5 sum OK!"
pakfire_logger "MD5 sum OK in $FILE!"
else
pakfire_logger "Wrong MD5 sum in $FILE."
rm -f /var/tmp/$FILE{,.md5}

View File

@@ -3,6 +3,7 @@
PROG="$1"
VER="$2"
PAK_VER="$3"
EXT=ipfire
if [ -f /install/packages/$PROG-$VER-$PAK_VER.tar.gz.empty ]; then
@@ -25,10 +26,10 @@ else
cd / && rm -rf /tmp/*
cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES
tar cfz ../$PROG-${VER}_$PAK_VER.tar.gz files.tgz install.sh uninstall.sh ROOTFILES depends.txt
tar cvz ../$PROG-${VER}_$PAK_VER.$EXT files.tgz install.sh uninstall.sh ROOTFILES depends.txt
cd /install/packages && md5sum $PROG*.tar.gz > $PROG-${VER}_$PAK_VER.tar.gz.md5
cd /install/packages && md5sum $PROG*.tar.gz >> all-progs.md5
cd /install/packages && md5sum $PROG*.$EXT > $PROG-${VER}_$PAK_VER.$EXT.md5
cd /install/packages && md5sum $PROG*.$EXT >> all-progs.md5
rm -rf /install/packages/package
exit 0
fi