summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-12 00:21:17 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-12 00:21:17 +0000
commit061e88eb855d2241cde697bcd9e5af55a242e8ca (patch)
treee4123f8c4395eef438ed43df814720a578f93396 /print
parentdf5a8303dae37eb2059058de44e9bd9a7e6b2802 (diff)
downloadpkgsrc-061e88eb855d2241cde697bcd9e5af55a242e8ca.tar.gz
DESTDIR support
Diffstat (limited to 'print')
-rw-r--r--print/LPRng-core/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/print/LPRng-core/Makefile b/print/LPRng-core/Makefile
index 057cce34ae0..71053c98e3a 100644
--- a/print/LPRng-core/Makefile
+++ b/print/LPRng-core/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2009/07/06 16:08:30 joerg Exp $
+# $NetBSD: Makefile,v 1.35 2010/02/12 00:21:17 joerg Exp $
DISTNAME= LPRng-3.8.28
PKGNAME= LPRng-core-3.8.28
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.lprng.com/
COMMENT= Enhanced Printer Spooler
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_JOBS_SAFE= no
CONFLICTS+= cups-[0-9]*
@@ -49,6 +51,12 @@ CONF_FILES+= ${EXAMPLESDIR}/lpd.conf ${PKG_SYSCONFDIR}/lpd/lpd.conf
CONF_FILES+= ${EXAMPLESDIR}/lpd.perms ${PKG_SYSCONFDIR}/lpd/lpd.perms
CONF_FILES+= ${EXAMPLESDIR}/printcap ${PKG_SYSCONFDIR}/printcap
+SPECIAL_PERMS+= bin/lpq ${SETUID_ROOT_PERMS} \
+ bin/lpr ${SETUID_ROOT_PERMS} \
+ bin/lprm ${SETUID_ROOT_PERMS} \
+ bin/lpstat ${SETUID_ROOT_PERMS} \
+ sbin/lpc ${SETUID_ROOT_PERMS} \
+
pre-patch:
${MV} ${WRKSRC:Q}/man/lpd.conf.n ${WRKSRC:Q}/man/lpd.conf.n.in
@@ -65,10 +73,12 @@ pre-install:
${SED} -e s,@PREFIX@,${PREFIX:Q},g \
${FILESDIR:Q}/LPRng.sh > ${WRKDIR:Q}/LPRng.sh
+INSTALLATION_DIRS+= ${EXAMPLESDIR}
+INSTALL_MAKE_FLAGS+= SUID_ROOT_PERMS=555
+
post-install:
- ${INSTALL_DATA_DIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/lpd.conf ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/lpd.perms ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/printcap ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lpd.conf ${DESTDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lpd.perms ${DESTDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/printcap ${DESTDIR}${EXAMPLESDIR}
.include "../../mk/bsd.pkg.mk"