Hi, I would like to see a wireshark.desktop file and icons added.
Initial inspiration based on the archlinux package. https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/wireshark Comments? Cheers, Fabian Index: Makefile =================================================================== RCS file: /cvs/ports/net/wireshark/Makefile,v retrieving revision 1.2 diff -u -p -r1.2 Makefile --- Makefile 14 Jul 2014 08:54:29 -0000 1.2 +++ Makefile 17 Jul 2014 20:12:43 -0000 @@ -4,6 +4,7 @@ COMMENT-main = graphical network protoco COMMENT-text = network protocol analyzer WVER = 1.10.8 +REVISION-main = 0 DISTNAME = wireshark-${WVER} PKGNAME-main = wireshark-${WVER} PKGNAME-text = tshark-${WVER} @@ -48,6 +49,8 @@ SUBST_VARS = WVER BUILD_DEPENDS += devel/xdg-utils RUN_DEPENDS += devel/xdg-utils +RUN_DEPENDS-main += devel/desktop-file-utils \ + x11/gtk+2,-guic LIB_DEPENDS = LIB_DEPENDS-text = ${LIB_DEPENDS} \ @@ -81,5 +84,20 @@ NO_TEST = Yes post-install: @find ${PREFIX}/lib/wireshark -name '*.la' -print0 | xargs -r0 rm + ${INSTALL_DATA_DIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/wireshark.desktop \ + ${PREFIX}/share/applications/wireshark.desktop +.for d in 16 32 48 + ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/$dx$d/apps + ${INSTALL_DATA} ${WRKSRC}/image/hi$d-app-wireshark.png \ + ${PREFIX}/share/icons/hicolor/$dx$d/apps/wireshark.png +.endfor +.for d in 16 24 32 48 64 128 256 + ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/$dx$d/mimetypes + ${INSTALL_DATA} ${WRKSRC}/image/WiresharkDoc-$d.png \ + ${PREFIX}/share/icons/hicolor/$dx$d/mimetypes/application-vnd.tcpdump.pcap.png +.endfor + + .include <bsd.port.mk> Index: pkg/PLIST-main =================================================================== RCS file: /cvs/ports/net/wireshark/pkg/PLIST-main,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST-main --- pkg/PLIST-main 14 Jul 2014 08:44:51 -0000 1.1.1.1 +++ pkg/PLIST-main 17 Jul 2014 20:12:43 -0000 @@ -1,4 +1,39 @@ @comment $OpenBSD: PLIST-main,v 1.1.1.1 2014/07/14 08:44:51 landry Exp $ @bin bin/wireshark @man man/man1/wireshark.1 +share/applications/ +share/applications/wireshark.desktop share/doc/pkg-readmes/${FULLPKGNAME} +share/icons/ +share/icons/hicolor/ +share/icons/hicolor/128x128/ +share/icons/hicolor/128x128/mimetypes/ +share/icons/hicolor/128x128/mimetypes/application-vnd.tcpdump.pcap.png +share/icons/hicolor/16x16/ +share/icons/hicolor/16x16/apps/ +share/icons/hicolor/16x16/apps/wireshark.png +share/icons/hicolor/16x16/mimetypes/ +share/icons/hicolor/16x16/mimetypes/application-vnd.tcpdump.pcap.png +share/icons/hicolor/24x24/ +share/icons/hicolor/24x24/mimetypes/ +share/icons/hicolor/24x24/mimetypes/application-vnd.tcpdump.pcap.png +share/icons/hicolor/256x256/ +share/icons/hicolor/256x256/mimetypes/ +share/icons/hicolor/256x256/mimetypes/application-vnd.tcpdump.pcap.png +share/icons/hicolor/32x32/ +share/icons/hicolor/32x32/apps/ +share/icons/hicolor/32x32/apps/wireshark.png +share/icons/hicolor/32x32/mimetypes/ +share/icons/hicolor/32x32/mimetypes/application-vnd.tcpdump.pcap.png +share/icons/hicolor/48x48/ +share/icons/hicolor/48x48/apps/ +share/icons/hicolor/48x48/apps/wireshark.png +share/icons/hicolor/48x48/mimetypes/ +share/icons/hicolor/48x48/mimetypes/application-vnd.tcpdump.pcap.png +share/icons/hicolor/64x64/ +share/icons/hicolor/64x64/mimetypes/ +share/icons/hicolor/64x64/mimetypes/application-vnd.tcpdump.pcap.png +@exec %D/bin/update-desktop-database +@unexec-delete %D/bin/update-desktop-database +@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor +@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
