From owner-freebsd-ports@FreeBSD.ORG Thu Jan 14 23:04:04 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1BCA1065672 for ; Thu, 14 Jan 2010 23:04:04 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.221.174]) by mx1.freebsd.org (Postfix) with ESMTP id 53CE38FC17 for ; Thu, 14 Jan 2010 23:04:04 +0000 (UTC) Received: by qyk4 with SMTP id 4so81250qyk.7 for ; Thu, 14 Jan 2010 15:04:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=MIuwkJAeDhCKLQy52J4140XpBlboCJJulV2A8uyf22g=; b=AkDtfaLUrLFjhLtS93fwNL5HB9hbgLIoz9LMqWXd11c0IC/weczqMQ2vhk0IbvQDF3 YsgIlftiY6Qzd0MoXcg8IAOrdK7nl6t9o6E2k2jU5jMO3C2ifdmkG5jnZGu3F1UkIx4Q Owbi9ILC2sPjL/gbc1Rl80MoWHHdblp/5+KuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=jc7RgkHmQ/cu+9bPBMpK5t3JESJqGuC2zxbL5iHbmYwa03CE0Es6HDok2/qVyO9v7j he4xKT6h+3TcLn99ajtwK+zEx1XuNc+Vpu+g2IBuM/xQehizg9YTkgJeVGZtXmh484Xv xLcV6u+SD8QoxFTq57rYaSD31+6rebZqTpZCY= Received: by 10.224.43.160 with SMTP id w32mr1614560qae.277.1263508870659; Thu, 14 Jan 2010 14:41:10 -0800 (PST) Received: from sigma.iib.unsam.edu.ar (mx.unsam.edu.ar [200.45.170.30]) by mx.google.com with ESMTPS id 23sm1011366qyk.7.2010.01.14.14.41.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Jan 2010 14:41:09 -0800 (PST) Sender: Fernan Aguero Received: by sigma.iib.unsam.edu.ar (Postfix, from userid 1001) id B7CBF200021; Thu, 14 Jan 2010 19:41:05 -0300 (ART) Date: Thu, 14 Jan 2010 19:41:05 -0300 From: Fernan Aguero To: FW Message-ID: <20100114224105.GA2723@iib.unsam.edu.ar> Mail-Followup-To: FW , freebsd-ports@freebsd.org References: <8029763b1001141252l7b6f0608r455788a3c0e487a6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8029763b1001141252l7b6f0608r455788a3c0e487a6@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-ports@freebsd.org Subject: Re: Distributing web-app via ports? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 23:04:04 -0000 +----[ FW (14.Jan.2010 18:26): | | Hi all, | | (Sorry if this is a stupid question -- I did try to google it but to | no avail...) Hi forkandwait, | I am writing a web app in python that depend on postgresql and | cherrypy and a bunch of scientific libraries, and would like to find | an easy way to distribute it. Part of what would need to get set up | automatically during the make phase is a database along with some | initial table data; this could be interactive as appropriate. take a look at the ports-mgmt/tinderbox, it might help you see how others do it. The port installs the software and then prints a set of instructions (see the pkg-message file) that guide you in setting up the apache web server, configuring the app, and then running a script (provided by the port) that will load the database schema. There are other ports that do similar things. www/trac is one other python web app that comes to mind. | Currently it is running on our servers but there are some people out | there who would like to have it locally. | As a recent BSD convert, I have started to wonder if a ports set up | would be good. It would make it easy if you are on BSD, and give | someone a place to start if they are on something else. (And if we | get a bunch of contracting dollars to set it up for a country I could | include hardware and installation time as part of the fee.) | | It is a niche application (mortality forecasting), so I am not sure if | it would be appropriate for the standard BSD tree, but I would happily | include it. I could also put the ports file (or whatever it is | called) on my website and have folks grab it there. I could use apt or | some such, but I don't like/ develop on Linux anymore, and there might | be some converter thingy. You can certainly distribute your port from your website, but if you want to take full advantage of the ports system you can make your ports 'local' (installed with a 'local-' prefix), and appear in the INDEX, be managed by portupgrade, etc. by following this advice: http://www.mail-archive.com/freebsd-ports@freebsd.org/msg06760.html | The application itself is a form based thing, currently under | mod_python, but it would be great to use the cherrypy http server and | have it listen at an arbitrary port without apache needing to be run. Install an rc script in $PREFIX/etc/rc.d that would start/stop the server? (if the cherrypy server doesn't already come with one such script) | If smart BSD porters could just share their thoughts about this | approach, I would appreciate it. | | TIA | +----] Hope this helps, -- fernan