Re: Requesting assistance with packaging a web app: wikindx

2013-03-12 Thread Ankur Sinha
Hi folks,

On Mon, 2013-03-11 at 17:58 -0700, Adam Williamson wrote:
 No-one's answered the simplest part of the question yet :)
 
 You can make httpd 'use the files in /usr/share' simply by including
 a 
 config snippet in /etc/httpd/conf.d/ . As Kevin suggests, Wordpress is
 a 
 decent example, but roundcubemail's happens to be even simpler. Just
 to 
 do the directory thing, all it really needs is something like this:
 
 Alias /roundcubemail /usr/share/roundcubemail
 
 i.e. /roundcubemail under the web server root is 
 /usr/share/roundcubemail on the local file system.
 
 The mediawiki approach isn't really appropriate for a simple webapp.

Thank you for the detailed response Adam. I'm going to start with
roundcubemail and try to package wikindx4 in a similar manner. Maybe
I'll write up a wiki page after words that folks can refer to in the
future.

-- 
Thanks, 
Warm regards,
Ankur: FranciscoD

Please only print if necessary. 

Looking to contribute to Fedora? Look here: 
https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Requesting assistance with packaging a web app: wikindx

2013-03-12 Thread Ankur Sinha
On Tue, 2013-03-12 at 22:21 +1100, Ankur Sinha wrote:
 I'm going to start with
 roundcubemail and try to package wikindx4 in a similar manner

I've looked at a few web apps and made quite a few changes to the spec.
However, there are still a few issues that would require heavy patching.
I've filed an RFE with upstream here[1]. 

I thank everyone for their help getting me stared. If upstream helps
out, it should be fairly simple to proceed from here.

[1] https://sourceforge.net/p/wikindx/v4-feature-requests/42/
-- 
Thanks, 
Warm regards,
Ankur: FranciscoD

Please only print if necessary. 

Looking to contribute to Fedora? Look here: 
https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Requesting assistance with packaging a web app: wikindx

2013-03-11 Thread Kevin Fenzi
On Mon, 11 Mar 2013 16:04:17 +1100
Ankur Sinha sanjay.an...@gmail.com wrote:

 On Sun, 2013-03-10 at 23:22 -0500, Michael Cronenworth wrote:
  You should take a look at mediawiki[1]. It stores its files in 
  /usr/share/mediawiki and provides scripts for creating new wikis.
  The scripts reference a list of wikis in /etc/mediawiki. Instead of
  copies 
  the new wikis are symbolic links so that package updates are
  seamless.
  
  [1] http://pkgs.fedoraproject.org/cgit/mediawiki.git/tree/
 
 Hi Michael,
 
 I'll go through the package. Thank you for the quick reply.

I'm not fully sure I would call mediawiki a good example. ;) 

There's:
http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

and to expand on that, you should have the vast majority of the files
in /usr/share/ and only those files that are config or otherwise change
be in /etc and linked to the share versions. 

Wordpress might be another example. 

kevin


signature.asc
Description: PGP signature
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Requesting assistance with packaging a web app: wikindx

2013-03-11 Thread Nicolas Mailhot

Le Lun 11 mars 2013 18:19, Kevin Fenzi a écrit :
 On Mon, 11 Mar 2013 16:04:17 +1100
 Ankur Sinha sanjay.an...@gmail.com wrote:

 On Sun, 2013-03-10 at 23:22 -0500, Michael Cronenworth wrote:
  You should take a look at mediawiki[1]. It stores its files in
  /usr/share/mediawiki and provides scripts for creating new wikis.
  The scripts reference a list of wikis in /etc/mediawiki. Instead of
  copies
  the new wikis are symbolic links so that package updates are
  seamless.
 
  [1] http://pkgs.fedoraproject.org/cgit/mediawiki.git/tree/

 Hi Michael,

 I'll go through the package. Thank you for the quick reply.

 I'm not fully sure I would call mediawiki a good example. ;)

 There's:
 http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

 and to expand on that, you should have the vast majority of the files
 in /usr/share/ and only those files that are config or otherwise change
 be in /etc and linked to the share versions.

 Wordpress might be another example.

squirrelmail seems clean to me

-- 
Nicolas Mailhot

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Requesting assistance with packaging a web app: wikindx

2013-03-11 Thread Adam Williamson

On 11/03/13 10:19 AM, Kevin Fenzi wrote:

On Mon, 11 Mar 2013 16:04:17 +1100
Ankur Sinha sanjay.an...@gmail.com wrote:


On Sun, 2013-03-10 at 23:22 -0500, Michael Cronenworth wrote:

You should take a look at mediawiki[1]. It stores its files in
/usr/share/mediawiki and provides scripts for creating new wikis.
The scripts reference a list of wikis in /etc/mediawiki. Instead of
copies
the new wikis are symbolic links so that package updates are
seamless.

[1] http://pkgs.fedoraproject.org/cgit/mediawiki.git/tree/


Hi Michael,

I'll go through the package. Thank you for the quick reply.


I'm not fully sure I would call mediawiki a good example. ;)

There's:
http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

and to expand on that, you should have the vast majority of the files
in /usr/share/ and only those files that are config or otherwise change
be in /etc and linked to the share versions.

Wordpress might be another example.


No-one's answered the simplest part of the question yet :)

You can make httpd 'use the files in /usr/share' simply by including a 
config snippet in /etc/httpd/conf.d/ . As Kevin suggests, Wordpress is a 
decent example, but roundcubemail's happens to be even simpler. Just to 
do the directory thing, all it really needs is something like this:


Alias /roundcubemail /usr/share/roundcubemail

i.e. /roundcubemail under the web server root is 
/usr/share/roundcubemail on the local file system.


The mediawiki approach isn't really appropriate for a simple webapp.
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Requesting assistance with packaging a web app: wikindx

2013-03-10 Thread Ankur Sinha
Hi folks,

I've recently packaged and submitted wikindx[1] for review[2]. I have a
few queries with the rpm, since it's a web package and not really up my
alley:

I've placed all the files in %{_datadir} as the guidelines specify[3]
(and forbid the placement of files into /var/www). Now, how is a user
supposed to use the package? Is he supposed to copy these files
into /var/www and set his application up, or is there a way to make
httpd use the files from %{_datadir}? The wikindx application makes use
of the mysql database, and also needs directories where attachments etc.
will be kept when uploaded. How are these to be managed if httpd is to
use files from %{_datadir}? I've just observed that wikindx has a new
version since I packaged it. How does one do updates with web packages?
Do we just place the new files in %{_datadir} and let the admin copy
them over to /var/www and then run the update scripts etc.?

I haven't been able to find any detailed guidelines on the wiki on how
it's supposed to work. I'd be most grateful if someone adept at
packaging web apps would please assist me with these queries and the
package in general.

wikindx is a great tool to organize one's documents and bibliography and
would be a good application to provide to Fedora users who are also
researchers. 

[1] http://wikindx.sourceforge.net/
[2] https://bugzilla.redhat.com/show_bug.cgi?id=882765
[3] http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications
-- 
Many thanks, 
Warm regards,
Ankur: FranciscoD

Please only print if necessary. 

Looking to contribute to Fedora? Look here: 
https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Requesting assistance with packaging a web app: wikindx

2013-03-10 Thread Michael Cronenworth

On 03/10/2013 11:14 PM, Ankur Sinha wrote:

I've placed all the files in %{_datadir} as the guidelines specify[3]
(and forbid the placement of files into /var/www). Now, how is a user
supposed to use the package? Is he supposed to copy these files
into /var/www and set his application up, or is there a way to make
httpd use the files from %{_datadir}? The wikindx application makes use
of the mysql database, and also needs directories where attachments etc.
will be kept when uploaded. How are these to be managed if httpd is to
use files from %{_datadir}? I've just observed that wikindx has a new
version since I packaged it. How does one do updates with web packages?
Do we just place the new files in %{_datadir} and let the admin copy
them over to /var/www and then run the update scripts etc.?

I haven't been able to find any detailed guidelines on the wiki on how
it's supposed to work. I'd be most grateful if someone adept at
packaging web apps would please assist me with these queries and the
package in general.


You should take a look at mediawiki[1]. It stores its files in 
/usr/share/mediawiki and provides scripts for creating new wikis. The 
scripts reference a list of wikis in /etc/mediawiki. Instead of copies 
the new wikis are symbolic links so that package updates are seamless.


[1] http://pkgs.fedoraproject.org/cgit/mediawiki.git/tree/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Requesting assistance with packaging a web app: wikindx

2013-03-10 Thread Ankur Sinha
On Sun, 2013-03-10 at 23:22 -0500, Michael Cronenworth wrote:
 You should take a look at mediawiki[1]. It stores its files in 
 /usr/share/mediawiki and provides scripts for creating new wikis. The 
 scripts reference a list of wikis in /etc/mediawiki. Instead of
 copies 
 the new wikis are symbolic links so that package updates are seamless.
 
 [1] http://pkgs.fedoraproject.org/cgit/mediawiki.git/tree/

Hi Michael,

I'll go through the package. Thank you for the quick reply.
-- 
Thanks, 
Warm regards,
Ankur: FranciscoD

Please only print if necessary. 

Looking to contribute to Fedora? Look here: 
https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel