daad0f3d6c
INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
82 lines
2.6 KiB
Makefile
82 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2006/03/14 01:14:32 jlam Exp $
|
|
|
|
DISTNAME= LPRng-3.8.28
|
|
PKGNAME= LPRng-core-3.8.28
|
|
PKGREVISION= 2
|
|
CATEGORIES= print
|
|
MASTER_SITES= ftp://ftp.lprng.com/pub/LPRng/LPRng/ \
|
|
http://www.lprng.com/DISTRIB/LPRng/ \
|
|
http://lprng.sourceforge.net/DISTRIB/LPRng/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= martti@NetBSD.org
|
|
HOMEPAGE= http://www.lprng.com/
|
|
COMMENT= Enhanced Printer Spooler
|
|
|
|
CONFLICTS+= cups-[0-9]*
|
|
|
|
USE_TOOLS+= chgrp chown gmake
|
|
USE_LIBTOOL= yes
|
|
LTCONFIG_OVERRIDE+= ${WRKSRC:Q}/ltconfig
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --with-lpd_perms_path=${LPD_PERMS_PATH:Q}
|
|
CONFIGURE_ARGS+= --with-lpd_printcap_path=${LPD_PRINTCAP_PATH:Q}
|
|
CONFIGURE_ARGS+= --with-printcap_path=${PRINTCAP_PATH:Q}
|
|
CONFIGURE_ARGS+= --with-filterdir=${FILTER_DIR:Q}
|
|
CONFIGURE_ARGS+= --with-filter_path=${FILTER_PATH:Q}
|
|
CONFIGURE_ARGS+= --with-ld_library_path=${FILTER_LD_PATH:Q}
|
|
CONFIGURE_ENV+= CHGRP=${TOOLS_CHGRP:Q}
|
|
CONFIGURE_ENV+= CHOWN=${TOOLS_CHOWN:Q}
|
|
|
|
.include "options.mk"
|
|
|
|
# Look for printer configuration files firstly in /etc, then ${PREFIX}/etc.
|
|
#
|
|
LPD_PERMS_PATH= ${PKG_SYSCONFDIR}/lpd/lpd.perms
|
|
LPD_PRINTCAP_PATH= ${PKG_SYSCONFDIR}/printcap
|
|
PRINTCAP_PATH= ${PKG_SYSCONFDIR}/printcap
|
|
FILTER_DIR= ${PREFIX}/libexec/LPRng
|
|
FILTER_LD_PATH= /usr/lib:${PREFIX}/lib:/usr/local/lib
|
|
FILTER_PATH= ${FILTER_DIR}:/sbin:/usr/sbin:/bin:/usr/bin:${PREFIX}/sbin:${PREFIX}/bin:/usr/local/sbin:/usr/local/bin
|
|
|
|
MAKE_ENV+= POSTINSTALL="NO"
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/LPRng
|
|
RCD_SCRIPTS= LPRng
|
|
|
|
FILES_SUBST+= CAT=${CAT:Q}
|
|
FILES_SUBST+= CHMOD=${CHMOD:Q}
|
|
FILES_SUBST+= CMP=${CMP:Q}
|
|
FILES_SUBST+= CP=${CP:Q}
|
|
FILES_SUBST+= MKDIR=${MKDIR:Q}
|
|
FILES_SUBST+= RM=${RM:Q}
|
|
FILES_SUBST+= TRUE=${TRUE:Q}
|
|
FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
|
FILES_SUBST_SED+= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
|
|
|
|
pre-patch:
|
|
${MV} ${WRKSRC:Q}/man/lpd.conf.n ${WRKSRC:Q}/man/lpd.conf.n.in
|
|
|
|
post-configure:
|
|
${SED} -e s,@FILTER_LD_PATH@,${FILTER_LD_PATH:Q},g \
|
|
-e s,@FILTER_PATH@,${FILTER_PATH:Q},g \
|
|
-e s,@LPD_PRINTCAP_PATH@,${LPD_PRINTCAP_PATH:Q},g \
|
|
-e s,@LPD_PERMS_PATH@,${LPD_PERMS_PATH:Q},g \
|
|
-e s,@PRINTCAP_PATH@,${PRINTCAP_PATH:Q},g \
|
|
-e s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:Q},g \
|
|
< ${WRKSRC:Q}/man/lpd.conf.n.in > ${WRKSRC:Q}/man/lpd.conf.n
|
|
|
|
pre-install:
|
|
${SED} -e s,@PREFIX@,${PREFIX:Q},g \
|
|
< ${FILESDIR:Q}/LPRng.sh > ${WRKDIR:Q}/LPRng.sh
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
set -e; \
|
|
for file in lpd.conf lpd.perms printcap; do \
|
|
${INSTALL_DATA} ${WRKSRC:Q}/"$${file}" \
|
|
${EXAMPLESDIR:Q}/"$${file}".example; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|