From owner-freebsd-stable@FreeBSD.ORG Fri Dec 6 03:35:03 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0EA2BE0; Fri, 6 Dec 2013 03:35:03 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C8CA3159A; Fri, 6 Dec 2013 03:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=votJNMtpdEumKek8W1G4p3RrUhO517pxBlG9l9zpQJw=; b=vEgHhRYVQp0+Qqs2LPptQe2N4xFJQp6jH8GngQvr2JBcl6DLRnLcjBgosbSlftny7w0hOoB/Un3HDsFPfHv70uHpplEHKFd+gkTyY8jb2Z57ijL6hcn1FoDFQWCdiX7b+lki3jtPqE3eJ/kbT+WOSMRsviYcoD49EWS2FNZ7Ei0=; Received: from [39.214.37.170] (port=62524 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1VomBv-002Ydd-Js; Thu, 05 Dec 2013 20:35:00 -0700 Date: Fri, 6 Dec 2013 11:34:52 +0800 From: Erich Dollansky To: "A.J. 'Fonz' van Werven" Subject: Re: [games/ofortune] CFT and pending issues Message-ID: <20131206113452.4ee1ab71@X220.ovitrap.com> In-Reply-To: <20131205215437.GA32134@spectrum.skysmurf.nl> References: <20131205215437.GA32134@spectrum.skysmurf.nl> Organization: ALO Green Technologies X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erich@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-stable@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2013 03:35:04 -0000 Hi, On Thu, 5 Dec 2013 22:54:37 +0100 "A.J. 'Fonz' van Werven" wrote: > A short recap for those of you who are subscribed to freebsd-ports@ > but not freebsd-stable@: when I opened my inbox this morning I found > a typical WTF thread: the (hardly) "offensive" fortune cookies have > been kicked out of 10-BETA4. Since I (and many others) find this Just > Plain Stupid (tm) I created a port to bring some sanity back into > fortune(6). > > Anyone running FreeBSD 10-BETA4 feel free to test the port and > comment on it before I file the PR asking for it to be committed. I just tried. The port does not have any problems for me but fortune seems to ignore FORTUNE_PATH. > > A shar "patch" can be found here: > http://www.skysmurf.nl/comp/FreeBSD/files/ofortune.shar > > Or alternatively, a tarball can be found in the same place: > http://www.skysmurf.nl/comp/FreeBSD/files/ofortune.tar.gz I used this one. > > To extract the shar file: > # cd /usr/ports/games > # sh /path/to/shar-file > > Or alternatively, to extract the tarball: > # cd /usr/ports/games > # tar xzvf /path/to/tarball > > Install via your favourite method, e.g. > > # cd /usr/ports/games/ofortune > # make install I used the make method. > or > # portmaster games/ofortune > > PENDING ISSUES: > > -1- > It's tentatively called ofortune. If you can think of a better name, > then by all means shoot. > As already said, fortune-offensive sounds better. > -2- > The accompanying webpage is crap. This is no priority ;-) > I did not check it. > -3- > I have found the instructions for changing and/or adding to the > fortune files but haven't tested them yet. > One step after another one. > -4- > I wanted to mark the port as IGNORE for versions of FreeBSD prior to > 10-BETA4. But this breaks stuff (see point 6) and I need to know > exactly what the version number (OSVERSION) is for 10-BETA4. > > -5- > Currently the port installs the "offensive" fortunes into > /usr/local/share/ofortune, requiring every user to add that directory > to their FORTUNE_PATH (hence the pkg-message). I tried adding an > OPTION that would install it into the base /usr/share/games/fortune, > but that again breaks stuff, see point 6. > > -6- > It appears that for some reason conditionals don't work in the > Makefile. For your reference, I have added the Makefile below, with > the parts commented out that I think should work but don't. In both > cases I get "Malformed conditional" errors. Any thoughts? I use a very different style in my makefiles and do not see the errors too. Thanks for your work. Erich > > Regards, > > AvW (fonz) > > [begin /usr/ports/games/ofortune/Makefile] > # $FreeBSD$ > > PORTNAME= ofortune > PORTVERSION= 0.99.0 > CATEGORIES= games > MASTER_SITES= http://www.skysmurf.nl/comp/FreeBSD/distfiles/ > > MAINTAINER= freebsd@skysmurf.nl > COMMENT= The offensive fortune cookies that used to be in base. > > ### > # This is supposed to work but doesn't. > ### > #OPTIONS_DEFINE= BASE > #OPTIONS_DEFAULT= > #BASE_DESC= To install into the base system rather > than /usr/local. # > #.include > # > #.if ${PORT_OPTIONS:BASE} > #DATADIR= /usr/share/games/fortune > #.else > PLIST_DIRS= ${DATADIR} > #.endif > > PLIST_FILES= ${DATADIR}/fortunes-o \ > ${DATADIR}/fortunes-o.dat \ > ${DATADIR}/murphy-o \ > ${DATADIR}/murphy-o.dat > > NO_BUILD= yes > NO_INSTALL= yes > > ### > # This is supposed to work but doesn't. > # > # 702106 has been copied from an example, I need the right number for > 10-BETA4. # > #.if ${OSVERSION} < 702106 > #IGNORE= For versions prior to 10-BETA4 this is still > in base. #.endif > ### > > post-install: > ${MKDIR} ${STAGEDIR}${DATADIR} > ${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${DATADIR} > > .include > [end /usr/ports/games/ofortune/Makefile] >