summaryrefslogtreecommitdiff
path: root/x11/slock
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-07-07 18:14:15 +0000
committerjoerg <joerg@pkgsrc.org>2009-07-07 18:14:15 +0000
commitf789da3b2315fd04672ebd6acd783feda6a2e2b8 (patch)
tree9d34fa4795fea077e67cb9d27f6c0a010a8e52a3 /x11/slock
parent8ed877bbdda15d254c0c9de744711177551953ce (diff)
downloadpkgsrc-f789da3b2315fd04672ebd6acd783feda6a2e2b8.tar.gz
user-destdir support
Diffstat (limited to 'x11/slock')
-rw-r--r--x11/slock/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/x11/slock/Makefile b/x11/slock/Makefile
index 55a2561def0..0a2994f95d1 100644
--- a/x11/slock/Makefile
+++ b/x11/slock/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/02/11 22:48:17 reed Exp $
+# $NetBSD: Makefile,v 1.2 2009/07/07 18:14:15 joerg Exp $
DISTNAME= slock-0.7
CATEGORIES= x11
@@ -8,6 +8,8 @@ MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://www.suckless.org/wiki/tools/xlib
COMMENT= Simple X11 screen locker
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_CONFIGURE= yes
INSTALLATION_DIRS= bin share/doc/slock
@@ -24,11 +26,11 @@ do-build:
cd ${WRKSRC} && ${CC} -c -DVERSION=\"0.7\" ${CFLAGS} slock.c && \
${CC} -o slock slock.o -lc ${LIBS} ${X11_LDFLAGS} -lX11
+SPECIAL_PERMS+= bin/slock ${SETUID_ROOT_PERMS}
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/slock ${PREFIX}/bin/
- ${CHMOD} 555 ${PREFIX}/bin/slock
- ${CHMOD} u+s ${PREFIX}/bin/slock
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/slock/
+ ${INSTALL_PROGRAM} ${WRKSRC}/slock ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/slock/
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"