svn commit: r370044 - head/net-mgmt/kismet

Antoine Brodin antoine at FreeBSD.org
Sun Oct 5 09:21:55 UTC 2014


Author: antoine
Date: Sun Oct  5 09:21:53 2014
New Revision: 370044
URL: https://svnweb.freebsd.org/changeset/ports/370044
QAT: https://qat.redports.org/buildarchive/r370044/

Log:
  Allow staging as a regular user

Modified:
  head/net-mgmt/kismet/Makefile
  head/net-mgmt/kismet/pkg-plist

Modified: head/net-mgmt/kismet/Makefile
==============================================================================
--- head/net-mgmt/kismet/Makefile	Sun Oct  5 09:19:05 2014	(r370043)
+++ head/net-mgmt/kismet/Makefile	Sun Oct  5 09:21:53 2014	(r370044)
@@ -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

Modified: head/net-mgmt/kismet/pkg-plist
==============================================================================
--- head/net-mgmt/kismet/pkg-plist	Sun Oct  5 09:19:05 2014	(r370043)
+++ head/net-mgmt/kismet/pkg-plist	Sun Oct  5 09:21:53 2014	(r370044)
@@ -1,14 +1,10 @@
 bin/kismet
- at group %%SUIDGROUP%%
-%%SUID%%bin/kismet_capture
- at group
+%%SUID%%@(,%%SUIDGROUP%%,4550) bin/kismet_capture
 bin/kismet_client
 bin/kismet_drone
 bin/kismet_server
- at 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
- at 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
+ at sample etc/kismet.conf.sample
+ at 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
- at dirrm %%DATADIR%%/wav
- at dirrm %%DATADIR%%
-%%PLUGINS%%@dirrm lib/kismet
-%%PLUGINS%%@dirrm lib/kismet_client


More information about the svn-ports-head mailing list