From owner-freebsd-ports@FreeBSD.ORG Sat Oct 4 15:01:59 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D86D51065698 for ; Sat, 4 Oct 2008 15:01:59 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id 650938FC08 for ; Sat, 4 Oct 2008 15:01:58 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so1470479fkk.11 for ; Sat, 04 Oct 2008 08:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=u3oj+hJzhYuqcW30Fsp/yFTYczvwHUAgDnmT0ZClaDk=; b=CMlg3NLZ/dJ0Yiq0iHPkbfBrDLANP2FJl8jp+YatuzwDWxsNy6OkWKA2aWBhQYJfOt 6BydgA3DO5+gtOzYoSHk03jWg9ZdMujorjDNK+6MB2KDxGESA/0/C2sLMcz0EqVoCii8 nqL0WDvuGvmFT93WoTXb7rYWfoBSbMQgP/wzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=UVjTsNbnxRsopuSsFtVLBL2qHNhbGx0Ag9rjjLVOMxza/KJg1/0S7DXeqAo71GCZEC eOvFd6lXkTslwvnjYNG7bsjzWeKL8DvuCQkVo516RnESo6KAJks3XQb/T6fcm7IdQTfo XDcKVvwwCoCKG2a/QFHKCtlzZG+2dxjsuAp4k= Received: by 10.181.33.8 with SMTP id l8mr1842742bkj.28.1223132517750; Sat, 04 Oct 2008 08:01:57 -0700 (PDT) Received: from tsunami.bsdworld ([78.90.73.88]) by mx.google.com with ESMTPS id 12sm7045156fks.9.2008.10.04.08.01.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 04 Oct 2008 08:01:57 -0700 (PDT) Message-ID: <48E785AA.6060300@gmail.com> Date: Sat, 04 Oct 2008 18:03:06 +0300 From: Marin Atanasov User-Agent: Thunderbird 2.0.0.17 (X11/20080927) MIME-Version: 1.0 To: Michel Talon References: <20081004134859.GA29970@lpthe.jussieu.fr> In-Reply-To: <20081004134859.GA29970@lpthe.jussieu.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: My interactive version of pkg_add - finished! X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2008 15:01:59 -0000 Michel Talon wrote: > Marin Atanasov wrote: > > >> Should I add something else to it or modify something? >> > > You should remove a lot, because many implicit rules are already defined > in /usr/share/mk/sys.mk which is sourced by make automatically. See for > example > /usr/src/usr.sbin/pkg_install/add/Makefile > to discover how little is needed. > > Thanks, I've read it and now my Makefile is as follows: PROG= pkg_add_it SRCS= fnode.c explode.c scan_directory.c scan_index_file.c pkg_add_it.c .include .include It builds, installs, cleans, etc.. but when I `make install' it finishes successfully, but does not actually install the files - `pkg_add_it' and `pkg_add_it.1' Perhaps I'm missing something here.. but what? Thanks, again! -- Marin Atanasov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org