pkgsrc/devel/p4d/Makefile
jlam d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00

35 lines
763 B
Makefile

# $NetBSD: Makefile,v 1.4 2003/01/28 22:03:15 jlam Exp $
#
DISTNAME= p4d
HOMEPAGE= http://www.perforce.com/perforce/products/p4d.html
COMMENT= Perforce SCM server
P4BINONLY= # defined
.include "../../devel/p4/Makefile.common"
USE_PKGINSTALL= yes
FILES_SUBST+= P4USER=${P4USER:Q}
FILES_SUBST+= P4ROOT=${P4ROOT:Q}
FILES_SUBST+= P4PORT=${P4PORT:Q}
FILES_SUBST+= P4LOG=${P4LOG:Q}
FILES_SUBST+= P4JOURNAL=${P4JOURNAL:Q}
PKG_GROUPS?= ${P4GROUP}
PKG_USERS?= ${P4USER}:${P4GROUP}::Perforce\\ Server:${P4ROOT}
OWN_DIRS_PERMS= ${P4ROOT} ${P4USER} ${P4GROUP} 750
RCD_SCRIPTS= p4d
.include "../../mk/bsd.prefs.mk"
P4LOG?= log
P4JOURNAL?= journal
do-install:
${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${PREFIX}/sbin
.include "../../mk/bsd.pkg.mk"