From owner-freebsd-ports Fri Oct 30 11:10:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA13748 for freebsd-ports-outgoing; Fri, 30 Oct 1998 11:10:02 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA13695 for ; Fri, 30 Oct 1998 11:10:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA27866; Fri, 30 Oct 1998 11:10:01 -0800 (PST) Date: Fri, 30 Oct 1998 11:10:01 -0800 (PST) Message-Id: <199810301910.LAA27866@freefall.freebsd.org> To: freebsd-ports@FreeBSD.ORG From: Bill Fumerola Subject: Re: ports/8492: New port: ruboard-1.2 Reply-To: Bill Fumerola Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/8492; it has been noted by GNATS. From: Bill Fumerola To: Andrew Maltsev Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: ports/8492: New port: ruboard-1.2 Date: Fri, 30 Oct 1998 10:12:44 -0500 (EST) On Fri, 30 Oct 1998, Andrew Maltsev wrote: > >Number: 8492 > >Category: ports > >Synopsis: New port: ruboard-1.2 - easily configurable Web board > sed 's/^X//' >ruboard/patches/patch-aa << 'END-of-ruboard/patches/patch-aa' > X*** Config.orig Sat Sep 12 21:44:10 1998 > X--- Config Mon Oct 5 04:30:34 1998 > X*************** > X*** 3,9 **** > X # > X # Where ruboard shold be installed (home dir) > X # > X! HOMEDIR = /usr/local/lib/ruboard > X # > X # Owner of boards. Defaults to your user id. Do not delete `-o' if you > X # will set it. You should set prefix higher, and then reference it in 'homedir' > X--- 3,14 ---- > X # > X # Where ruboard shold be installed (home dir) > X # > X! PREFIX = /usr/local > X! HOMEDIR = $(PREFIX)/etc/ruboard > X! # > X! # Where binaries are instaled > X! # > X! BINDIR = $(PREFIX)/libexec > X # > X # Owner of boards. Defaults to your user id. Do not delete `-o' if you > X # will set it. > END-of-ruboard/patches/patch-aa mv ${WRKSRC}/Config ${WRKSRC}/Config.pre_sed cat Config | \ sed s#/whatever/the/old/prefix/is#${PREFIX}#g >> ${WRKSRC}/Config is much better then hard coding /usr/local (which not everyone uses), also PLEASE use unified output (diff -ruN Config.old Config) for your patches. I could have written the complete sed command for you, but you seem to be using context. ugh. - bill fumerola [root/billf]@chc-chimes.com - computer horizons corp - - ph:(800)252.2421 x128 / bfumerol@computerhorizons.com - BF1560 - "Logic, like whiskey, loses its beneficial effect when taken in too large quantities" -Lord Dunsany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message