pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/slock user-destdir support
details: https://anonhg.NetBSD.org/pkgsrc/rev/6e9737a667df
branches: trunk
changeset: 561051:6e9737a667df
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jul 07 18:14:15 2009 +0000
description:
user-destdir support
diffstat:
x11/slock/Makefile | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r dee05f991b8e -r 6e9737a667df x11/slock/Makefile
--- a/x11/slock/Makefile Tue Jul 07 18:13:42 2009 +0000
+++ b/x11/slock/Makefile Tue Jul 07 18:14:15 2009 +0000
@@ -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 @@
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 @@
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"
Home |
Main Index |
Thread Index |
Old Index