Date: Fri, 19 Sep 2003 15:06:49 -0700 (PDT) From: Jon Passki <cykyc@yahoo.com> To: ports@FreeBSD.org Subject: Creating a local port that uses base system files Message-ID: <20030919220649.58929.qmail@web40708.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hello, <please Cc me on correspondences> 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 <bsd.port.mk> __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030919220649.58929.qmail>