From d8368bbc25c90072a19b5e48f0fba26251b6877f Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 20 Jun 2008 01:09:05 +0000 Subject: Add DESTDIR support. --- x11/gnome-screensaver/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'x11/gnome-screensaver') diff --git a/x11/gnome-screensaver/Makefile b/x11/gnome-screensaver/Makefile index 5a658c38cab..ef46717ec00 100644 --- a/x11/gnome-screensaver/Makefile +++ b/x11/gnome-screensaver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2008/04/30 13:38:17 jmmv Exp $ +# $NetBSD: Makefile,v 1.30 2008/06/20 01:09:44 joerg Exp $ # DISTNAME= gnome-screensaver-2.22.2 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://live.gnome.org/GnomeScreensaver/ COMMENT= Screen saver and locker for the GNOME desktop +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes USE_DIRS+= xdg-1.3 USE_LIBTOOL= yes @@ -51,14 +53,16 @@ BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.8.0 BUILDLINK_API_DEPENDS.libexif+= libexif>=0.6.12 BUILDLINK_API_DEPENDS.libglade+= libglade>=2.5.0 +INSTALLATION_DIRS= ${EGDIR}/pam.d + post-install: - ${INSTALL_DATA_DIR} ${EGDIR}/pam.d ${INSTALL_DATA} ${FILESDIR}/pam-gnome-screensaver-NetBSD \ - ${EGDIR}/pam.d/gnome-screensaver-NetBSD + ${DESTDIR}${EGDIR}/pam.d/gnome-screensaver-NetBSD ${INSTALL_DATA} ${WRKSRC}/data/gnome-screensaver \ - ${EGDIR}/pam.d/gnome-screensaver-Linux + ${DESTDIR}${EGDIR}/pam.d/gnome-screensaver-Linux + .if empty(PKG_OPTIONS:Mpam) - ${CHMOD} 04555 ${PREFIX}/libexec/gnome-screensaver-dialog +SPECIAL_PERMS+= libexec/gnome-screensaver-dialog ${SETUID_ROOT_PERMS} .endif .include "../../devel/GConf/schemas.mk" -- cgit v1.2.3