[BETA] phPKG - MOD installer with repositories & packages

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Sat Sep 01, 2007 6:27 pm

Actually the whole tool will be much more user-friendly. ;) There will be only brief messages about installation, with option to see (or save) formatted or raw log (for now believe that installation went wrong if numerous ugly red lines were showing up ;) ). What do you mean by “confirmation”? You have to click at least twice at “install” button already ;) .
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by primehalo » Sat Sep 01, 2007 6:33 pm

Dabroz wrote:You have to add phPKG module. Go to ACP :arrow: “SYSTEM” tab :arrow: Module management :arrow: Administration Control Panel. Then add phPKG (ACP_PHPKG) to desired page (I think that it best fits into SYSTEM/AUTOMATION). Then you will have to enable it (by clicking “Enable” ;) ). It's all.
Shouldn't this be added to the installation instructions, in they DIY section?
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by primehalo » Sat Sep 01, 2007 6:50 pm

Typo In the Packages section:
In must contain XML file (MODX) and it must be in .tar.gz or .zip format.

In the Repositories section, the table headers look like this:

Code: Select all

Status | Repository | { PACKAGES } | { LASTCHECK } | Actions
In the Configure section, I get this:

Code: Select all

 { MAIN_OPTIONS }

{ UPLOADING_METHOD }
    { FTP }
    { SERVER_COPY } (unsupported yet)
    { TARGZ } (unsupported yet) 

{ DOWNLOADING_METHOD }
    { FGC }
    { WGET } (unsupported yet)
    { FSOCK } (unsupported yet) 

{ UNPACKING_METHOD }
    { TARCOMMAND }
    { VIAPHP } 
Where are all of these strings supposed to be located? I only see one language file that comes with your package, and it doesn't seem to contain these.

When I click on Autoupdate or Feedback, I am not taken to a new page. The current page just seems to reload, except with the new action in the query part of the URL.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Sat Sep 01, 2007 7:10 pm

Shouldn't this be added to the installation instructions, in they DIY section?
It should. My bad.

About unlocalized strings: it's all true. They just have not been made yet, but I found placeholders clear enough to leave language file unmodified (there are more important things to develop ;) ). Don't worry, in next release I won't leave any placeholder. ;) Thanks for the type, I will fix it. If you find any more typos or badly written text, please let me know. The actions Feedback and Autoupdate have not been made yet, they are on TODO list. ;)
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by primehalo » Sat Sep 01, 2007 7:17 pm

Here's something else; when I go to Packages, browse to a ZIP file in the Upload MOD section, and hit submit, the next page displays a bunch of errors:

Code: Select all

[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 317: opendir(./../cache/phpkg/pkg/../dir/local_664a60dd406992767d45d365797e8306) [function.opendir]: failed to open dir: No error
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 319: readdir(): supplied argument is not a valid Directory resource
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 329: opendir(./../cache/phpkg/pkg/../dir/local_664a60dd406992767d45d365797e8306) [function.opendir]: failed to open dir: No error
[phpBB Debug] PHP Notice: in file /pkg/bb3phpkg.php on line 330: readdir(): supplied argument is not a valid Directory resource
{ pL_KernelPanic }

No valid XML was found!

    * 12:14:01(3): [tar] Unpacking zipfile ./../cache/phpkg/pkg/local_664a60dd406992767d45d365797e8306.zip
    * 12:14:01(3): [sys] SYSTEM CALL:
      cd ./../cache/phpkg/pkg && mkdir ../dir/local_664a60dd406992767d45d365797e8306 && cd ../dir/local_664a60dd406992767d45d365797e8306 && cp ../../pkg/local_664a60dd406992767d45d365797e8306.zip . && unzip local_664a60dd406992767d45d365797e8306.zip
    * 12:14:01(3): [sys] System reply:
    * 12:14:01(3): [xml] Searching for a XML file in ./../cache/phpkg/pkg/../dir/local_664a60dd406992767d45d365797e8306
I am running this on Windows XP, so I think the root of the problem is the SYSTEM CALL using forward slashes instead of back slashes. When I use a command line window to enter the SYSTEM CALL, it only works if I change the slashes to backslashes.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Sat Sep 01, 2007 7:23 pm

Wow, there is command line unzip program on Windows? Nice. But I guess there is no TAR one. :-P You may want to manually replace slashes to backslashes in system call or to use unpacking via PHP (you can select it in configuration).

If you want to do first thing, just open /pkg/class/tar_command.php and after

Code: Select all

$comm .= "tar -xf $file.tar";
                }
add

Code: Select all

$comm = str_replace('/', "\\", $comm);
Let me know if it works.
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by primehalo » Sat Sep 01, 2007 8:54 pm

Yeah, it solves the forward slash/backslash issue, but then there's another issue with the "cp" command, since the Windows' version is "copy". How about adding something like this to the script:

Code: Select all

$agent = getenv('HTTP_USER_AGENT');
$windows_env = (stripos($agent, 'win') >= 0 || stripos($agent, '16bit') >= 0) ? true : false;
$copy_cmd = $windows_env ? 'copy' : 'cp';
. . .
$comm = ($windows_env) ? str_replace('/', '\\', $comm) : $comm;
   
My local version is running on Windows, but my live version is running on Linux, so some automatic detection would be nice.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Sat Sep 01, 2007 10:59 pm

It is a good idea, however environment needs to be checked not against USER_AGENT as it is your browser but against server system (for example SERVER_SOFTWARE).
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Mon Sep 10, 2007 7:59 pm

I was away for few days, but I've just passed Advanced mathematical analysis exam, really freaky stuff. :mrgreen: I'm working on dev4 version (I'm going to release translation tool as well), as for now just few screenshots:
Local MOD storage area has been slightly modified, many other features are being added. :)
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

Kojote1980
Registered User
Posts: 13
Joined: Tue Sep 04, 2007 2:39 am

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Kojote1980 » Tue Sep 11, 2007 4:17 am

looking forward to see dev4 :) i failed to install dev3 somehow... :D

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

phPKG - additional commands

Post by Dabroz » Wed Sep 12, 2007 11:51 am

Hey, I need your feedback. ;) I'm implementing several new MODX commands, and I would like you to tell me what do you think about them, and also if you have any further idea about new command, please tell me as well.
  • PHP - simply execute given file (such command would be processed last)
  • ADD-MODULE - add a module do UCP, MCP or ACP.
  • CHMOD - run CHMOD command on given files
If you are worrying about those who like to install MODs by hand, there is no need to. ;) XML and its stylesheet can be easily extended for those commands (and I would say that it would be even simpler if user see for example CHMOD command instead of DIY, because advice about CHMODding can be given in “Tips” area. Same goes for other commands). What else would you add, what would you change?

--

A few new screenshots (screenshots with screenshots ;) )
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

jjjohan
Registered User
Posts: 9
Joined: Mon May 22, 2006 9:17 am
Location: Brisbane, Australia

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by jjjohan » Fri Sep 14, 2007 5:49 am

I need some help installing. After almost an entire day's work I still haven't gotten the mod to work.
I'm getting this error message when I click on it.

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/www/arm1st-ir.awardspace.com/forum/pkg/bb3phpkg.php on line 27

Yes, I am running Release Candidate 5. Anything else I need to list?

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Fri Sep 14, 2007 7:14 pm

You need PHP5. See the first page for a few solutions.
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

Kojote1980
Registered User
Posts: 13
Joined: Tue Sep 04, 2007 2:39 am

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Kojote1980 » Fri Sep 21, 2007 12:19 am

hmm a good week without news on this project... status on dev4? ;)

User avatar
Dabroz
Registered User
Posts: 56
Joined: Sat Dec 20, 2003 3:18 pm
Location: Poland
Contact:

Re: [BETA] phPKG - auto-installer, repositories, packages

Post by Dabroz » Fri Sep 21, 2007 8:55 am

Well, there is little interest about this project, so I probably should not rush with it. However, I'm still adding new features to it.

Actually I've made a gallery with screenshots from all versions where you can see progress. ;)
http://www.phpbb2.pl - the first and the biggest Polish phpBB site.
My tools and MODs: phPKG (dev3) • User Useragent Stats
If you appreciate my work, you can donate me with PayPal.

Locked

Return to “[3.0.x] MODs in Development”