From owner-freebsd-questions@FreeBSD.ORG Fri Jan 18 11:04:08 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C809716A41A for ; Fri, 18 Jan 2008 11:04:08 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0D8E913C4E5 for ; Fri, 18 Jan 2008 11:04:01 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id m0IAxgX4001697; Fri, 18 Jan 2008 11:59:42 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id m0IAxfPj001694; Fri, 18 Jan 2008 11:59:42 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 18 Jan 2008 11:59:41 +0100 (CET) From: Wojciech Puchar To: navneet Upadhyay In-Reply-To: <1563a4fd0801180147y4fb6a83s41142ac9a68c3d28@mail.gmail.com> Message-ID: <20080118115814.W1655@wojtek.tensor.gdynia.pl> References: <1563a4fd0801180147y4fb6a83s41142ac9a68c3d28@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Trying to support my product on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 11:04:08 -0000 > > I am planning to support it on FreeBSD, i have two queries : > > 1. *How to build my code into binaries* on FreeBSD , i have my unix make > files. Just to give an idea i have around 200 cpp files and they complile to > 5 binaries . I am using multithreading(posix on linux) and sockets heavily. > same as in linux. possibly LITTLE code change (use ifdefs) may be needed as some libc things are different. but not much. > instructions to have BSD specific binaries.I have to see what is the > difference between Linux and Free BSD in terms of file management, their > structure, threading model etc. i don't use threads so i won't tell you. rest is the same. open, read, write lseek works the same. mmap is mostly the same. > > > 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a > package to user who can install them binaries using this package by issuing > single command. man pkg_create