pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xtrlock: revised Makefile.
Module Name: pkgsrc-wip
Committed By: Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By: vms
Date: Fri Oct 28 18:22:43 2022 +0200
Changeset: 75d1820ed2ce63102240b8902d67aa64e84a18b8
Modified Files:
xtrlock/Makefile
Log Message:
xtrlock: revised Makefile.
- pass compiler/linker flags to imake
- remove redundant WRKSRC definition
- use SPECIAL_PERMS to handle suid bit
- add missing X library dependencies
- lint package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=75d1820ed2ce63102240b8902d67aa64e84a18b8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
xtrlock/Makefile | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diffs:
diff --git a/xtrlock/Makefile b/xtrlock/Makefile
index 50201daced..0c1164e078 100644
--- a/xtrlock/Makefile
+++ b/xtrlock/Makefile
@@ -13,18 +13,26 @@ LICENSE= gnu-gpl-v3
USE_IMAKE= yes
-WRKSRC= ${WRKDIR}/xtrlock-2.15
-MAN_PAGE= ${WRKSRC}/xtrlock.man
+MAKE_FLAGS+= CCOPTIONS=${CFLAGS:Q}
+MAKE_FLAGS+= LOCAL_LDFLAGS=${LDFLAGS:Q}
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+SETUID_ROOT_PERMS?= ${REAL_ROOT_USER} ${BINGRP} 4555
+SPECIAL_PERMS+= bin/xtrlock ${SETUID_ROOT_PERMS}
do-build:
cd ${WRKSRC} && ${MAKE_PROGRAM} ${MAKE_FLAGS} xtrlock
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
-
do-install:
- ${INSTALL} -m 4555 ${WRKSRC}/xtrlock ${DESTDIR}${PREFIX}/bin/xtrlock
- ${INSTALL_MAN} ${MAN_PAGE} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xtrlock.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/xtrlock \
+ ${DESTDIR}${PREFIX}/bin/xtrlock
+
+ ${INSTALL_MAN} ${WRKSRC}/xtrlock.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xtrlock.1
.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index