Testing new packages?
-
I created a few packages, but I don't know where to place them. What's puzzling me is that I have lots of XML files in $DOCROOT/config and $DOCROOT/config/packages. Those are package files, and are mostly the same, except for a few of them. The problem is: they're nothing like the packages we see at http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/packages/ . For example, take a look at nmap.xml. It starts with <package>in the cvs /tools dir, but it starts with <packagegui>in $DOCROOT/config. One specifies the FreeBSD package as a "dependence", whereas the other doesn't.</packagegui></package>
The packages you are seeing that start with <package>are from the (old) reorganization branch that was created to test some early 1.1 code. Only packages that follow the <packagegui>format are compatible with the current installer.
Also, regarding the xml=<mypackage>.xml trick, it didn't work out. I checked pkg_mgr.php and pkg_mgr_install.php, and none of them parse $_GET['xml'], apparently.</mypackage>
Correct - only packages defined by the repository can be installed at the moment.
You may want to wait to begin development until some releases are built with the new package code from HEAD, which should make many of the headaches you're currently running into disappear.</packagegui></package>
-
For the archives:
-
Download http://www.pfsense.com/xmlrpc.tgz … Extract to root of your webserver. Or to pfSense's root.
-
Modify /etc/inc/globals.inc and change:
"xmlrpcbaseurl" => "www.pfsense.com",
"xmlrpcpath" => "/pfSense/xmlrpc.php",Then have a look at the master package manifest located at: http://pfsense.com/cgi-bin/cvsweb.cgi/tools/pkg_config.xml
Then have a look at the packages themselves:
http://pfsense.com/cgi-bin/cvsweb.cgi/tools/packages/
Finally add your package info to pkg_config.xml on the webserver and then populate the packages folder. pfSense.com example is here: http://www.pfsense.com/packages/
CoreGUI information is located at: (Note, we are switching over to CoreGUI2, we recommend you learn this)
http://wiki.pfsense.com/wikka.php?wakka=CoreGUI2
http://wiki.pfsense.com/wikka.php?wakka=CoreGUIGood luck!!
-
-
How i make this:
Modify only
"xmlrpcbaseurl" => "10.0.0.1", // "www.pfsense.com", // 10.0.0.1 - ip my pfsenseextract 'xmlrpc.tgz' to '/usr/local/www' =>> '/usr/local/www/pfSense'
Put 'pkg_config.xml' to '/usr/local/www/packages'
Put you files to '/usr/local/www/packages/config'- need use external FTP server, because on www server .inc files downloaded wrong
NOTE:
!!! for http access to you files - create and put to '/usr/local/www/packages' and '/usr/local/www/packages/config' index.php files with catalog list !!! -
I just red everithing 3 times and not really sure if i really know what to do >:(
Why wouldnt you do the IDE for packages? Also how about ability to read packaes from manual inputed servers as core GUI (no editing) -
I just red everithing 3 times and not really sure if i really know what to do >:(
Why wouldnt you do the IDE for packages? Also how about ability to read packaes from manual inputed servers as core GUI (no editing)Huh?
-
what?
-
??? <- thats the equivalent for Huh.
Try using complete english sentences! For example I don't understand whether you are requesting an IDE plugin for developing pfSense packages…
Cheers
Daniel S. Haischt -
i know what huh means…
as to IDE, i just would apreciate if you have some more tools for easier package development... because I alredy have the tested script that i manually added to Advanced Config page, but now I need to put togather a package and i need to learn all your structure and related stuff which i dont really can use anywhere else... so you could of build the tool that would automaticaly generate the package ... -
So how would such a tool look like? Are you thinking about an Eclipse plugin for example?
Regards
Daniel S. Haischt -
well Eclipse is more like a compiler, you dont really need tthat advanced one, waht I woud want to see is something like gui where you can add files and directories of your app (like my has 3 files and 1 dir with a 1 file in it) and then add other text config and ability automatically either to submit to common test server or submit for appruval to add to main server. THen if you running Dev version you can view pakages on the common test server
-
From Wikipedia:
Eclipse (software), a Java integrated development environment (IDE) and platform for rich client applications originally created by IBM
From where did you get the information, that Eclipse is a compiler - Eclipse ships with a custom compiler or you are able to use Java, C/C++ or whatever compiler types from other vendors like Sun.
At the moment I don't know a pfSense developer that may be interested in developing a GUI based application for pfSense package developement.
Regards
Daniel S. Haischt -
From Wikipedia:
Eclipse (software), a Java integrated development environment (IDE) and platform for rich client applications originally created by IBM
From where did you get the information, that Eclipse is a compiler - Eclipse ships with a custom compiler or you are able to use Java, C/C++ or whatever compiler types from other vendors like Sun.
At the moment I don't know a pfSense developer that may be interested in developing a GUI based application for pfSense package developement.
Regards
Daniel S. HaischtNah, I see no need for one. The only thing that we really need to do is document the process a bit better.
-
well maybe better docs could help but so far i put aside developing of a pacage and will just do a custom image for myself :-P
-
well maybe better docs could help but so far i put aside developing of a pacage and will just do a custom image for myself :-P
After all the help that folks have given so far for this? Seems a bit unfair, no?
-
well what can i do?
I just cant get it how to buid the package…. -
minor corrections:
-
Wikipedia is wrong about IBM - Eclipse was developed by OTI Labs, Zürich which is a subsidiary of IBM
-
I didn't want to give the impression that a pfSense GUI for package developement would be necessary
:P
Regards
Daniel S. Haischt -
-
well what can i do?
I just cant get it how to buid the package….Have you looked at the other packages in the system? It's pretty straight forward.
-
yes that what i was doin all day toda…
i got killed when i places xmlrpc on my host, i dono it it had to have only one file but it keeps giving me string error in line 1005 or something like that
-
i got killed when i places xmlrpc on my host, i dono it it had to have only one file but it keeps giving me string error in line 1005 or something like that
I really love such issue reports. I bet the PHP parser didn't give you the error error in line 1005 or something like that. Parsers and compilers are very specific about errors, so would you mind to provide the complete error if you are interested in getting any help?
Cheers
Daniel S. Haischt -
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205
Warning: Unexpected character in input: ' in /home/vipelite/public_html/pubnet/pfSense/xmlrpc.php on line 4205