aboutsummaryrefslogtreecommitdiffstats
path: root/net/gtknetcat
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-10-07 07:52:26 +0800
committernemysis <nemysis@FreeBSD.org>2013-10-07 07:52:26 +0800
commit396d25c3cf0bb8c1b8bad905b8c86957d16910f5 (patch)
treea1271f36d91ab93c91e81d06446a9b09e2a0f44f /net/gtknetcat
parentf1c856f1b3c41a4fbbb66b990935acac70169b7f (diff)
downloadfreebsd-ports-gnome-396d25c3cf0bb8c1b8bad905b8c86957d16910f5.tar.gz
freebsd-ports-gnome-396d25c3cf0bb8c1b8bad905b8c86957d16910f5.tar.zst
freebsd-ports-gnome-396d25c3cf0bb8c1b8bad905b8c86957d16910f5.zip
GtkNetCat is a Graphic User Interface for netcat. Netcat provides system
functions as a computer networking utility for reading from and writing to network connections on either TCP or UDP. WWW: http://wiki.lxde.org/en/GtkNetCat PR: ports/179844 Submitted by: nemysis (self) Approved by: wg/pawel (mentors)
Diffstat (limited to 'net/gtknetcat')
-rw-r--r--net/gtknetcat/Makefile52
-rw-r--r--net/gtknetcat/distinfo4
-rw-r--r--net/gtknetcat/pkg-descr5
-rw-r--r--net/gtknetcat/pkg-plist18
4 files changed, 79 insertions, 0 deletions
diff --git a/net/gtknetcat/Makefile b/net/gtknetcat/Makefile
new file mode 100644
index 000000000000..d3dcdfc2d590
--- /dev/null
+++ b/net/gtknetcat/Makefile
@@ -0,0 +1,52 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= gtknetcat
+PORTVERSION= 0.1
+CATEGORIES= net
+MASTER_SITES= SF/lxde/GtkNetCat%20%28GUI%20for%20netcat%29/GtkNetCat%20${PORTVERSION}/ \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= GTK GUI for netcat
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+
+USES= gmake
+USE_GNOME= intlhack pygtk2
+USE_PYTHON= yes
+GNU_CONFIGURE= yes
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PORTDOCS= AUTHORS README
+
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|Icon=|Icon=${PORTNAME}|' \
+ ${WRKSRC}/${PORTNAME}.desktop
+
+.if ! ${PORT_OPTIONS:MNLS}
+ @${REINPLACE_CMD} -e 's|src po|src|' \
+ ${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/net/gtknetcat/distinfo b/net/gtknetcat/distinfo
new file mode 100644
index 000000000000..1236da43c98f
--- /dev/null
+++ b/net/gtknetcat/distinfo
@@ -0,0 +1,4 @@
+SHA256 (gtknetcat-0.1.tar.gz) = 7d59d82410a5e466f9a81425f234591c083ff6495b38430fa683884029542c45
+SIZE (gtknetcat-0.1.tar.gz) = 107278
+SHA256 (gtknetcat.png) = d5c17193bfe1f4c0e65e55d93f5b1a9e66da7faeda1799ca1bf3dd1abfd8a5d7
+SIZE (gtknetcat.png) = 3538
diff --git a/net/gtknetcat/pkg-descr b/net/gtknetcat/pkg-descr
new file mode 100644
index 000000000000..36f163e47e95
--- /dev/null
+++ b/net/gtknetcat/pkg-descr
@@ -0,0 +1,5 @@
+GtkNetCat is a Graphic User Interface for netcat. Netcat provides system
+functions as a computer networking utility for reading from and writing
+to network connections on either TCP or UDP.
+
+WWW: http://wiki.lxde.org/en/GtkNetCat
diff --git a/net/gtknetcat/pkg-plist b/net/gtknetcat/pkg-plist
new file mode 100644
index 000000000000..c763cdf29195
--- /dev/null
+++ b/net/gtknetcat/pkg-plist
@@ -0,0 +1,18 @@
+bin/gtknetcat
+%%PYTHON_SITELIBDIR%%/gtknetcat/__init__.py
+%%PYTHON_SITELIBDIR%%/gtknetcat/__init__.pyc
+%%PYTHON_SITELIBDIR%%/gtknetcat/__init__.pyo
+%%PYTHON_SITELIBDIR%%/gtknetcat/globals.py
+%%PYTHON_SITELIBDIR%%/gtknetcat/globals.pyc
+%%PYTHON_SITELIBDIR%%/gtknetcat/globals.pyo
+%%PYTHON_SITELIBDIR%%/gtknetcat/gtknetcat.py
+%%PYTHON_SITELIBDIR%%/gtknetcat/gtknetcat.pyc
+%%PYTHON_SITELIBDIR%%/gtknetcat/gtknetcat.pyo
+libexec/gtknetcat.py
+share/applications/gtknetcat.desktop
+share/gtknetcat/wizard.glade
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gtknetcat.mo
+share/pixmaps/gtknetcat.png
+@dirrm share/gtknetcat
+@dirrmtry share/applications
+@dirrm %%PYTHON_SITELIBDIR%%/gtknetcat