X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Fpakfire%2Fpakfire.conf;h=7e7b8d59bc3ad45e1f7dd5b5dc5537db4407f8e8;hp=7974f512400f6cae5e63927fcfc8e313835e2373;hb=b0dcbdeae448d3fc852c9ee9a4e5e6b9ab75fd34;hpb=b34fd95d16b55a0006f73612c3b8203677ed1480 diff --git a/src/pakfire/pakfire.conf b/src/pakfire/pakfire.conf index 7974f51240..7e7b8d59bc 100644 --- a/src/pakfire/pakfire.conf +++ b/src/pakfire/pakfire.conf @@ -1,6 +1,46 @@ -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 +#!/usr/bin/perl +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2011 IPFire Team # +# # +# This program 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 3 of the License, or # +# (at your option) any later version. # +# # +# This program 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 this program. If not, see . # +# # +############################################################################### + +package Conf; + +$version = "2.11"; + +$mainserver = "pakfire.ipfire.org"; + +$cachedir = "/opt/pakfire/cache"; +$dbdir = "/opt/pakfire/db"; +$coredir = "/opt/pakfire/db/core"; +$tmpdir = "/opt/pakfire/tmp"; +$logdir = "/opt/pakfire/logs"; + +if ( -e "$dbdir/uuid" ) { + $uuid = `cat $dbdir/uuid`; + chomp($uuid); +} + +if ( -e "$coredir/mine" ) { + $core_mine = `cat $coredir/mine`; + chomp($core_mine); +} else { + $core_mine = "0"; +} + +1;