public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH 1/3] squid-accounting: Rename to proxy-accounting - bug#12772
Date: Mon, 21 Feb 2022 10:11:21 +0100	[thread overview]
Message-ID: <874c5d08-a946-e465-1e3d-8ca64e9aca9c@ipfire.org> (raw)
In-Reply-To: <C96910A0-17C2-45CC-910E-119447E04B33@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 4935 bytes --]

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(a)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(a)ipfire.org>
>> Signed-off-by: Adolf Belka <adolf.belka(a)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

  reply	other threads:[~2022-02-21  9:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18 14:32 Adolf Belka
2022-02-18 14:32 ` [PATCH 2/3] acct.pl: Change name of package in Error message - Bug#12772 Adolf Belka
2022-02-18 14:32 ` [PATCH 3/3] acct.en.pl: Update to use proxy accounting " Adolf Belka
2022-02-20 17:49 ` [PATCH 1/3] squid-accounting: Rename to proxy-accounting - bug#12772 Michael Tremer
2022-02-21  9:11   ` Adolf Belka [this message]
2022-02-21 11:23     ` Michael Tremer
2022-02-21 21:46       ` Peter Müller
2022-02-22 10:44         ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874c5d08-a946-e465-1e3d-8ca64e9aca9c@ipfire.org \
    --to=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox