From owner-freebsd-ports@FreeBSD.ORG Wed Jul 21 08:39:45 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA0E31065670 for ; Wed, 21 Jul 2010 08:39:43 +0000 (UTC) (envelope-from khsing.cn@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9CA228FC1C for ; Wed, 21 Jul 2010 08:39:43 +0000 (UTC) Received: by qwg5 with SMTP id 5so325626qwg.13 for ; Wed, 21 Jul 2010 01:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=46bRilKMtW8rCsy4w34UD/U9aI1SMeIFCS8EzGMjIwU=; b=oWHwunIIJHyU2nTBEuJ8e9vdgh15ZZpqO0J4mFdSsdfsD97v70XyQoGMX1prtzueS6 2q+WIjK09A8F/Diof4lxqqdnv5FmKuDXCFCYvpEv4JjmSAX24uVNzlukHI5plm+h0U8D G2adm1/SndYVL3uGLlLOt0EViSW0iNnmQYB3g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=pZydaqZg8jaIUrxSTmkgNfwl8ONroN/IwtvOhqP6Vu6Kp9Ig1i1n4NcL2y5wtkum0U 5FPW/sN82soh7y/HMvRpC+ej2naDuIKokKrFr8ps+LGRwW+68XtYUNTSWq+tI+BDP2Di BJyl0x8+5pPMgftyxUDn0zW3+FmIavOJYHAJg= Received: by 10.224.73.102 with SMTP id p38mr7282753qaj.270.1279699980157; Wed, 21 Jul 2010 01:13:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.52.70 with HTTP; Wed, 21 Jul 2010 01:12:40 -0700 (PDT) In-Reply-To: References: From: khsing Date: Wed, 21 Jul 2010 16:12:40 +0800 Message-ID: To: Stephen Morton Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org Subject: Re: FreeBSD Port: moinmoin-1.9.2_3 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: Wed, 21 Jul 2010 08:39:46 -0000 Hi, this is a problem. a standalone server should start with $MOINDEST/server/moin server standalone I will modify Makefile to fit this changes. Thanks On Wed, Jun 30, 2010 at 4:40 PM, Stephen Morton wr= ote: > The current version of the moinmoin port seems to be pretty broken when i= t comes to running it as a standalone thing. 'make instance' tries to copy = a file that doesn't exist: > > sudo make MOINTYPE=3DSTANDALONE MOINDEST=3D/usr/local/www/wiki instance > > Set MOINTYPE=3D(CGI|FCGI|WSGI|STANDALONE) to define > type of installation. Default is CGI. > Use MOINDEST=3D/path to modify installation destination. > Default value for MOINDEST is /usr/local/www/wiki. > > To get correct permissions, please set CGIUSER, CGIGROUP > per default it is set to www:www. > > Creating a new wiki instance in /usr/local/www/wiki. > install: /usr/local/share/moin/server/wikiserver.py: No such file or dire= ctory > *** Error code 71 > > and the instructions for package install specify a different file that do= esn't exist: ${MOINDIR}/server/moin.py > > I suspected that wikiserver.py is the proper file, and I copied it over f= rom the initial tarball and got everything to run, but then I run into the = problem of config. The file server/wikiserverconfig.py should get copied ov= er as well, although I can't seem to make the server respect all the option= s I set. In particular, I could get it to change port and to drop root priv= ileges, but it wouldn't bind to something besides localhost. I don't know w= hat =C2=A0was going on there. > > Additionally, dropping root privileges seemed to happen at the wrong time= , because if I told it to run on port 80 and drop off of root, it seems to = drop root before it binds to the port, and so fails to do so. I'm getting t= he same behavior out of running straight from the tarball though, so that's= probably something I'm doing wrong. > > Anyway, thought I'd let you know. I'm running python from the python meta= port, uname -a > FreeBSD [hostname removed] 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21= 15:02:08 UTC 2009 =C2=A0 =C2=A0 root@mason.cse.buffalo.edu:/usr/obj/usr/sr= c/sys/GENERIC =C2=A0amd64 > > Any other information you'd like, just ask. --=20 A man live in jail and want to break. http://blog.khsing.net