Here is an ebuild for netjuke, the PHP based, audio streaming jukebox. The ebuild is for version 1.0b17-php4.1+ (as seen on http://netjuke.sf.net). I wasn't sure if the 'b' stood for beta or not, but gentoo didn't like that too much so I called the ebuild 1.0_beta17 and require php >=4.1.2-r5. The ebuild also has options for apache2, freetds, mysql, odbc, and postgres using IUSE. Please check it out and let me know what you think.
Created attachment 10099 [details] the ebuild Here is the ebuild.
Created attachment 10100 [details] the md5 digest ...and the digest, for good measure.
I made a couple of changes to the ebuild, which (hopefully) improve things a little. The first is the 'RESTRICT=nostrip' line which speeds up the install a bit, since it would hang trying to strip the php files, which we don't really need to do. Secondly I updated the checking for HTTPD_ROOT portion to check for HTTPD_USER and HTTPD_GROUP. Now all web server vars should be dynamically discovered and if no suitable matches are found then a default set will be used. Thirdly I added a notification at the end to tell the user what the web server vars were set to just in case it was set incorrectly. This way they can fix it if they don't like what the install did. Lastly I fixed a couple of quotes I was missing on the 'chown' lines. I will attach the diff since bugzilla doesn't seem to be doing returns correctly for me for whatever reason.
Created attachment 10339 [details] Here is the diff with all the updates.
This is more of a web-apps package than a sound one...
Hi, Sorry for the delay in replying. We've been very busy putting a new framework in place for ebuilds for web-based applications. This has now been committed to Portage ;-) and we need you to update your ebuild before we can accept it. Please emerge net-www/webapp-config (make sure you get version 1.1 or later), and update your ebuild to work with this new tool. You can use 'man 5 webapp.eclass', 'man 5 webapp-config' and 'man 8 webapp-config' to learn more about how your ebuild needs to work. There is also an example ebuild for phpmyadmin installed into /usr/share/doc/webapp-config-1.1/. If you encounter any difficulties with the new framework (and we apologise, but there are sure to be a few at first), please let us know and we'll do our best to help you. Best regards, Stu
Hi there, I finally got off my butt and updated this ebuild for the latest version of netjuke and for the webapp eclass. Though with the new eclass there is a small problem that I ran in to. Netjuke uses a file called inc-prefs.php to store preferences and the file needs to be writable by the web server. The only problem is the file doesn't exist until netjuke is configured through the web browser so the only solution I could come up with was to tell the user they had to create and set the permissions on this file. Perhaps someone can come up with a better solution. Anyway, I will attach the ebuild and the postinstall-en.txt files.
Created attachment 31613 [details] the ebuild
Created attachment 31614 [details] files/postinstall-en.txt file
Why can't ypu just add a touch command in the ebuild to create inc-prefs.php, and then chown/chmod the file so it works off the bat? Brian BTW, is there any reason this isn't in portage yet?
The ebuild looks good. The reason it's not in Portage is that the web-apps herd is understaffed atm. If someone is interested in training up to becoming the maintainer for this (and hopefully other) ebuild(s), please let me know. Otherwise, I'll try to commit it when I have time.
There are several issues with PHP5 and this version of netjuke. Somehow PHP5 is not happy about the "PRIVATE" constant that is being used everywhere (exchanging it to "PRIVATE2" fixes the problem) and the version check in lib/inc-common.php fails on PHP5. Commenting that section out allows to run the application, but there are some more problems with PHP5 on single pages. I did not try to fix those.
What is the status of this ebuild?
This ebuild is working for me. Can I get an amen on that?
1.0-rc2 is the last release from August 19, 2003. Do we really want dead things in portage?
I did a little digging and found out that the Netjuke team merged with the Jinzora team and they are going to merge all of the features into Jinzora (http://www.jinzora.org) so I guess this ebuild can be dropped. Thanks for looking at it though.
Closing