From owner-freebsd-ports@FreeBSD.ORG Thu May 29 07:22:58 2014 Return-Path: Delivered-To: freebsd-ports@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 3A75F5E8 for ; Thu, 29 May 2014 07:22:58 +0000 (UTC) Received: from exprod7og101.obsmtp.com (exprod7og101.obsmtp.com [64.18.2.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6C8F26E8 for ; Thu, 29 May 2014 07:22:57 +0000 (UTC) Received: from mail-oa0-f50.google.com ([209.85.219.50]) (using TLSv1) by exprod7ob101.postini.com ([64.18.6.12]) with SMTP ID DSNKU4bgS7ySm0UC0s9y0lZhX0V03EGCr1qX@postini.com; Thu, 29 May 2014 00:22:57 PDT Received: by mail-oa0-f50.google.com with SMTP id i7so12278240oag.37 for ; Thu, 29 May 2014 00:22:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=umZGsOtAOzoz3JsMM8Nd4QP/xNCjxFJHP2lxH2SYAcI=; b=G6+A/JdUctbhc6iMydnQjKLP06Q4yLE/FmubbxFZZHigRBz8wu/3loSMdPt88GDo49 Z5jsyPUqPHC6Ys+DtsjlcBkCFivMI+bNzyBP3oozPMP7aRq/7q4B7kg0rUiwVTmmAuUP WrgIjHwES2LPCloFQjoMHBeQlSZImJqm4R3ppAnm2wT8pxHGntjfW6g1IeZelcmI+MpI YadDWZyLuyNFd6US5cFenKBG+r2JVmG76H4x00ehPHyuqrIjVXX5X8yUkc191S1Pznbm AB76vioPuPBBUaPA9RTR4lkmM09oTjEMas+R4zZLMi10bffPNMX9rNbD4exx89MZOqQl emew== X-Gm-Message-State: ALoCoQmXjXudD81a8gnObnDD8tUfaKlVlyj/A8Vy4Ztze+DFSYzUwJ/FIXfBw1wEOBSvV60DbIgNossLUEjg/MFaS6HAOGKma1ioTQgOHOQmpEimnGEPgeLfjnz2IuapJJJuyPYV83QyGiRpat/U3T8Nm0uVMix6gA== X-Received: by 10.182.72.227 with SMTP id g3mr5958953obv.28.1401348169241; Thu, 29 May 2014 00:22:49 -0700 (PDT) X-Received: by 10.182.72.227 with SMTP id g3mr5958926obv.28.1401348169059; Thu, 29 May 2014 00:22:49 -0700 (PDT) From: Raghu HB References: <5385AFFA.7050206@sorbs.net> <5385B992.60202@sorbs.net> <5385C38A.1070400@sorbs.net> In-Reply-To: <5385C38A.1070400@sorbs.net> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQEHFrZKH5N2lWAujW66X3MxzX+hKAFvKOugARV3G4gBy+3pyQE0pRKPAja3emucqhCNIA== Date: Thu, 29 May 2014 12:52:48 +0530 Message-ID: Subject: RE: Creating new port To: Michelle Sullivan Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Ports ML X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2014 07:22:58 -0000 Thanks Michelle for your time. Neither your answers nor the link provide the details which I am looking for. Thanks, Raghu -----Original Message----- From: Michelle Sullivan [mailto:michelle@sorbs.net] Sent: Wednesday, May 28, 2014 4:38 PM To: Raghu HB Cc: FreeBSD Ports ML Subject: Re: Creating new port Raghu HB wrote: > Thanks Michelle, > > I copied the files in /usr/ports/sysutils/mrmonitor and ran the below > commands I encountered the same issue. > Ok for starters - you only copy the Makefile that you are making for the port into there. > root@:/usr/ports/sysutils/mrmonitor # make distinfo > make: don't know how to make distinfo. Stop > This should not happen if you have a ports makefile there.. however it is possible you have forgotten something (like making the last line: .include ) > root@:/usr/ports/sysutils/mrmonitor # make makesum ===> Found saved > configuration for mrmonitor-1.1 root@:/usr/ports/sysutils/mrmonitor # > make package ===> Found saved configuration for mrmonitor-1.1 > > I need to understand below things which is not explained in hand book. > > 1. Detailed steps for creating new port > This is what you need: http://www.freebsd.org/doc/en/books/porters-handbook/quick-porting.html#po rting-makefile > 2. Sample example for creating new port which nowhere available in the > web > The link above provides a simple sample. > 3. I have 10 files in a directory, I just need to create a package out > of that and provide the package to customers they can install it. > You can't do that - you need to make the distribution into a tarball that can be downloaded from a 'master site' > 4. I do not have to build anything I just need to create the port for > binaries. > Yes, understood, do you have a makefile that will do this for you across other platforms? > > I have searched enough in the web nowhere I found the answer... > I think providing the files in tar format and script to deploy the > files will be more easier than this complicated port and packages. > Well this is what the makefile will usually do for you... (the Makefile can be considered a script or you can just get it to run your script). Read the porters handbook - it's all there unless you are trying to get it to help you create the installation script that is in the tarball - which is not - it will tell you how to work with FreeBSD once you have a working installation. > Porters Handbook is here: > http://www.freebsd.org/doc/en/books/porters-handbook/ > Regards, Michelle -- Michelle Sullivan http://www.mhix.org/