On Sun, Sep 18, 2005 at 09:14:54AM +0100, Alex Smith <[EMAIL PROTECTED]> wrote:
> I'm new to Frugalware, but I would like to contribute so...
>
> As I mentioned yesterday on IRC, I am working on Frugalware packages for
> web-based applications, like Mambo, phpBB, etc.
>
> What I have done to ease configuration of these things is write a
> framework called webappconfig. This is a shell script containing
> functions to perform tasks like creating databases, removing them,
> inserting data, and performing sanity checks (looking for required
> apps). So far, I have written the base webappconfig script, and I have
> made a frugalware package for phpBB which uses the system. I have
> uploaded them to my site, and you can find the things here:
>
> http://www.tuxtalk.org/webapps/webappconfig/FrugalBuild
> http://www.tuxtalk.org/webapps/phpbb/FrugalBuild
> http://www.tuxtalk.org/webapps/phpbb/phpbbsetup <- This is a setup
> script which uses webappconfig
> http://www.tuxtalk.org/webapps/phpbb/phpbb.install <- This install
> script tells the user to run 'phpbbsetup'.
>
> Please give your comments on this system.
looks great, but we can improve it :)
1) a possible typo
[EMAIL PROTECTED]:~$ .
~/programs/frugalware/frugalware-current/webappconfig
[EMAIL PROTECTED]:~$ mysql_root_pass
* I need to know if you have set a MySQL root password
* Please answer with 'y' or 'n': y
bash: [: !==: binary operator expected
probably this is just a typo
2) message syntax
how about using the same format that we use in makepkg?
3) a simple makefile
the standard at most apps is to use ./configure (if there is any) &&
make && make install
INSTALL = /usr/bin/install -c
DESTDIR =
libdir = /usr/lib/webappconfig
compile:
install:
$(INSTALL) -d $(DESTDIR)$(libdir)
$(INSTALL) webappconfig $(DESTDIR)$(libdir)
udv / greetings,
VMiklos
--
Developer of Frugalware Linux, to make things frugal - http://frugalware.org
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel