--- /dev/null
+etc/init.d/networking/red
--- /dev/null
+DEPS=""
+DESCDE=
+DESCEN=
--- /dev/null
+update.sh
+files
+ROOTFILES
* iana-etc-2.10
* icecast-2.3.1
* icegenerator-0.5.5-pre2
-* ices-0.4
-* ices-2.0.1
* iftop-0.17
* inetutils-1.4.2
* ipac-ng-1.31
/* TR_CONGRATULATIONS_LONG */
"%s wurde erfolgreich installiert. Entfernen Sie bitte alle eventuellen CDs aus dem Computer. Nun wird das Setup-Programm gestartet, in dem Sie ISDN, Netzwerkkarten und die Systempasswörter konfigurieren können. Wenn dies fertiggestellt ist, rufen Sie in Ihrem Webbrowser die Box mit https://%s:444 (oder welchen Namen Sie Ihrem %s auch immer gegeben haben) auf und konfigurieren die Wählverbindung und (falls nötig) die Fernwartung.",
/* TR_CONTINUE_NO_SWAP */
-"Ihre Festplatte ist sehr klein, aber sie können ohne Auslagerungsdatei weitermachen. (Mit Vorsicht benutzen).",
+"Ihre Festplatte ist sehr klein, aber sie können mit einer minimalen Auslagerungspartition weitermachen. (Mit Vorsicht benutzen).",
/* TR_CURRENT_CONFIG */
"Aktuelle Einstellung: %s%s",
/* TR_DEFAULT_GATEWAY */
/* TR_CONGRATULATIONS_LONG */
"%s was successfully installed. Please remove any CDROMs in the computer. Setup will now run where you may configure ISDN, network cards, and the system passwords. After Setup has been completed, you should point your web browser at https://%s:444 (or whatever you name your %s), and configure dialup networking (if required) and remote access.",
/* TR_CONTINUE_NO_SWAP */
-"Your harddisk is very small, but you can continue without any swap. (Use with caution).",
+"Your harddisk is very small, but you can continue with an very small swap. (Use with caution).",
/* TR_CURRENT_CONFIG */
"Current config: %s%s",
/* TR_DEFAULT_GATEWAY */
--- /dev/null
+###############################################################################
+# 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 = ipfire
+
+THISAPP = core-updates
+TARGET = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+install : $(TARGET)
+
+check :
+
+download :
+
+md5 :
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+ for i in $$(ls -1 $(DIR_SRC)/config/rootfiles/core) ; do \
+ if [ "$$i" == "files" ]; then continue; fi; \
+ rm -rf /install/packages/package; \
+ mkdir -p /install/packages/package && \
+ eval $$(cat /usr/src/config/rootfiles/core/$$i/meta) \
+ && cp -f /usr/src/config/rootfiles/core/$$i/update.sh /install/packages/package \
+ && cp -f /usr/src/config/rootfiles/core/$$i/files /install/packages/package/ROOTFILES \
+ && chmod 755 /install/packages/package/update.sh \
+ && cd / \
+ && tar -cf /install/packages/package/files --files-from=/install/packages/package/ROOTFILES --exclude='#*' \
+ && cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES; \
+ cd /install/packages/package && tar cf ../core-update-$(VERSION)-$$i.ipfire \
+ --files-from=/usr/src/config/rootfiles/core/files && \
+ rm -rf /install/packages/package; \
+ sed -e "s/NAME/core-update/g" \
+ -e "s/VER/$(VERSION)/g" \
+ -e "s/RELEASE/$$i/g" \
+ -e "s/DEPS/$(DEPS)/g" \
+ -e "s/DESCDE/$(DESCDE)/g" \
+ -e "s/DESCEN/$(DESCEN)/g" \
+ -e "s/SIZE/`ls -l \/install\/packages\/core-update-$(VERSION)-$$i.ipfire | awk '{ print \$5 }'`/g" \
+ < /usr/src/src/pakfire/meta > /install/packages/meta-core-update-$$i; \
+ done
beautify message DONE
# Create images for install
- if [ "$DEVEL" == "1" ]; then
- ipfiremake cdrom ED=devel
- fi
ipfiremake cdrom ED=full
# Check if there is a loop device for building in virtual environments
}
ipfirepackages() {
+ ipfiremake core-updates
for i in $(ls -1 $BASEDIR/config/rootfiles/packages); do
[ -e $BASEDIR/lfs/$i ] && ipfiredist $i
done
build)
clear
BUILDMACHINE=`uname -m`
- DEVEL=0
- if [ "$2" == "--devel" ]; then
- DEVEL=1
- fi
PACKAGE=`ls -v -r $BASEDIR/cache/toolchains/$SNAME-$VERSION-toolchain-$BUILDMACHINE.tar.gz 2> /dev/null | head -n 1`
#only restore on a clean disk
if [ ! -f log/cleanup-toolchain-2-tools ]; then
swap_file = memory;
/* Calculating Root-Size dependend of Max Disk Space */
- if ( disk < 1024 )
+ if ( disk < 756 )
root_partition = 256;
else if ( disk >= 1024 && disk <= 3072 )
root_partition = 512;
fprintf(flog, ", boot = %ld, swap = %ld, mylog = %ld, root = %ld\n",
boot_partition, swap_file, system_partition, root_partition);
- if ( (!unattended) && (((disk - (root_partition + swap_file + boot_partition)) < 256 ) && ((disk - (root_partition + boot_partition)) > 256)) ) {
- rc = newtWinChoice(title, ctr[TR_CONTINUE_NO_SWAP], ctr[TR_OK], ctr[TR_CANCEL]);
+ if ( (!unattended) && (((disk - (root_partition + swap_file + boot_partition)) < 256 ) && ((disk - (root_partition + boot_partition + 32 )) > 256)) ) {
+ rc = newtWinChoice(title, ctr[TR_OK], ctr[TR_CANCEL], ctr[TR_CONTINUE_NO_SWAP]);
+ if (rc != 0){
+ swap_file = 32;
+ system_partition = disk - ( root_partition + swap_file + boot_partition );
+ fprintf(flog, "Changing Swap Size to 32 MB.\n");
+ }
+ else {
+ fprintf(flog, "Disk is too small.\n");
+ errorbox(ctr[TR_DISK_TOO_SMALL]);goto EXIT;
+ }
}
else if (disk - (root_partition + swap_file + boot_partition) >= 256) {
fprintf(flog, "Disk is too small.\n");
errorbox(ctr[TR_DISK_TOO_SMALL]);goto EXIT;
}
- if (rc != 1){
- swap_file = 0;
- fprintf(flog, "Changing Swap Size to 0.\n");
- }
-
+
handle = fopen("/tmp/partitiontable", "w");
/* Make swapfile */
sleep(5);
unlink("/var/ipfire/remote/enablessh");
safe_system("cat /var/ipfire/remote/settings | sed 's/ENABLE_SSH=on/ENABLE_SSH=off/' > /var/ipfire/remote/settings2 && mv /var/ipfire/remote/settings2 /var/ipfire/remote/settings");
- argv[1]
snprintf(command, BUFFER_SIZE-1, "sleep %s && /usr/local/bin/sshctrl &", argv[2]);
safe_system(command);
}