Message ID | 20220218143239.5883-1-adolf.belka@ipfire.org |
---|---|
State | Accepted |
Commit | adb4174fa459d8102c674e8b6b7c9aeac17c8da2 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K0Z1F0nfXz3wtR for <patchwork@web04.haj.ipfire.org>; Fri, 18 Feb 2022 14:33:05 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4K0Z1C42Yxz17q; Fri, 18 Feb 2022 14:33:03 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K0Z1C3Jyhz2yW0; Fri, 18 Feb 2022 14:33:03 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K0Z1B3nDmz2xbW for <development@lists.ipfire.org>; Fri, 18 Feb 2022 14:33:02 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4K0Z1B03Wnz36; Fri, 18 Feb 2022 14:33:01 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1645194782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yLsVulLnfGBsOZRmn17ynGXKCwlan0wJqJIaA4g3F+4=; b=Rt/QFh73Jo3gZxeYRIbhCcyRviBpO/wdYlGbpXKmbI0UXU7mLyrNSVhZMUUmWHx48AP7Nv +XMg+7smbFVNw6Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1645194782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yLsVulLnfGBsOZRmn17ynGXKCwlan0wJqJIaA4g3F+4=; b=ZoFP6hGkJVfCYvW7P1Sh6SHzMzyZKuXNqRozCfPI+p5K1jXkY/oz9IslY6XzPRDRGh7Ul0 EC8Tug4IKvvzKqMHJl73vyp1uGk+u/vmLdGijPQJP+GR8BOqPoVgb7u4lzbYsqnLGzWUB3 4LhZgsk4vG7zGJbv2VsH6deCkY1rFsiqJkqvICvpzKbJcg7aCLsdzvbqL9TBxH5RtHMX50 w1bWrVhI9iPOZKOHXNj70vEN9bG/i5+2KOR2X6zeCqzsyWvuRx9H+1h8hzRiJ3GY6FjFsI TnlM3YP6LmfvCvCaAK0zwdGi+rP8bj4jRb+S1NhprHrOMxAgOMJH1Vjxd+oUGQ== From: Adolf Belka <adolf.belka@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH 1/3] squid-accounting: Rename to proxy-accounting - bug#12772 Date: Fri, 18 Feb 2022 15:32:37 +0100 Message-Id: <20220218143239.5883-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
[1/3] squid-accounting: Rename to proxy-accounting - bug#12772
|
|
Commit Message
Adolf Belka
Feb. 18, 2022, 2:32 p.m. UTC
- Rename lfs, rootfile and paks directory - Change name in make.sh - Tested out in a vm system and worked Fixes: Bug#12772 Tested-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> --- .../packages/{squid-accounting => proxy-accounting} | 2 +- lfs/{squid-accounting => proxy-accounting} | 8 ++++---- make.sh | 2 +- .../{squid-accounting => proxy-accounting}/install.sh | 0 .../{squid-accounting => proxy-accounting}/uninstall.sh | 0 src/paks/{squid-accounting => proxy-accounting}/update.sh | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename config/rootfiles/packages/{squid-accounting => proxy-accounting} (90%) rename lfs/{squid-accounting => proxy-accounting} (94%) rename src/paks/{squid-accounting => proxy-accounting}/install.sh (100%) rename src/paks/{squid-accounting => proxy-accounting}/uninstall.sh (100%) rename src/paks/{squid-accounting => proxy-accounting}/update.sh (100%)
Comments
Hello, How are we making sure that people who have the old package installed will receive updates for the new package? I believe I have seen this patch merged, but that should be considered. -Michael > On 18 Feb 2022, at 14:32, Adolf Belka <adolf.belka@ipfire.org> wrote: > > - Rename lfs, rootfile and paks directory > - Change name in make.sh > - Tested out in a vm system and worked > > Fixes: Bug#12772 > Tested-by: Adolf Belka <adolf.belka@ipfire.org> > Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> > --- > .../packages/{squid-accounting => proxy-accounting} | 2 +- > lfs/{squid-accounting => proxy-accounting} | 8 ++++---- > make.sh | 2 +- > .../{squid-accounting => proxy-accounting}/install.sh | 0 > .../{squid-accounting => proxy-accounting}/uninstall.sh | 0 > src/paks/{squid-accounting => proxy-accounting}/update.sh | 0 > 6 files changed, 6 insertions(+), 6 deletions(-) > rename config/rootfiles/packages/{squid-accounting => proxy-accounting} (90%) > rename lfs/{squid-accounting => proxy-accounting} (94%) > rename src/paks/{squid-accounting => proxy-accounting}/install.sh (100%) > rename src/paks/{squid-accounting => proxy-accounting}/uninstall.sh (100%) > rename src/paks/{squid-accounting => proxy-accounting}/update.sh (100%) > > diff --git a/config/rootfiles/packages/squid-accounting b/config/rootfiles/packages/proxy-accounting > similarity index 90% > rename from config/rootfiles/packages/squid-accounting > rename to config/rootfiles/packages/proxy-accounting > index 82b171e33..0c142ea5c 100644 > --- a/config/rootfiles/packages/squid-accounting > +++ b/config/rootfiles/packages/proxy-accounting > @@ -11,6 +11,6 @@ var/ipfire/addon-lang/acct.de.pl > var/ipfire/addon-lang/acct.en.pl > var/ipfire/addon-lang/acct.fr.pl > var/ipfire/addon-lang/acct.tr.pl > -var/ipfire/backup/addons/includes/squid-accounting > +var/ipfire/backup/addons/includes/proxy-accounting > var/ipfire/menu.d/EX-squid-accounting.menu > var/log/accounting.log > diff --git a/lfs/squid-accounting b/lfs/proxy-accounting > similarity index 94% > rename from lfs/squid-accounting > rename to lfs/proxy-accounting > index 77742554e..82e39ae76 100644 > --- a/lfs/squid-accounting > +++ b/lfs/proxy-accounting > @@ -11,11 +11,11 @@ include Config > > VER = 1.0.4 > > -THISAPP = squid-accounting-$(VER) > +THISAPP = proxy-accounting-$(VER) > DIR_APP = $(DIR_SRC)/$(THISAPP) > TARGET = $(DIR_INFO)/$(THISAPP) > -PROG = squid-accounting > -PAK_VER = 13 > +PROG = proxy-accounting > +PAK_VER = 14 > > DEPS = perl-File-ReadBackwards > > @@ -61,7 +61,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) > install -v -m 644 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/ > install -v -m 755 $(DIR_APP)/squid-accounting/dbinstall.pl /var/ipfire/accounting/ > install -v -m 644 $(DIR_APP)/squid-accounting/config/backup/includes/squid-accounting \ > - /var/ipfire/backup/addons/includes/squid-accounting > + /var/ipfire/backup/addons/includes/proxy-accounting > > #activate hourly logging of proxy logfile > ln -sf /usr/local/bin/acct.pl /etc/fcron.hourly/squid-accounting > diff --git a/make.sh b/make.sh > index 79798834a..e35fed398 100755 > --- a/make.sh > +++ b/make.sh > @@ -1638,7 +1638,7 @@ buildipfire() { > lfsmake2 perl-Font-TTF > lfsmake2 perl-IO-String > lfsmake2 perl-PDF-API2 > - lfsmake2 squid-accounting > + lfsmake2 proxy-accounting > lfsmake2 pigz > lfsmake2 tmux > lfsmake2 perl-Text-CSV_XS > diff --git a/src/paks/squid-accounting/install.sh b/src/paks/proxy-accounting/install.sh > similarity index 100% > rename from src/paks/squid-accounting/install.sh > rename to src/paks/proxy-accounting/install.sh > diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/proxy-accounting/uninstall.sh > similarity index 100% > rename from src/paks/squid-accounting/uninstall.sh > rename to src/paks/proxy-accounting/uninstall.sh > diff --git a/src/paks/squid-accounting/update.sh b/src/paks/proxy-accounting/update.sh > similarity index 100% > rename from src/paks/squid-accounting/update.sh > rename to src/paks/proxy-accounting/update.sh > -- > 2.35.1 >
Hi Michael, On 20/02/2022 18:49, Michael Tremer wrote: > Hello, > > How are we making sure that people who have the old package installed will receive updates for the new package? Ah, that is a good point. I hadn't thought of that. I presume name changes have occurred in the past to addons. Do you have any suggestions for what I need to modify or do. I presume that my perl file name changes will have caused the same problem for any perl addons that were changed so I will also need to go back and sort those out. Regards, Adolf. > > I believe I have seen this patch merged, but that should be considered. > > -Michael > >> On 18 Feb 2022, at 14:32, Adolf Belka <adolf.belka@ipfire.org> wrote: >> >> - Rename lfs, rootfile and paks directory >> - Change name in make.sh >> - Tested out in a vm system and worked >> >> Fixes: Bug#12772 >> Tested-by: Adolf Belka <adolf.belka@ipfire.org> >> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> >> --- >> .../packages/{squid-accounting => proxy-accounting} | 2 +- >> lfs/{squid-accounting => proxy-accounting} | 8 ++++---- >> make.sh | 2 +- >> .../{squid-accounting => proxy-accounting}/install.sh | 0 >> .../{squid-accounting => proxy-accounting}/uninstall.sh | 0 >> src/paks/{squid-accounting => proxy-accounting}/update.sh | 0 >> 6 files changed, 6 insertions(+), 6 deletions(-) >> rename config/rootfiles/packages/{squid-accounting => proxy-accounting} (90%) >> rename lfs/{squid-accounting => proxy-accounting} (94%) >> rename src/paks/{squid-accounting => proxy-accounting}/install.sh (100%) >> rename src/paks/{squid-accounting => proxy-accounting}/uninstall.sh (100%) >> rename src/paks/{squid-accounting => proxy-accounting}/update.sh (100%) >> >> diff --git a/config/rootfiles/packages/squid-accounting b/config/rootfiles/packages/proxy-accounting >> similarity index 90% >> rename from config/rootfiles/packages/squid-accounting >> rename to config/rootfiles/packages/proxy-accounting >> index 82b171e33..0c142ea5c 100644 >> --- a/config/rootfiles/packages/squid-accounting >> +++ b/config/rootfiles/packages/proxy-accounting >> @@ -11,6 +11,6 @@ var/ipfire/addon-lang/acct.de.pl >> var/ipfire/addon-lang/acct.en.pl >> var/ipfire/addon-lang/acct.fr.pl >> var/ipfire/addon-lang/acct.tr.pl >> -var/ipfire/backup/addons/includes/squid-accounting >> +var/ipfire/backup/addons/includes/proxy-accounting >> var/ipfire/menu.d/EX-squid-accounting.menu >> var/log/accounting.log >> diff --git a/lfs/squid-accounting b/lfs/proxy-accounting >> similarity index 94% >> rename from lfs/squid-accounting >> rename to lfs/proxy-accounting >> index 77742554e..82e39ae76 100644 >> --- a/lfs/squid-accounting >> +++ b/lfs/proxy-accounting >> @@ -11,11 +11,11 @@ include Config >> >> VER = 1.0.4 >> >> -THISAPP = squid-accounting-$(VER) >> +THISAPP = proxy-accounting-$(VER) >> DIR_APP = $(DIR_SRC)/$(THISAPP) >> TARGET = $(DIR_INFO)/$(THISAPP) >> -PROG = squid-accounting >> -PAK_VER = 13 >> +PROG = proxy-accounting >> +PAK_VER = 14 >> >> DEPS = perl-File-ReadBackwards >> >> @@ -61,7 +61,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >> install -v -m 644 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/ >> install -v -m 755 $(DIR_APP)/squid-accounting/dbinstall.pl /var/ipfire/accounting/ >> install -v -m 644 $(DIR_APP)/squid-accounting/config/backup/includes/squid-accounting \ >> - /var/ipfire/backup/addons/includes/squid-accounting >> + /var/ipfire/backup/addons/includes/proxy-accounting >> >> #activate hourly logging of proxy logfile >> ln -sf /usr/local/bin/acct.pl /etc/fcron.hourly/squid-accounting >> diff --git a/make.sh b/make.sh >> index 79798834a..e35fed398 100755 >> --- a/make.sh >> +++ b/make.sh >> @@ -1638,7 +1638,7 @@ buildipfire() { >> lfsmake2 perl-Font-TTF >> lfsmake2 perl-IO-String >> lfsmake2 perl-PDF-API2 >> - lfsmake2 squid-accounting >> + lfsmake2 proxy-accounting >> lfsmake2 pigz >> lfsmake2 tmux >> lfsmake2 perl-Text-CSV_XS >> diff --git a/src/paks/squid-accounting/install.sh b/src/paks/proxy-accounting/install.sh >> similarity index 100% >> rename from src/paks/squid-accounting/install.sh >> rename to src/paks/proxy-accounting/install.sh >> diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/proxy-accounting/uninstall.sh >> similarity index 100% >> rename from src/paks/squid-accounting/uninstall.sh >> rename to src/paks/proxy-accounting/uninstall.sh >> diff --git a/src/paks/squid-accounting/update.sh b/src/paks/proxy-accounting/update.sh >> similarity index 100% >> rename from src/paks/squid-accounting/update.sh >> rename to src/paks/proxy-accounting/update.sh >> -- >> 2.35.1 >> >
Hello, > On 21 Feb 2022, at 09:11, Adolf Belka <adolf.belka@ipfire.org> wrote: > > Hi Michael, > > On 20/02/2022 18:49, Michael Tremer wrote: >> Hello, >> How are we making sure that people who have the old package installed will receive updates for the new package? > Ah, that is a good point. I hadn't thought of that. I presume name changes have occurred in the past to addons. Do you have any suggestions for what I need to modify or do. > > I presume that my perl file name changes will have caused the same problem for any perl addons that were changed so I will also need to go back and sort those out. Yes. In the updater, we would have to check for the old package to be installed and if so, to rename any meta-data and adjust it accordingly in the pakfire database. This is most likely a job for Peter. -Michael > > Regards, > Adolf. >> I believe I have seen this patch merged, but that should be considered. >> -Michael >>> On 18 Feb 2022, at 14:32, Adolf Belka <adolf.belka@ipfire.org> wrote: >>> >>> - Rename lfs, rootfile and paks directory >>> - Change name in make.sh >>> - Tested out in a vm system and worked >>> >>> Fixes: Bug#12772 >>> Tested-by: Adolf Belka <adolf.belka@ipfire.org> >>> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> >>> --- >>> .../packages/{squid-accounting => proxy-accounting} | 2 +- >>> lfs/{squid-accounting => proxy-accounting} | 8 ++++---- >>> make.sh | 2 +- >>> .../{squid-accounting => proxy-accounting}/install.sh | 0 >>> .../{squid-accounting => proxy-accounting}/uninstall.sh | 0 >>> src/paks/{squid-accounting => proxy-accounting}/update.sh | 0 >>> 6 files changed, 6 insertions(+), 6 deletions(-) >>> rename config/rootfiles/packages/{squid-accounting => proxy-accounting} (90%) >>> rename lfs/{squid-accounting => proxy-accounting} (94%) >>> rename src/paks/{squid-accounting => proxy-accounting}/install.sh (100%) >>> rename src/paks/{squid-accounting => proxy-accounting}/uninstall.sh (100%) >>> rename src/paks/{squid-accounting => proxy-accounting}/update.sh (100%) >>> >>> diff --git a/config/rootfiles/packages/squid-accounting b/config/rootfiles/packages/proxy-accounting >>> similarity index 90% >>> rename from config/rootfiles/packages/squid-accounting >>> rename to config/rootfiles/packages/proxy-accounting >>> index 82b171e33..0c142ea5c 100644 >>> --- a/config/rootfiles/packages/squid-accounting >>> +++ b/config/rootfiles/packages/proxy-accounting >>> @@ -11,6 +11,6 @@ var/ipfire/addon-lang/acct.de.pl >>> var/ipfire/addon-lang/acct.en.pl >>> var/ipfire/addon-lang/acct.fr.pl >>> var/ipfire/addon-lang/acct.tr.pl >>> -var/ipfire/backup/addons/includes/squid-accounting >>> +var/ipfire/backup/addons/includes/proxy-accounting >>> var/ipfire/menu.d/EX-squid-accounting.menu >>> var/log/accounting.log >>> diff --git a/lfs/squid-accounting b/lfs/proxy-accounting >>> similarity index 94% >>> rename from lfs/squid-accounting >>> rename to lfs/proxy-accounting >>> index 77742554e..82e39ae76 100644 >>> --- a/lfs/squid-accounting >>> +++ b/lfs/proxy-accounting >>> @@ -11,11 +11,11 @@ include Config >>> >>> VER = 1.0.4 >>> >>> -THISAPP = squid-accounting-$(VER) >>> +THISAPP = proxy-accounting-$(VER) >>> DIR_APP = $(DIR_SRC)/$(THISAPP) >>> TARGET = $(DIR_INFO)/$(THISAPP) >>> -PROG = squid-accounting >>> -PAK_VER = 13 >>> +PROG = proxy-accounting >>> +PAK_VER = 14 >>> >>> DEPS = perl-File-ReadBackwards >>> >>> @@ -61,7 +61,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >>> install -v -m 644 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/ >>> install -v -m 755 $(DIR_APP)/squid-accounting/dbinstall.pl /var/ipfire/accounting/ >>> install -v -m 644 $(DIR_APP)/squid-accounting/config/backup/includes/squid-accounting \ >>> - /var/ipfire/backup/addons/includes/squid-accounting >>> + /var/ipfire/backup/addons/includes/proxy-accounting >>> >>> #activate hourly logging of proxy logfile >>> ln -sf /usr/local/bin/acct.pl /etc/fcron.hourly/squid-accounting >>> diff --git a/make.sh b/make.sh >>> index 79798834a..e35fed398 100755 >>> --- a/make.sh >>> +++ b/make.sh >>> @@ -1638,7 +1638,7 @@ buildipfire() { >>> lfsmake2 perl-Font-TTF >>> lfsmake2 perl-IO-String >>> lfsmake2 perl-PDF-API2 >>> - lfsmake2 squid-accounting >>> + lfsmake2 proxy-accounting >>> lfsmake2 pigz >>> lfsmake2 tmux >>> lfsmake2 perl-Text-CSV_XS >>> diff --git a/src/paks/squid-accounting/install.sh b/src/paks/proxy-accounting/install.sh >>> similarity index 100% >>> rename from src/paks/squid-accounting/install.sh >>> rename to src/paks/proxy-accounting/install.sh >>> diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/proxy-accounting/uninstall.sh >>> similarity index 100% >>> rename from src/paks/squid-accounting/uninstall.sh >>> rename to src/paks/proxy-accounting/uninstall.sh >>> diff --git a/src/paks/squid-accounting/update.sh b/src/paks/proxy-accounting/update.sh >>> similarity index 100% >>> rename from src/paks/squid-accounting/update.sh >>> rename to src/paks/proxy-accounting/update.sh >>> -- >>> 2.35.1 >>> > > -- > Sent from my laptop
Hello *, > Hello, > >> On 21 Feb 2022, at 09:11, Adolf Belka <adolf.belka@ipfire.org> wrote: >> >> Hi Michael, >> >> On 20/02/2022 18:49, Michael Tremer wrote: >>> Hello, >>> How are we making sure that people who have the old package installed will receive updates for the new package? >> Ah, that is a good point. I hadn't thought of that. I presume name changes have occurred in the past to addons. Do you have any suggestions for what I need to modify or do. >> >> I presume that my perl file name changes will have caused the same problem for any perl addons that were changed so I will also need to go back and sort those out. > > Yes. In the updater, we would have to check for the old package to be installed and if so, to rename any meta-data and adjust it accordingly in the pakfire database. This is most likely a job for Peter. since I was unable to find a similar event in the past, I am afraid I need help on this one: (a) How is it possible to enumerate from Pakfire whether an add-on is installed or not? "pakfire --help" does not appear to give any useful function for this. (b) What does "adjust it accordingly in the pakfire database" imply precisely? (c) Is there anything else to do afterwards, such as "pakfire update" or some database cleanup? Thanks, and best regards, Peter Müller > > -Michael > >> >> Regards, >> Adolf. >>> I believe I have seen this patch merged, but that should be considered. >>> -Michael >>>> On 18 Feb 2022, at 14:32, Adolf Belka <adolf.belka@ipfire.org> wrote: >>>> >>>> - Rename lfs, rootfile and paks directory >>>> - Change name in make.sh >>>> - Tested out in a vm system and worked >>>> >>>> Fixes: Bug#12772 >>>> Tested-by: Adolf Belka <adolf.belka@ipfire.org> >>>> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> >>>> --- >>>> .../packages/{squid-accounting => proxy-accounting} | 2 +- >>>> lfs/{squid-accounting => proxy-accounting} | 8 ++++---- >>>> make.sh | 2 +- >>>> .../{squid-accounting => proxy-accounting}/install.sh | 0 >>>> .../{squid-accounting => proxy-accounting}/uninstall.sh | 0 >>>> src/paks/{squid-accounting => proxy-accounting}/update.sh | 0 >>>> 6 files changed, 6 insertions(+), 6 deletions(-) >>>> rename config/rootfiles/packages/{squid-accounting => proxy-accounting} (90%) >>>> rename lfs/{squid-accounting => proxy-accounting} (94%) >>>> rename src/paks/{squid-accounting => proxy-accounting}/install.sh (100%) >>>> rename src/paks/{squid-accounting => proxy-accounting}/uninstall.sh (100%) >>>> rename src/paks/{squid-accounting => proxy-accounting}/update.sh (100%) >>>> >>>> diff --git a/config/rootfiles/packages/squid-accounting b/config/rootfiles/packages/proxy-accounting >>>> similarity index 90% >>>> rename from config/rootfiles/packages/squid-accounting >>>> rename to config/rootfiles/packages/proxy-accounting >>>> index 82b171e33..0c142ea5c 100644 >>>> --- a/config/rootfiles/packages/squid-accounting >>>> +++ b/config/rootfiles/packages/proxy-accounting >>>> @@ -11,6 +11,6 @@ var/ipfire/addon-lang/acct.de.pl >>>> var/ipfire/addon-lang/acct.en.pl >>>> var/ipfire/addon-lang/acct.fr.pl >>>> var/ipfire/addon-lang/acct.tr.pl >>>> -var/ipfire/backup/addons/includes/squid-accounting >>>> +var/ipfire/backup/addons/includes/proxy-accounting >>>> var/ipfire/menu.d/EX-squid-accounting.menu >>>> var/log/accounting.log >>>> diff --git a/lfs/squid-accounting b/lfs/proxy-accounting >>>> similarity index 94% >>>> rename from lfs/squid-accounting >>>> rename to lfs/proxy-accounting >>>> index 77742554e..82e39ae76 100644 >>>> --- a/lfs/squid-accounting >>>> +++ b/lfs/proxy-accounting >>>> @@ -11,11 +11,11 @@ include Config >>>> >>>> VER = 1.0.4 >>>> >>>> -THISAPP = squid-accounting-$(VER) >>>> +THISAPP = proxy-accounting-$(VER) >>>> DIR_APP = $(DIR_SRC)/$(THISAPP) >>>> TARGET = $(DIR_INFO)/$(THISAPP) >>>> -PROG = squid-accounting >>>> -PAK_VER = 13 >>>> +PROG = proxy-accounting >>>> +PAK_VER = 14 >>>> >>>> DEPS = perl-File-ReadBackwards >>>> >>>> @@ -61,7 +61,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >>>> install -v -m 644 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/ >>>> install -v -m 755 $(DIR_APP)/squid-accounting/dbinstall.pl /var/ipfire/accounting/ >>>> install -v -m 644 $(DIR_APP)/squid-accounting/config/backup/includes/squid-accounting \ >>>> - /var/ipfire/backup/addons/includes/squid-accounting >>>> + /var/ipfire/backup/addons/includes/proxy-accounting >>>> >>>> #activate hourly logging of proxy logfile >>>> ln -sf /usr/local/bin/acct.pl /etc/fcron.hourly/squid-accounting >>>> diff --git a/make.sh b/make.sh >>>> index 79798834a..e35fed398 100755 >>>> --- a/make.sh >>>> +++ b/make.sh >>>> @@ -1638,7 +1638,7 @@ buildipfire() { >>>> lfsmake2 perl-Font-TTF >>>> lfsmake2 perl-IO-String >>>> lfsmake2 perl-PDF-API2 >>>> - lfsmake2 squid-accounting >>>> + lfsmake2 proxy-accounting >>>> lfsmake2 pigz >>>> lfsmake2 tmux >>>> lfsmake2 perl-Text-CSV_XS >>>> diff --git a/src/paks/squid-accounting/install.sh b/src/paks/proxy-accounting/install.sh >>>> similarity index 100% >>>> rename from src/paks/squid-accounting/install.sh >>>> rename to src/paks/proxy-accounting/install.sh >>>> diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/proxy-accounting/uninstall.sh >>>> similarity index 100% >>>> rename from src/paks/squid-accounting/uninstall.sh >>>> rename to src/paks/proxy-accounting/uninstall.sh >>>> diff --git a/src/paks/squid-accounting/update.sh b/src/paks/proxy-accounting/update.sh >>>> similarity index 100% >>>> rename from src/paks/squid-accounting/update.sh >>>> rename to src/paks/proxy-accounting/update.sh >>>> -- >>>> 2.35.1 >>>> >> >> -- >> Sent from my laptop >
Hello, > On 21 Feb 2022, at 21:46, Peter Müller <peter.mueller@ipfire.org> wrote: > > Hello *, > >> Hello, >> >>> On 21 Feb 2022, at 09:11, Adolf Belka <adolf.belka@ipfire.org> wrote: >>> >>> Hi Michael, >>> >>> On 20/02/2022 18:49, Michael Tremer wrote: >>>> Hello, >>>> How are we making sure that people who have the old package installed will receive updates for the new package? >>> Ah, that is a good point. I hadn't thought of that. I presume name changes have occurred in the past to addons. Do you have any suggestions for what I need to modify or do. >>> >>> I presume that my perl file name changes will have caused the same problem for any perl addons that were changed so I will also need to go back and sort those out. >> >> Yes. In the updater, we would have to check for the old package to be installed and if so, to rename any meta-data and adjust it accordingly in the pakfire database. This is most likely a job for Peter. > > since I was unable to find a similar event in the past, I am afraid I need help on this one: No, we haven’t done this before. > (a) How is it possible to enumerate from Pakfire whether an add-on is installed or not? > "pakfire --help" does not appear to give any useful function for this. There is no command. You will have to manually edit the files in the database: https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=config/rootfiles/oldcore/161/update.sh;hb=3b45d9561b6d30d9491419a2022f2befaf2b2f4a#l90 Here, we removed a package. Each package consists of its meta file in the installed directory and its rootfile. In this case, you will have to check whether both files exist, if so, then rename them to the new name. I suppose we keep the version numbers and keep counting up, so pakfire will after the update check against the downloaded package database and find an update and install the new version and uninstalling all old files. That should work just fine. > (b) What does "adjust it accordingly in the pakfire database" imply precisely? See above. > (c) Is there anything else to do afterwards, such as "pakfire update" or some database cleanup? Yes, after renaming, you probably want to install the new package, but since you are already in the middle of an update, this will happen automatically. There is no need for any manual cleanup. Just renaming the files. Let me know if you have any further questions. Best, -Michael > > Thanks, and best regards, > Peter Müller > >> >> -Michael >> >>> >>> Regards, >>> Adolf. >>>> I believe I have seen this patch merged, but that should be considered. >>>> -Michael >>>>> On 18 Feb 2022, at 14:32, Adolf Belka <adolf.belka@ipfire.org> wrote: >>>>> >>>>> - Rename lfs, rootfile and paks directory >>>>> - Change name in make.sh >>>>> - Tested out in a vm system and worked >>>>> >>>>> Fixes: Bug#12772 >>>>> Tested-by: Adolf Belka <adolf.belka@ipfire.org> >>>>> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> >>>>> --- >>>>> .../packages/{squid-accounting => proxy-accounting} | 2 +- >>>>> lfs/{squid-accounting => proxy-accounting} | 8 ++++---- >>>>> make.sh | 2 +- >>>>> .../{squid-accounting => proxy-accounting}/install.sh | 0 >>>>> .../{squid-accounting => proxy-accounting}/uninstall.sh | 0 >>>>> src/paks/{squid-accounting => proxy-accounting}/update.sh | 0 >>>>> 6 files changed, 6 insertions(+), 6 deletions(-) >>>>> rename config/rootfiles/packages/{squid-accounting => proxy-accounting} (90%) >>>>> rename lfs/{squid-accounting => proxy-accounting} (94%) >>>>> rename src/paks/{squid-accounting => proxy-accounting}/install.sh (100%) >>>>> rename src/paks/{squid-accounting => proxy-accounting}/uninstall.sh (100%) >>>>> rename src/paks/{squid-accounting => proxy-accounting}/update.sh (100%) >>>>> >>>>> diff --git a/config/rootfiles/packages/squid-accounting b/config/rootfiles/packages/proxy-accounting >>>>> similarity index 90% >>>>> rename from config/rootfiles/packages/squid-accounting >>>>> rename to config/rootfiles/packages/proxy-accounting >>>>> index 82b171e33..0c142ea5c 100644 >>>>> --- a/config/rootfiles/packages/squid-accounting >>>>> +++ b/config/rootfiles/packages/proxy-accounting >>>>> @@ -11,6 +11,6 @@ var/ipfire/addon-lang/acct.de.pl >>>>> var/ipfire/addon-lang/acct.en.pl >>>>> var/ipfire/addon-lang/acct.fr.pl >>>>> var/ipfire/addon-lang/acct.tr.pl >>>>> -var/ipfire/backup/addons/includes/squid-accounting >>>>> +var/ipfire/backup/addons/includes/proxy-accounting >>>>> var/ipfire/menu.d/EX-squid-accounting.menu >>>>> var/log/accounting.log >>>>> diff --git a/lfs/squid-accounting b/lfs/proxy-accounting >>>>> similarity index 94% >>>>> rename from lfs/squid-accounting >>>>> rename to lfs/proxy-accounting >>>>> index 77742554e..82e39ae76 100644 >>>>> --- a/lfs/squid-accounting >>>>> +++ b/lfs/proxy-accounting >>>>> @@ -11,11 +11,11 @@ include Config >>>>> >>>>> VER = 1.0.4 >>>>> >>>>> -THISAPP = squid-accounting-$(VER) >>>>> +THISAPP = proxy-accounting-$(VER) >>>>> DIR_APP = $(DIR_SRC)/$(THISAPP) >>>>> TARGET = $(DIR_INFO)/$(THISAPP) >>>>> -PROG = squid-accounting >>>>> -PAK_VER = 13 >>>>> +PROG = proxy-accounting >>>>> +PAK_VER = 14 >>>>> >>>>> DEPS = perl-File-ReadBackwards >>>>> >>>>> @@ -61,7 +61,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >>>>> install -v -m 644 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/ >>>>> install -v -m 755 $(DIR_APP)/squid-accounting/dbinstall.pl /var/ipfire/accounting/ >>>>> install -v -m 644 $(DIR_APP)/squid-accounting/config/backup/includes/squid-accounting \ >>>>> - /var/ipfire/backup/addons/includes/squid-accounting >>>>> + /var/ipfire/backup/addons/includes/proxy-accounting >>>>> >>>>> #activate hourly logging of proxy logfile >>>>> ln -sf /usr/local/bin/acct.pl /etc/fcron.hourly/squid-accounting >>>>> diff --git a/make.sh b/make.sh >>>>> index 79798834a..e35fed398 100755 >>>>> --- a/make.sh >>>>> +++ b/make.sh >>>>> @@ -1638,7 +1638,7 @@ buildipfire() { >>>>> lfsmake2 perl-Font-TTF >>>>> lfsmake2 perl-IO-String >>>>> lfsmake2 perl-PDF-API2 >>>>> - lfsmake2 squid-accounting >>>>> + lfsmake2 proxy-accounting >>>>> lfsmake2 pigz >>>>> lfsmake2 tmux >>>>> lfsmake2 perl-Text-CSV_XS >>>>> diff --git a/src/paks/squid-accounting/install.sh b/src/paks/proxy-accounting/install.sh >>>>> similarity index 100% >>>>> rename from src/paks/squid-accounting/install.sh >>>>> rename to src/paks/proxy-accounting/install.sh >>>>> diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/proxy-accounting/uninstall.sh >>>>> similarity index 100% >>>>> rename from src/paks/squid-accounting/uninstall.sh >>>>> rename to src/paks/proxy-accounting/uninstall.sh >>>>> diff --git a/src/paks/squid-accounting/update.sh b/src/paks/proxy-accounting/update.sh >>>>> similarity index 100% >>>>> rename from src/paks/squid-accounting/update.sh >>>>> rename to src/paks/proxy-accounting/update.sh >>>>> -- >>>>> 2.35.1 >>>>> >>> >>> -- >>> Sent from my laptop
diff --git a/config/rootfiles/packages/squid-accounting b/config/rootfiles/packages/proxy-accounting similarity index 90% rename from config/rootfiles/packages/squid-accounting rename to config/rootfiles/packages/proxy-accounting index 82b171e33..0c142ea5c 100644 --- a/config/rootfiles/packages/squid-accounting +++ b/config/rootfiles/packages/proxy-accounting @@ -11,6 +11,6 @@ var/ipfire/addon-lang/acct.de.pl var/ipfire/addon-lang/acct.en.pl var/ipfire/addon-lang/acct.fr.pl var/ipfire/addon-lang/acct.tr.pl -var/ipfire/backup/addons/includes/squid-accounting +var/ipfire/backup/addons/includes/proxy-accounting var/ipfire/menu.d/EX-squid-accounting.menu var/log/accounting.log diff --git a/lfs/squid-accounting b/lfs/proxy-accounting similarity index 94% rename from lfs/squid-accounting rename to lfs/proxy-accounting index 77742554e..82e39ae76 100644 --- a/lfs/squid-accounting +++ b/lfs/proxy-accounting @@ -11,11 +11,11 @@ include Config VER = 1.0.4 -THISAPP = squid-accounting-$(VER) +THISAPP = proxy-accounting-$(VER) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) -PROG = squid-accounting -PAK_VER = 13 +PROG = proxy-accounting +PAK_VER = 14 DEPS = perl-File-ReadBackwards @@ -61,7 +61,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) install -v -m 644 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/ install -v -m 755 $(DIR_APP)/squid-accounting/dbinstall.pl /var/ipfire/accounting/ install -v -m 644 $(DIR_APP)/squid-accounting/config/backup/includes/squid-accounting \ - /var/ipfire/backup/addons/includes/squid-accounting + /var/ipfire/backup/addons/includes/proxy-accounting #activate hourly logging of proxy logfile ln -sf /usr/local/bin/acct.pl /etc/fcron.hourly/squid-accounting diff --git a/make.sh b/make.sh index 79798834a..e35fed398 100755 --- a/make.sh +++ b/make.sh @@ -1638,7 +1638,7 @@ buildipfire() { lfsmake2 perl-Font-TTF lfsmake2 perl-IO-String lfsmake2 perl-PDF-API2 - lfsmake2 squid-accounting + lfsmake2 proxy-accounting lfsmake2 pigz lfsmake2 tmux lfsmake2 perl-Text-CSV_XS diff --git a/src/paks/squid-accounting/install.sh b/src/paks/proxy-accounting/install.sh similarity index 100% rename from src/paks/squid-accounting/install.sh rename to src/paks/proxy-accounting/install.sh diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/proxy-accounting/uninstall.sh similarity index 100% rename from src/paks/squid-accounting/uninstall.sh rename to src/paks/proxy-accounting/uninstall.sh diff --git a/src/paks/squid-accounting/update.sh b/src/paks/proxy-accounting/update.sh similarity index 100% rename from src/paks/squid-accounting/update.sh rename to src/paks/proxy-accounting/update.sh