From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: Porting ipcop addons Date: Fri, 12 Jan 2018 12:34:58 +0000 Message-ID: <1515760498.3647.52.camel@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6279714963766938133==" List-Id: --===============6279714963766938133== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hey Bob, thanks for getting in touch. I had no idea that too many people are still active around the IPCop communit= y, but welcome to IPFire. I guess this would be a great addition to IPFire although I could not find out which modems are supported. Is there any (bigger?) ISP handing out any compatible ones? I had a look at the code that you linked and that looks quite good. It's clean and tidy and I think porting that over would not be too hard. However, we don= 't run the perl scripts any more to collect stats. We use collectd in IPFire 2. Since we should not run the cron job to collect data for every since even when it doesn't have a compatible device, we should make this an add-on. What you will need to do is check out the build system as described here: https://wiki.ipfire.org/devel/ipfire-2.x/build-howto Then you would have to create a file called lfs/adslmonitor or something simi= lar and roughly follow these steps: https://wiki.ipfire.org/devel/ipfire-2.x/addon-howto I guess a good example to follow would be guardian which is also an add-on written in perl: https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dblob;f=3Dlfs/guardian;h=3Df3= 001c82128f3ba08290eea295b87cf342f65590;hb=3DHEAD To add a button to the navigation, you will have to add a file with some information to /var/ipfire/menu.d. They are here in the source: https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dtree;f=3Dconfig/menu;h=3D64c= d8c17713574e84a7012803f3261b8a8e81801;hb=3DHEAD Just dropping a file into that directory will do it. I hope that this gives you some good guidance. If you have any further questi= ons please ask at any time. Best, -Michael On Tue, 2018-01-09 at 15:34 +0000, Bob Brewer wrote: > Hi >=20 > I am the author of the adslmonitor addon for ipcop=20 > (https://sourceforge.net/projects/adslmonitor/)=20 > and looking at porting it to ipfire.=20 >=20 > I assume that I would need to use Pakfire to install the addon but I have s= o=20 > far been unsuccessful in finding any documentation that would help me modif= y=20 > the ipcop addon to be compatible with Ipfire (eg the Ipfire equivalent of=20 > the Ipcop command updatemenu.pl which adds the adslmonitor perl scripts to= =20 > the cgi menus). >=20 > Could someone could point me to the relevant documentation. >=20 > Kind Regards >=20 > Bob --===============6279714963766938133== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUFCQ2dBZEZpRUU1L3JXNWwzR0dl Mnlwa3R4Z0hudy8yK1FDUWNGQWxwWXEzSUFDZ2tRZ0hudy8yK1EKQ1FkYjN3Ly9RVDNxbDkwZGpO NDA1SVgrRW5pUUhoTkc1ZXk1RGNDVDRuNDR5cVIyQ0ppRGdmeVhSMGtvMjNSMgpydW8yazlWa1NC aFVyZ041T1F4YnFrZjg1MUd5RlhIWlhTcTFIQkFKQmZNQ0F5UlFXYkRnY2JrN1N4Rnp6dW5OCklq MlNpbHpFaThPTU1LOFBTckRlOS9PMXIySytQMFRYZ2k1YTFOOFhRd01ua2VvQ3VWVG43ajdobXI5 ZGZpZ1YKNlhOK01GcmY4dlMxNHpLVE5qNVUxb2FVY09ZbnUvYXRvbFdrcXVRMkVEWVc4RFhMQVVN UVc5RXFqblQ3NkFCcgpmU0ZpY0ZWRW9NS3FscUhTNkxWWEtTTm5KVmx6U3ZONXU4NzFnT0QwNUdU Q00zeEZUNjQwb3c0dlhlb3crZnZuCnR2eEI0ZWtwNDQ4M0lyNUdDNDFrU3dpT2pqK1ViMVdTa3Q1 aG0yOWFuU29LS0s5VlNaUXh2QWFTNW8xR2g1N1gKL1ZiV3I4UHo1TXVzeDI1YmFxdy8raXp1Zjh3 UUhrYWdyRUpvOFVOalJZUDFnbWszM2NodWxHN0dXSnl6U2J1agpGdkVuT25vbWNDdE1MK09Da09T QmRvWVU0ei9kQ1RDRWNlalo1R0llcEhaeElwYS9iTWdVU1FRZzdreHo5UXBiCk9FM2lab0JmT3JG dzJBak02eU1Kak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