You are not logged in.

#1 2005-03-27 23:16:05

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

PHPSysInfo 2.3

Anybody have a PKGBUILD for phpsysinfo. php4 or php5 supported

Offline

#2 2005-03-28 05:08:17

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: PHPSysInfo 2.3

PKBUILD is fairly compiler-oriented (./config, make, make install).  Seems more trouble than it's worth.

To easily get phpsysinfo to work in Arch, follow these instructions:
* Download the pachage from Sourceforge http://prdownloads.sourceforge.net/phps … z?download
* Unpack it - 'tar -xzf phpsysinfo-2.3.tar.gz'
* Move the root directory to your web site directory 'mv phpsysinfo-dev /home/httpd/html/phpsysinfo'
* Copy the config file 'cd /home/htpd/html/phpsysinfo; cp config.php.new config.php'

That's it!  In your browser, enter http://localhost/phpsysinfo/

You'll see that Arch is already supported:
phpsysinfo/images/Arch.gif

Offline

#3 2005-03-28 06:01:55

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: PHPSysInfo 2.3

Not to put down your post but, I don't think it is not worth the time. To be able to upgrage it with pacman by simply modifiing a few variables in the PKGBUILD is a huge advantage to having a package of it over doing it by hand. It would think it would be possible. Instead of having ./configure make make install it would be tar -xvzf blah.tgz or whatever.

I will try to see what I can do, but I am still having trouble with sf.net downloads with pkgbuilds. Also, using variables in my URL doesn't work for me. I have to put the actuall info in the source array, but that is a topic for a separate thread.

Offline

#4 2005-03-28 06:21:53

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PHPSysInfo 2.3

A PKGBUILD is possible:
For the source use:
http://dl.sourceforge.net/phpsysinfo/ph … 2.3.tar.gz
In the build function, you just use cp or install commands to copy the files from $startdir/src/ to $startdir/pkg
Check the pysol-cardsets PKGBUILD in my repo for an example.

Offline

#5 2005-03-28 07:12:33

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: PHPSysInfo 2.3

So where would the package be placed?  Which virtual host?  (/home/httpd/html/ was just an example)  And in what way would the config.php file be modified?  These are decisions that have to be made "by hand".  Each web host is different;  System hardware is different, as well.

Build a PKBUILD file (as I did) and see for yourselves.  Except for unpacking, PKBUILD won't have much to do.  (At least read the docs for this package.)

Am tired.  It's late.  I prolly sound cranky.  Sorry.

Offline

#6 2005-03-28 08:15:45

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PHPSysInfo 2.3

I haven't read any doc about this apps and am not familiar with web servers but here's some comments.  I guess that the PKGBUILD should copy the config files as is and let the user modify them to fit his system (as most packages do).  I agree that the PKGBUILD only unpacks and copy the files in the right location. But it could still be useful especially for upgrading and removing the packages because it keeps track of the files on the system.  It's a question of personal preference.

Offline

#7 2005-03-28 08:39:29

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: PHPSysInfo 2.3

if you want to build a pkgbuild for it, then look at the squirrelmail pkgbuild.
/var/abs/extra/network/squirrelmail

It would be fairly similar..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2005-03-28 13:39:11

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: PHPSysInfo 2.3

Snowman wrote:

But it could still be useful especially for upgrading and removing the packages because it keeps track of the files on the system.

Ok, that's pretty useful.  I had actually built a PKBUILD file, to respond to the original post.  Then I stepped back and thought, this is really doing nothing more than 'mv phpsysinfo-dev /home/httpd/html/phpsysinfo' -- and what if the user really want's it in some other sub-folder?.

YMMV

Offline

#9 2005-03-28 21:11:30

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: PHPSysInfo 2.3

Snowman wrote:

A PKGBUILD is possible:
For the source use:
http://dl.sourceforge.net/phpsysinfo/ph … 2.3.tar.gz

I see now. What was confusing me was that when I click the link in my browser, it still asks to select a mirror. I thought that would cause problems and a simple wget wouldn't work. It turns out though that it does.

Does sourceforge know when a request is made by wget or similar tool? Does it use a defualt mirror?

Offline

#10 2005-03-28 21:14:46

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: PHPSysInfo 2.3

Snowman wrote:

I haven't read any doc about this apps and am not familiar with web servers but here's some comments.  I guess that the PKGBUILD should copy the config files as is and let the user modify them to fit his system (as most packages do).  I agree that the PKGBUILD only unpacks and copy the files in the right location. But it could still be useful especially for upgrading and removing the packages because it keeps track of the files on the system.  It's a question of personal preference.

That is exactly what I was thinking. Now that I know how to use sourceforge in the source array I will go ahead and make a pkgbuild on my own. We shall see how it goes. I have made about 10 so far, but never one so, for lack of a better word, unorthodox.

Offline

#11 2005-03-29 20:40:41

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: PHPSysInfo 2.3

http://www.securityfocus.com/bid/12887

Notice: phpsysinfo vuln notification from Security Focus.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB