pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

npmount: Add suid root perms



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon4000%gmail.com@localhost>
Pushed By:	outpaddling
Date:		Tue Jun 13 09:37:57 2023 -0500
Changeset:	b0c91620ab9210d9816efc3fa11f1b92f59af7e2

Modified Files:
	npmount/Makefile
	npmount/PLIST

Log Message:
npmount: Add suid root perms

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b0c91620ab9210d9816efc3fa11f1b92f59af7e2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 npmount/Makefile | 13 ++++++++-----
 npmount/PLIST    |  3 ++-
 2 files changed, 10 insertions(+), 6 deletions(-)

diffs:
diff --git a/npmount/Makefile b/npmount/Makefile
index 67fc8a0980..3e592a63e1 100644
--- a/npmount/Makefile
+++ b/npmount/Makefile
@@ -1,9 +1,4 @@
 # $NetBSD$
-#
-###########################################################
-#                  Generated by fbsd2pkg                  #
-#              Sun Jun 11 07:48:06 CDT 2023               #
-###########################################################
 
 DISTNAME=	npmount-0.1.1.1
 CATEGORIES=	sysutils
@@ -15,7 +10,15 @@ HOMEPAGE=	https://github.com/outpaddling/npmount
 COMMENT=	Command line tool for non-privileged [un]mount
 LICENSE=	2-clause-bsd
 
+EGDIR=		${PREFIX}/share/examples/npmount
+CONF_FILES=	${EGDIR}/npmount.conf.sample ${PREFIX}/etc/npmount.conf
+
+SPECIAL_PERMS+=		bin/npmount ${SETUID_ROOT_PERMS}
 INSTALLATION_DIRS=	bin
 
+post-install:
+	${MKDIR} ${DESTDIR}${EGDIR}
+	${MV} ${DESTDIR}${PREFIX}/etc/npmount.conf.sample ${DESTDIR}${EGDIR}
+
 .include "../../devel/libxtend/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/npmount/PLIST b/npmount/PLIST
index 31a049201e..56069adb5e 100644
--- a/npmount/PLIST
+++ b/npmount/PLIST
@@ -1,4 +1,5 @@
 @comment $NetBSD$
 bin/npmount
-etc/npmount.conf.sample
 man/man1/npmount.1
+share/examples/npmount/npmount.conf.sample
+@pkgdir etc


Home | Main Index | Thread Index | Old Index