From owner-freebsd-ports@FreeBSD.ORG Thu May 29 08:00:08 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 56F0ECC for ; Thu, 29 May 2014 08:00:08 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7BAA29F1 for ; Thu, 29 May 2014 08:00:07 +0000 (UTC) Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M09BU-1WZDDG45im-00uKFy; Thu, 29 May 2014 09:59:59 +0200 Message-ID: <5386E901.5090803@gmx.de> Date: Thu, 29 May 2014 10:00:01 +0200 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-ports Subject: Re: Creating new port References: <5385AFFA.7050206@sorbs.net> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:3l+1Om9Ma6RWFCn7DTLzrDTVDq8rfamtTOEryqyu4Oo5adxKcOj f76O9mMAi8Y3BUeSTZQC9or4GUeoLNfouXefGNOAk2aRFt2IOCTOZamEqkutWL2+CtxiDR1 IGKpIyDif086WSbphE11T5v/3R/0h6x1Q5atGh0/v4ZsKfE+b4l+YY3T/tYEuSfYioG2D2/ DvOydFh2t3Taw540qE20Q== Cc: Raghu HB 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 08:00:08 -0000 On 2014-05-28 12:01, Raghu HB wrote: > Thanks Michelle for quick response. > > > First I would like to explain what is the application and how I am trying > to create port. > > We have some command line utilities to run on FreeBSD (Storage controller > software). > The installer should contain few binaries and scripts which will be > deployed on FreeBSD OS. > The binaries are pre-compiled and scripts will be used to > start/stop/restart the services or daemons. > > Created below directory structure "/usr/ports/distfiles/": > > ./mrmonitor-1.1 > ./mrmonitor-1.1/bin > ./mrmonitor-1.1/bin/mrmonitor > ./mrmonitor-1.1/bin/mrmonitor/testmonitor > ./mrmonitor-1.1/Makefile > > I created a tar.gz file which contains the above directory structure with > the name mrmonitor-1.1.tar.gz. > > The Makefile contents: > ---------------------------------------------------------- > # $FreeBSD$ > PORTNAME= mrmonitor > PORTVERSION= 1.1 > CATEGORIES= misc > MASTER_SITES= > > MAINTAINER= Raghu.hb@avagotech.com > COMMENT= MRMonitor > .include > ---------------------------------------------------------- > > > Created a home directory /home/Raghu, Created 3 new files Makefile, > pkg-descr > > The Makefile contents: > ---------------------------------------------------------- > # $FreeBSD$ > PORTNAME= mrmonitor > PORTVERSION= 1.1 > CATEGORIES= misc > MASTER_SITES= > > MAINTAINER= Raghu.hb@avagotech.com > COMMENT= MRMonitor > .include > ---------------------------------------------------------- > > > pkg-descr > > ---------------------------------------------------------- > This is MRMonitor port > ---------------------------------------------------------- > > pkg-plist > ---------------------------------------------------------- > bin/mrmonitor > bin/mrmonitor/testmonitor > @dirrm bin/mrmonitor > ---------------------------------------------------------- > > > > Now I run the command make makesum which is successful, then I ran the > command make package I got the errors (attached the error messages) . > > May be I am doing something wrong in some basic configuration, please > correct me. > > > Thanks, > Raghu > > -----Original Message----- > From: Michelle Sullivan [mailto:michelle@sorbs.net] > Sent: Wednesday, May 28, 2014 3:14 PM > To: Raghu HB > Cc: FreeBSD Ports ML > Subject: Re: Creating new port > > Raghu HB wrote: >> Hello, >> >> >> >> I am new to FreeBSD and I am in a process of creating new port for one >> of the application. >> >> I have gone through the steps in handbook and I tried to create new >> port but I am not successful. >> >> >> >> I would request you to send one sample example to create new port with >> all the steps explained would be a great help. >> >> > > What's the application, can you send me your Makefile so far and what > errors you're getting? > > And I'll try and take a look. > > Michelle > > -- > Michelle Sullivan > http://www.mhix.org/ > Reading the make-error log it looks like `make' is called recursive. In case the the port does not compile anything try to add the keyword NO_BUILD=yes into the port Makefile and use a 'do-install:' target. e.g. COMMENT= ... NO_BUILD= yes do-install: ${INSTALL} ${WRKSRC}/${ARCH}/mrmonitor ${STAGEDIR}${LOCALBASE}/bin ${INSTALL_SCRIPT} ${WRKSRC}/scripts/$scriptXX ${STAGEDIR}${LOCALBASE}/bin ... .include If you could provide your full Makefile and a link to the distfile I'm sure the port can be finished in short time. As a hint look at the simple sysutils/tw_cli port -- Regards, olli