X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Fpakfire%2Fpakfire.conf;h=1c74f3c85ea45ab17dd0f3eb0486348e026a148e;hp=e3f02869d789d21d71604599f9eadb21e60befc5;hb=d9c6f56c2ea171cbc1fa396feb30d2814b9a818d;hpb=1bd42c892ccaa879d6a06e762a10c6934f177f7f diff --git a/src/pakfire/pakfire.conf b/src/pakfire/pakfire.conf index e3f02869d7..1c74f3c85e 100644 --- a/src/pakfire/pakfire.conf +++ b/src/pakfire/pakfire.conf @@ -1,14 +1,46 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2013 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.0b1"; +$version = "@VERSION@"; $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;