aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-10-05 17:21:53 +0800
committerantoine <antoine@FreeBSD.org>2014-10-05 17:21:53 +0800
commit6065af86f200f65df04387f22c660d2726c08caf (patch)
treee62726fe8d8b4e9d0677b080913520c6d80a3a15 /net-mgmt
parenteab1c64d35fb440f959f7c2234d56923e45627fa (diff)
downloadfreebsd-ports-gnome-6065af86f200f65df04387f22c660d2726c08caf.tar.gz
freebsd-ports-gnome-6065af86f200f65df04387f22c660d2726c08caf.tar.zst
freebsd-ports-gnome-6065af86f200f65df04387f22c660d2726c08caf.zip
Allow staging as a regular user
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/kismet/Makefile4
-rw-r--r--net-mgmt/kismet/pkg-plist14
2 files changed, 7 insertions, 11 deletions
diff --git a/net-mgmt/kismet/Makefile b/net-mgmt/kismet/Makefile
index ab5f09551d8d..728873b3b3f3 100644
--- a/net-mgmt/kismet/Makefile
+++ b/net-mgmt/kismet/Makefile
@@ -80,6 +80,10 @@ post-patch:
@${FIND} ${WRKSRC} -type f -name 'Makefile' -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -E \
'/C(XX)?FLAGS[[:blank:]]*\+=/s/ -g / /'
+ @${FIND} ${WRKSRC} -type f \( -name Makefile -o -name Makefile.in \) -print0 | ${XARGS} -0 \
+ ${REINPLACE_CMD} -e 's,-o $$(INSTUSR) -g $$(INSTGRP),,' \
+ -e 's,-o $$(INSTUSR) -g $$(MANGRP),,' \
+ -e 's,-o $$(INSTUSR) -g $$(SUIDGROUP) -m 4550,,'
post-build:
@cd ${WRKSRC}; ${STRIP_CMD} kismet_client kismet_drone kismet_server */*.so
diff --git a/net-mgmt/kismet/pkg-plist b/net-mgmt/kismet/pkg-plist
index 2647bf052b80..c069867f07c9 100644
--- a/net-mgmt/kismet/pkg-plist
+++ b/net-mgmt/kismet/pkg-plist
@@ -1,14 +1,10 @@
bin/kismet
-@group %%SUIDGROUP%%
-%%SUID%%bin/kismet_capture
-@group
+%%SUID%%@(,%%SUIDGROUP%%,4550) bin/kismet_capture
bin/kismet_client
bin/kismet_drone
bin/kismet_server
-@unexec if cmp -s %D/etc/kismet.conf %D/etc/kismet.conf.sample; then rm -f %D/etc/kismet.conf; fi
-etc/kismet.conf.sample
-@unexec if cmp -s %D/etc/kismet_drone.conf %D/etc/kismet_drone.conf.sample; then rm -f %D/etc/kismet_drone.conf; fi
-etc/kismet_drone.conf.sample
+@sample etc/kismet.conf.sample
+@sample etc/kismet_drone.conf.sample
%%PLUGINS%%lib/kismet/aircrack-kismet.so
%%PLUGINS%%lib/kismet/alertsyslog.so
%%PLUGINS%%lib/kismet/autowep-kismet.so
@@ -24,7 +20,3 @@ man/man5/kismet_drone.conf.5.gz
%%DATADIR%%/wav/gpslost.wav
%%DATADIR%%/wav/new.wav
%%DATADIR%%/wav/packet.wav
-@dirrm %%DATADIR%%/wav
-@dirrm %%DATADIR%%
-%%PLUGINS%%@dirrm lib/kismet
-%%PLUGINS%%@dirrm lib/kismet_client