From owner-freebsd-ports@FreeBSD.ORG Fri Sep 19 15:06:50 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ED2C16A4B3 for ; Fri, 19 Sep 2003 15:06:50 -0700 (PDT) Received: from web40708.mail.yahoo.com (web40708.mail.yahoo.com [66.218.78.165]) by mx1.FreeBSD.org (Postfix) with SMTP id ACEE943F3F for ; Fri, 19 Sep 2003 15:06:49 -0700 (PDT) (envelope-from cykyc@yahoo.com) Message-ID: <20030919220649.58929.qmail@web40708.mail.yahoo.com> Received: from [209.98.4.50] by web40708.mail.yahoo.com via HTTP; Fri, 19 Sep 2003 15:06:49 PDT Date: Fri, 19 Sep 2003 15:06:49 -0700 (PDT) From: Jon Passki To: ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Creating a local port that uses base system files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cykyc@yahoo.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 22:06:50 -0000 Hello, I'm attempting to create a local port framework for my jails. These ports do not fetch nor compile any files; they just install(1) files from the base system. I wish to use ${PLIST} to list all the necessary files for the jailed program(s). I'm having problems figuring this out with the port framework. I could do the following in the main Makefile: ${INSTALL_PROGRAM} ${BASE_USR_SBIN}/syslogd ${PREFIX}/usr/sbin Which, to me, is ugly. I'd rather have a line entry in ${PLIST} like the following: --)pkg-plist: usr/sbin/syslogd and then have some install target (do-install?) do the dirty work. I didn't find the dirty work hidden in bsd.port.mk, but my port creation skills are about 5 hours old :-) Here's my working Makefile (quite light, I know): --)Makefile: # jailed syslogd makefile PORTNAME= jail-syslogd PORTVERSION= 0.1 PORTREVISION= 0 CATEGORIES= sysutils DISTFILES= PREFIX?= /home/jon/tmp MAINTAINER= jon COMMENT= Jailed syslogd NO_WRKSUBDIR= true # Use for testing when not root - won't do mtree #INSTALL_AS_USER= true NO_BUILD= true NO_PKG_REGISTER= true # Let's not nuke the base files, mmmkay .if !defined(BASEDIR) BROKEN= You must define BASEDIR silly .else # BASEDIR logic .endif .include __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com