Creating a local port that uses base system files

Jon Passki cykyc at yahoo.com
Fri Sep 19 15:06:50 PDT 2003


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


More information about the freebsd-ports mailing list